Exercises: Greedy Algorithms
Exercises with solutions on choosing greedy criteria, classic greedy algorithms, and finding counterexamples.
Exercises with solutions on choosing greedy criteria, classic greedy algorithms, and finding counterexamples.
Classic greedy problems: files on a disk, fractional vs. 0/1 knapsack, diligent plumber, knight tour, task assignment, graph coloring, Prim, and Kruskal.