Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The U.S. treasury recently announced that Harriet Tubman will replace Andrew Jac

ID: 3852192 • Letter: T

Question

The U.S. treasury recently announced that Harriet Tubman will replace Andrew Jackson on the $20 bill. As is usual with such changes, it was not universally popular. TV anchor Greta Van Susteren suggested that we should leave Jackson on the $20 bill and instead create a new $25 bill featuring Tubman. If Van Sustren’s plan were adopted, the U.S. currency would have the following denominations: $1, $2, $5, $10, $20, $25, $50, and $100. With this proposed set of denominations, would the greedy algorithm remain optimal for giving change (or would the U.S. public have to learn more advanced techniques)? Prove your answer correct.

Explanation / Answer

Yes, greedy algorithm will still remain optimal for giving change because the basic principle is at every iteration for search of a coin,take the largest coin which can fit into remaining amount to be changed at that particular time. At the end you will have optimal solution.

But, it won't work if the there is no coin with denomination 1

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote