subject
Mathematics, 23.10.2019 05:30 xxbloomxx184p8jqjd

Suppose we need to make change for n cents, and we want to use the least number of coins of denominations 1, 10, and 25 cents. consider the following greedy strategy: suppose the amount left to change is m. take the largest coin that is no more than m, subtract this coin’s value from m, and repeat. prove that this algorithm is optimal, or give a counterexample if it is not.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 13:20
3. find the radius of circle p.4. find y.
Answers: 1
question
Mathematics, 21.06.2019 17:30
Marco has $38.43 dollars in his checking account. his checking account is linked to his amazon music account so he can buy music. the songs he purchases cost $1.29. part 1: write an expression to describe the amount of money in his checking account in relationship to the number of songs he purchases. part 2: describe what the variable represents in this situation.
Answers: 2
question
Mathematics, 21.06.2019 20:50
Afarmer has a large field that is x feet in length. he wants to fence in a rectangular section in the middle of the field , leaving a length of 100 feet of open field behind each end of the fenced rectangle.he also wants the width of the fenced-in space to be 100 feet less than its length. find the expressions to represent the length and width of the fenced section of the field
Answers: 2
question
Mathematics, 21.06.2019 23:30
If the perimeter of the garden is 37 ft. the width is x and the length is 15 ft. what is the width of the garden in feet?
Answers: 2
You know the right answer?
Suppose we need to make change for n cents, and we want to use the least number of coins of denomina...
Questions
question
Mathematics, 02.12.2020 01:50
question
Health, 02.12.2020 01:50
question
Mathematics, 02.12.2020 01:50
question
Mathematics, 02.12.2020 01:50
Questions on the website: 13722362