DSA Mastery
  • Home
  • Topics
    • Introduction to DSA
    • Time & Space Complexity
    • Arrays
    • Strings
    • Recursion
    • Linked List
    • Stack
    • Queue
    • Hashing
    • Trees
    • Binary Search Tree
    • Heap
    • Trie
    • Graph
    • Greedy Algorithms
    • Dynamic Programming
    • Backtracking
    • Advanced Algorithms
  • Problems
    • Dynamic Programming
    • Fibonacci DP
    • 0/1 Knapsack
    • Fractional Knapsack
    • Coin Change
    • Subset Sum
    • View All DP β†’

    • Graph Algorithms
    • BFS (Breadth First Search)
    • DFS (Depth First Search)
    • Dijkstra's Algorithm
    • Bellman Ford Algorithm
    • View All β†’
  • Quiz
  • 0%
πŸ“š Learning Path
πŸ›οΈ Foundation
Introduction to DSA Time & Space Complexity
πŸ“ Linear Data Structures
Arrays Strings
βš™οΈ Core Concepts
Recursion
πŸ“ Linear Data Structures
Linked List Stack Queue
βš™οΈ Core Concepts
Hashing
🌳 Non-Linear Data Structures
Trees Binary Search Tree Heap
πŸš€ Advanced Topics
Trie Graph Greedy Algorithms Dynamic Programming Backtracking Advanced Algorithms
⚑ Quick Links
DP Problems Graph Algorithms Classical Problems Practice Quiz

πŸ•ΈοΈ Graph Algorithms

Complete implementations of 10 essential graph algorithms with theory, visualization, PHP code, and interview questions.

πŸ”
BFS (Breadth First Search)
Easy

Level-order traversal using Queue. Shortest path in unweighted graphs.

🌊
DFS (Depth First Search)
Easy

Depth-first traversal using Stack/Recursion. Cycle detection, paths.

πŸ›€οΈ
Dijkstra's Algorithm
Medium

Single-source shortest path for non-negative weights. GPS navigation.

πŸ””
Bellman Ford Algorithm
Hard

Handles negative weights. Can detect negative cycles.

🌐
Floyd Warshall Algorithm
Hard

All-pairs shortest paths. O(VΒ³) dynamic programming approach.

πŸ—οΈ
Prim's Algorithm (MST)
Hard

Minimum Spanning Tree using priority queue. Network design.

πŸ—οΈ
Kruskal's Algorithm (MST)
Hard

MST using Union-Find. Sort edges, add if no cycle.

πŸ“‹
Topological Sort
Medium

Linear ordering of DAG vertices. Task scheduling.

πŸ”—
Union Find (DSU)
Medium

Disjoint Set Union with path compression. Nearly O(1).

πŸ”„
Cycle Detection
Medium

Detect cycles in directed and undirected graphs.

DSA Mastery

Master Data Structures & Algorithms with comprehensive lessons, PHP implementations, and interview-focused practice problems.

Quick Navigation
  • Home
  • Getting Started
  • Arrays
  • Linked List
  • Trees
  • Graph
  • DP
  • DP Problems
  • Graph Algos
  • Quiz
Learning Stats
Overall Progress 0%
0 of 18 topics 18 remaining

© 2026 DSA Mastery. Built for DSA learners. All implementations in PHP 8+.

Home Topics Quiz Search Top