Question: Design a dynamic programming algorithm to solve the Making Change Problem for any given set of coins. We define this problem formally as: Input: A

Design a dynamic programming algorithm to solve the Making Change Problem for any given set of coins. We define this problem formally as: Input: A sequence C of m coin values (each for some integer number of cents) and a goal amount G Output: a sequence x of in numbers that minimizes sigma^m-1_i=0 x_i with the constraint that sigma^m-1_i = 0 C_x middot x_i = G Note that for each denomination C_i, we are allowed to use up to (including) 3 coins. Analyze the running time of your algorithm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
