Dijkstra's Algorithm
Greedy shortest paths, and the assumption that makes it correct.
What this unit covers
Unit 8: The Greedy Technique
- 1 Prim's AlgorithmGrow one tree by always taking the cheapest edge out of it. · 17 min
- 2 Kruskal's Algorithm and Union–FindSort the edges, take what does not close a loop, and know fast whether it does. · 18 min
- 3 Dijkstra's AlgorithmGreedy shortest paths, and the assumption that makes it correct. · 19 min
- 4 Huffman Coding and the Limits of Greedy ChoiceA greedy algorithm that compresses files, and two that cannot count coins. · 19 min