Loading

Introduction to Algorithms: Depth-First Search (DFS), Topological Sort

Depth-First Search (DFS), Topological Sort

This lecture covers depth-first search, including edge classification, and how DFS is used for cycle detection and topological sort.