Summary & Patterns
Finding the Greedy Solution
Find the local best choice first, and keep making these choices if they are compatible with the previous ones.
Greedy strategies from the problems in this section
The Greedy Exchange Argument
- Show that there’s an arbitrary optimal solution \text{OPT} different from greedy solution A.
- Find the “first difference” between \text{OPT} and A.
- For a more rigorous proof, you also need to show that this difference actually exists
- Argue that exchanging this optimal choice with a greedy choice will NOT make the solution worse. Doesn’t have to make it better.
- Use induction to show that the entirety of \text{OPT} can be swapped with A
- This step is technically implicit from step 2, but it depends.