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 if Greedy is Optimal
If Yes: Greedy Works
If No: Greedy Fails
The greedy approach picks the best local choice repeatedly until the solution is complete, then checks if this leads to a global optimum or not.
