subject
Mathematics, 25.02.2020 03:46 mandilynn22

Now, consider the change problem in Binaryland. The input to this problem is an integer L. The output should be the minimum cardinality collection of coins required to make L cents of change (that is, you want to use as few coins as possible). In Binaryland, the coins are worth 1, 2, 22, 23, ..., 21000 cents. Assume that you have an unlimited number of coins of each type. Prove or disprove that the greedy algorithm (that takes as many coins of the highest value as possible) solves the change problem in Binaryland. HINT: The greedy algorithm is correct for one of the above two problems and is incorrect for the other.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 14:40
What signals you that factoring by grouping is the best method to use when factoring a problem?
Answers: 2
question
Mathematics, 21.06.2019 17:30
What number should be added to the expression x^2+3x+ in order to create a perfect square trinomial? 3/2 3 9/4 9
Answers: 1
question
Mathematics, 21.06.2019 18:00
Me asap! what is the slope of this line? enter your answer in the box.
Answers: 2
question
Mathematics, 21.06.2019 21:00
25 ! i need asap! ! ill mark brainliest!
Answers: 2
You know the right answer?
Now, consider the change problem in Binaryland. The input to this problem is an integer L. The outpu...
Questions
question
History, 27.04.2021 23:30
question
Mathematics, 27.04.2021 23:30
question
English, 27.04.2021 23:30
question
Computers and Technology, 27.04.2021 23:30
Questions on the website: 13722363