Graphs & Traversal
3. Graph Algorithms
3. GRAPH ALGORITHMS
Graphs & Traversal
Moving through a graph without losing your place: representations, traversal order, cycle detection, dependency resolution, build pipelines and scheduling.
6 resources 0 labs
Breadth-first search with the queue invariant spelled out, the foundation for shortest paths on unweighted graphs and grid problems.
TEXTENFREE 30 min4.9 (48)
Graph representation choices and traversal patterns, framed around the problems that actually appear again and again in contests.
TEXTENFREE 30 min4.7 (48)
Depth-first search, recursion stack behaviour and the edge classification that the later graph algorithms rely on so heavily.
TEXTENFREE 30 min4.7 (47)
Topological ordering with Kahn's algorithm and DFS, the everyday tool for dependency resolution, build pipelines and scheduling problems.
TEXTENFREE 25 min4.3 (46)
A tight implementation walkthrough with the queue mechanics visible, useful when the pseudocode has finally stopped being enough.
VIDEOENFREE 20 min4.3 (74)
Both traversals drawn out on the same graph, which is the fastest way to see how their visit orders diverge.
VIDEOENFREE 19 min4.1 (75)