Module M26 · 26 of 35 in teaching order · Advanced
Shortest Paths
Relaxation and the algorithms built on it, with the graph conditions each one needs.
Lessons
Single-source shortest paths with non-negative weights: relaxation, a min-heap with lazy deletion, why settled distances are final, and O((V + E) log V).
Topics this module covers
The full module scope. Topics without a lesson above are not written yet.
- relaxation
- BFS
- Dijkstra
- Bellman-Ford
- negative cycles
- Floyd-Warshall
- DAG shortest path
- 0-1 BFS
- A*
- comparison