A
Q. Suppose you have coins of denominations 1,3 and 4. You use a greedy algorithm, in which you choose the largest denomination coin which is not greater than the remaining sum. For which of the following sums, will the algorithm produce an optimal answer?
- Correct Answer - Option(D)
- Views: 24
- Filed under category Design and Analysis of Algorithms
- Hashtags:
Discusssion
Login to discuss.