Question: Discrete Math Use the cashier's algorithm to make change using quarters, dimes, nickels, and pennies for a ) 8 7 cents. b ) 4 9
Discrete Math
Use the cashier's algorithm to make change using quarters, dimes, nickels, and pennies for
a cents.
b cents.
c cents.
d cents.
Use the cashier's algorithm to make change using quarters, dimes, nickels, and pennies for
a cents.
b cents.
c cents.
d cents.
Answer
Use the cashier's algorithm to make change using quarters, dimes, and pennies but no nickels for each of the amounts given in
Exercise For which of these amounts does the greedy algorithm use the fewest coins of these denominations possible?
Cashier's algorithm uses fewest coins in parts ac and d
a Two quarters, one penny
b Two quarters, one dime, nine pennies
c Three quarters, one penny
d Two quarters, one dime
For Exercise the last question is asking which of the greedy solutions is optimal in
the sense that the change cannot be done with fewer coins. One of them is suboptimal. Which one
is it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
