Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

7. Greedy Algorithms

Build a solution one locally best choice at a time: activity selection, minimum spanning trees with Prim’s and Kruskal’s algorithms, Dijkstra’s shortest paths and Huffman coding. The chapter ends by comparing greedy with dynamic programming.

Slides

Present full screen Download the PDF

Click or tap the slide to move forward, its left edge to go back; the arrow keys work too.