Concept Flow - Why Greedy Works and When It Fails
Start with Problem
Check Greedy Choice Property?
|Yes
Make Greedy Choice
Reduce Problem
Repeat Until Done
Solution Found
Check Optimality
|No
Greedy Fails
Try Other Methods (DP, Backtracking)
The greedy method picks the best local choice repeatedly if the problem has the greedy choice property and optimal substructure. If not, greedy fails and other methods are needed.
