Submodule 2 of 7
BFS, DFS & Connectivity
BFS shortest paths, DFS edge types, connected components, cycle detection, and bipartite checks.
Question Difficulty Success
Learning resources
- cp-algorithms, Breadth-first search cp-algorithms.com (opens in a new tab)
- cp-algorithms, Depth-first search cp-algorithms.com (opens in a new tab)
- cp-algorithms, 0-1 BFS cp-algorithms.com (opens in a new tab)
- Jeff Erickson, Depth-First Search chapter jeffe.cs.illinois.edu (opens in a new tab)
- USACO Guide, Graph Traversal usaco.guide (opens in a new tab)
Up next
5 of 5 questions here are still unsolved.