Concept Flow - Why Greedy Works and When It Fails
Start Problem
Choose Best Local Option
Add to Solution
Is Solution Complete?
No→Repeat Choose Best Local Option
Yes
Return Final Solution
Check Optimality
If Works: Greedy is Optimal
If Fails: Greedy is Suboptimal
The greedy method picks the best choice at each step, builds a solution, then checks if it is optimal or fails.