Question: a) Write down the recurrence equation for the well-known minimum Coin Change Problem. In other words, give change for amount using the minimum number of
a) Write down the recurrence equation for the well-known minimum Coin Change Problem. In other words, give change for amount using the minimum number of coins of denominations ! < " < < #. Example: Input: coins[ ] = {5, 10, 25}, n = 30 Output: Minimum 2 coins required Coin used: 5 and 25 cents Input: coins[ ] = {1, 5, 6, 9}, n = 11 Output: Minimum 2 coins required Coin used: 5 and 6 cents
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
