Consider the coin denomination array (CD) and the sum of the coin values (S) assigned to you. Use the dynamic programmin

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Consider the coin denomination array (CD) and the sum of the coin values (S) assigned to you. Use the dynamic programmin

Post by answerhappygod »

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.
*Please don't write a code*
Coin Denomination (CD) Array
4 5
8
9
Sum of the Coin Values (S)
20
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply