Exam weight Low
Exam weight Low
Exam weight Low
- Digraph: edges have a direction (v → w).
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
- Adjacency lists, but each edge appears once (in v’s list only).
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
- Reachability: which vertices can be reached from s → DFS.
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
- BFS in digraphs finds directed shortest paths.
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight High
- Topological sort: order vertices so every edge points forward. Possible only for a DAG. Reverse DFS postorder gives it.
🎯 How this can come up · 1 question
MCQ
A topological order exists if and only if the digraph:
Correct: Has no directed cycle (is a DAG).
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
- Directed cycle detection with DFS (a back edge to a vertex on the stack).
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
No slides match this filter.
































































