You are given infinite coins of denominations v1, v2, v3,…..,vn and a sum S. The coin change problem is to find the minimum number of coins required to get the sum S. This problem can be solved using ____________

You are given infinite coins of denominations v1, v2, v3,…..,vn and a sum S. The coin change problem is to find the minimum number of coins required to get the sum S. This problem can be solved using ____________ Correct Answer Dynamic programming

The coin change problem has overlapping subproblems(same subproblems are solved multiple times) and optimal substructure(the solution to the problem can be found by finding optimal solutions for subproblems). So, dynamic programming can be used to solve the coin change problem.

Related Questions

The question below is followed by two statements I and II. You have to determine whether the data given is sufficient for answering the question. You should use the data and your knowledge of mathematics to choose the best possible answer.  Belly has some coins out of which some are of 25 Cent and Some are of 50 Cent. If he has a total of 250 coins, how many coins does he have of 25 Cent? I) Belly has three times as many as 50 Cent coins as 25 Cent coins. II) Belly has 20 more 25 cent coins than the 50 Cent coin.