Theory: BFS is a fundamental graph traversal algorithm that explores all nodes at the current depth before moving to the next level. It uses a **First-In-First-Out (FIFO) Queue**.
Complexity: O(V + E) time, O(V) space.
Key Traits:
Theory: DFS explores as far as possible along each branch before backtracking. It utilizes a **Last-In-First-Out (LIFO) Stack** or Recursion.
Complexity: O(V + E) time, O(h) space (where h is height).
Key Traits:
Theory: DLS is a variation of DFS with a predefined maximum depth limit. It solves the infinite path problem in state-space graphs.
Complexity: O(b^L) time, O(bL) space (b=branching factor, L=limit).
Key Traits:
Theory: Developed by Edsger Dijkstra, this "Greedy" algorithm solves the single-source shortest path problem for non-negative edge weights using a **Priority Queue (Heap)**.
Complexity: O((V + E) log V).
Key Traits:
Preparing map view...