Question: Consider the coin denomination array ( CD ) and the sum of the coin values ( S ) assigned to you. Use the dynamic programming
Consider the coin denomination array CD and the sum of the coin values S assigned to
you. Use the dynamic programming algorithm discussed in class to determine the minimum number of
coins and the actual coin values that one would pick up so that the sum of the coin values is S
Show the contents of the MNC and LCP arrays for each iteration, as discussed in the slides. Discuss how
you would trace the solution to determine the actual coin values that need to be picked up for the given S
Assume an infinite supply of coins for each value. Break any tie in favor of the coin with a lower index in
the CD array.
Coin Denomination CD Array Sum of the Coin Values S
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
