When biggest coin first fails
transcript
A cashier owes six units. Coins are worth one, three and four. She takes the biggest coin each time. Does that use the fewest coins? It looks sensible. Let us test it.
Biggest first takes a four. Then a one, and another one. That is three coins. But three and three is six. That is only two coins.
The best answer has no four. So taking a four was not safe. Swapping in a four changes the total. So no swap can rescue the rule. One counterexample is enough.
Try every amount from one to five. Biggest first is right every time. Then six breaks it. A few passing examples prove nothing.
Try coins one, five, ten and fifty. Each value divides the next. Then biggest first is safe. Smaller coins never add up to the biggest.
Check a greedy rule before you trust it. Prove it safe, or look for a counterexample. Full breakdown in the lecture.