Optimizing U.S. Coin Values for Cashier's Algorithm

  • Thread starter Thread starter Sebastian Martinez
  • Start date Start date
  • Tags Tags
    Usa
Click For Summary
SUMMARY

The discussion focuses on the optimality of the Cashier's Algorithm for U.S. coin denominations: 1, 5, 10, 25, and 100 cents. It is established that the algorithm is optimal due to the fact that each denomination is a multiple of the previous one, satisfying the conditions for the greedy algorithm. This ensures that the usual method of making change results in the smallest number of coins for any given amount. Counterexamples exist for other currency systems, highlighting the unique suitability of U.S. coin denominations for this algorithm.

PREREQUISITES
  • Understanding of the Cashier's Algorithm
  • Familiarity with the greedy algorithm in algorithm design
  • Knowledge of U.S. coin denominations
  • Basic principles of optimization in computational problems
NEXT STEPS
  • Read the paper on the Coin Change problem available at this link.
  • Research the greedy algorithm and its applications in algorithm design.
  • Explore variations of the coin-changing problem for different currency systems.
  • Study optimization techniques in computational mathematics.
USEFUL FOR

This discussion is beneficial for computer science students, algorithm designers, and anyone interested in understanding the efficiency of change-making algorithms in relation to U.S. currency.

Sebastian Martinez
Messages
11
Reaction score
0

Homework Statement


I can't understand why cashier's algorithm is optimal for U.S coins: 1, 5,10,25,100

Homework Equations

The Attempt at a Solution


The way cashier's algorithm works is that you pick the denomination of closest value to the expected amount. I am trying to read a lot of slides but it's not clear. One key point to understand is that each denomination is a multiple of the previous denomination, but what does that tell me about its optimality?... I am trying to understand the attached table
 

Attachments

  • Screenshot (24).png
    Screenshot (24).png
    34.8 KB · Views: 416
Last edited:
Physics news on Phys.org
Sebastian Martinez said:

Homework Statement


I can't understand why cashier's algorithm is optimal for U.S coins: 1, 5,10,25,100

Homework Equations

The Attempt at a Solution


The way cashier's algorithm works is that you pick the denomination of closest value to the expected amount. I am trying to read a lot of slides but it's not clear. One key point to understand is that each denomination is a multiple of the previous denomination, but what does that tell me about its optimality?

Sufficient conditions for optimality of the "greedy algorithm" (which is the formal name given to the algorithm you describe) can be found in the paper
http://www.cs.yorku.ca/~andy/courses/3101/lecture-notes/CoinChange.pdf . The U.S. (and Canadian) coin denominations satisfy those conditions, so you can be sure that the "usual" way of making change results in the smallest number of coins, for any change amount. Of course, counterexamples exist for other denomination sets, so you cannot use the usual method to make change optimally in every country.

Google "coin-changing problem" for lots of related material.
 
Ray Vickson said:
Sufficient conditions for optimality of the "greedy algorithm" (which is the formal name given to the algorithm you describe) can be found in the paper
http://www.cs.yorku.ca/~andy/courses/3101/lecture-notes/CoinChange.pdf . The U.S. (and Canadian) coin denominations satisfy those conditions, so you can be sure that the "usual" way of making change results in the smallest number of coins, for any change amount. Of course, counterexamples exist for other denomination sets, so you cannot use the usual method to make change optimally in every country.

Google "coin-changing problem" for lots of related material.
I have attached a table that explains cashier algorithm. I would be glad if you orient me.
 

Similar threads

Replies
1
Views
1K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 38 ·
2
Replies
38
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K