A change-making algorithm always picks the largest coin denomination first. For standard US currency (25, 10, 5, 1), this works. For custom coins (10, 7, 1), it fails to find the minimum number of coins for the value 14. This shows the failure of:
You are designing a "Find and Replace" feature for a text editor. The user is searching for a very short word (2 letters) in a massive novel. Which algorithm might perform worse than expected here?