DocumentCode
2276894
Title
A generalized algorithm for solving n coins problem
Author
Ghosh, Joydeb ; Senmajumdar, Papiya ; Maitra, Samita ; Dhal, Debasis ; Pal, Rajat Kumar
Author_Institution
Dept. of Math., Surendra Inst. of Eng. & Manage., Darjeeling, India
Volume
2
fYear
2011
fDate
10-12 June 2011
Firstpage
411
Lastpage
415
Abstract
Eight coins problem is a well-known problem in mathematics as well as in computer science. In this problem eight coins are given, say A, B, C, D, E, F, G, and H, and we are told that only one is counterfeit (or false), as it has a different weight than each of the others. We want to determine which coin it is, making use of an equal arm balance. At the same time we want to identify the counterfeit coin using a minimum number of comparisons and determine whether the false coin is heavier or lighter than each of the remaining. In this paper, we develop algorithms for solving the counterfeit coin problem for any given number n of coins. The first algorithm is in essence based on the existing classical solution for the eight coins problem (with slight modification) for larger values of n, where n is a power of two beyond eight, as two and four being base cases. Then we develop an algorithm for solving n coins problem, where n is even but not power of two, i.e., the numbers are six, ten, 12, 14, 18, 20, etc. At the end, we have extended the same to solve the counterfeit coin problem for odd number of coins as well.
Keywords
combinatorial mathematics; decision trees; counterfeit coin problem; eight coins problem; equal arm balance; Algorithm; Coin counterfeiting; Comparison; Decision tree; Eight coins problem; Equal arm balance; Even coin problem; Odd coin problem;
fLanguage
English
Publisher
ieee
Conference_Titel
Computer Science and Automation Engineering (CSAE), 2011 IEEE International Conference on
Conference_Location
Shanghai
Print_ISBN
978-1-4244-8727-1
Type
conf
DOI
10.1109/CSAE.2011.5952498
Filename
5952498
Link To Document