A given amount x should be changed in a coin system C = {c1, c2, … ck} such that each coin ci has a given weight wi. We would like to calculate the total weight of the possible changes. Two changes are different if they contain the same coins in different order.
How can we give a dynamic programming recursion for the above problem? I know the recursion for minimum coin change problem (i.e. C(x)=min{C(x-c)+1 for x>0}). But my confusion is the total weight of the possible changes.Thanks.