Study
CSC-401 route
Unit 8 · Lesson 4 of 4 19 min

Huffman Coding and the Limits of Greedy Choice

A greedy algorithm that compresses files, and two that cannot count coins.

What this unit covers

Unit 8: The Greedy Technique

  1. 1 Prim's AlgorithmGrow one tree by always taking the cheapest edge out of it. · 17 min
  2. 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. 3 Dijkstra's AlgorithmGreedy shortest paths, and the assumption that makes it correct. · 19 min
  4. 4 Huffman Coding and the Limits of Greedy ChoiceA greedy algorithm that compresses files, and two that cannot count coins. · 19 min