Abstract
We find the optimal algorithm in the sense of average run time for the counterfeit coin problem: Given n coins, one of which is heavier or lighter than the rest. Using a balance scale, find the counterfeit coin and whether it is heavy or light. An interesting feature of the solution is that our algorithm is a straight line algorithm. We also find the optimal algorithm if a standard coin is available for the first weighing.
Original language | American English |
---|---|
Pages (from-to) | 409-415 |
Number of pages | 7 |
Journal | SIAM Journal on Computing |
Volume | 11 |
Issue number | 3 |
DOIs | |
State | Published - 1982 |
Keywords
- Algorithms