![]() | ||
A balance puzzle or weighing puzzle is one of a number of logic puzzles based on the balancing of similar-looking items—often coins—to determine which holds a different value within a limited number of uses of the balance scales. These differ from puzzles that assign weights to items, in that only the relative mass of these items is relevant. n weighings are sufficient to find a bad coin among 3n − 1/2 coins.
Contents
The nine-coin problem
A well-known example has nine (or fewer) items, say coins (or balls), that are identical in weight save for one, which in this example is lighter than the others—a counterfeit (an oddball). The difference is only perceptible by weighing them on scale—but only the coins themselves can be weighed. Is it possible to isolate the counterfeit coin with only two weighings?
Solution
To find a solution, we first consider the maximum number of items from which one can find the lighter one in just one weighing. The maximum number possible is three. To find the lighter one we can compare any two coins, leaving the third out. If the two coins tested weigh the same, then the lighter coin must be one of those not on the balance. Otherwise, it is the one indicated as lighter by the balance.
Now, imagine the nine coins in three stacks of three coins each. In one move we can find which of the three stacks is lighter (i.e. the one containing the lighter coin). It then takes only one more move to identify the light coin from within that lighter stack. So in two weighings we can find a single light coin from a set of
By extension, it would take only three weighings to find the odd light coin among 27 coins, and four weighings to find it from 81 coins.
The twelve-coin problem
A more complex version has twelve coins, at least eleven of which are identical. If one is different, we don't know whether it is heavier or lighter than the others. This time the balance may be used three times to determine if there is a unique coin—and if there is, to isolate it and determine its weight relative to the others. (This puzzle and its solution first appeared in an article in 1945.) The problem has a simpler variant with three coins in two weighings, and a more complex variant with 39 coins in four weighings.
Solution
This problem has more than one solution. One is easily scalable to a higher number of coins by using base-three numbering: labeling each coin with a different number of three digits in base three, and positioning at the n-th weightings all the coins that are labeled with the n-th digit identical to the label of the plate (with three plates, one on each side of the scale and one off the scale). Other step-by-step procedures are similar to the following. It is less straightforward for this problem, and the second and third weightings depend on what has happened previously, although that need not be the case (see below).
With a reference coin
If there is one authentic coin for reference then the suspect coins can be thirteen. Number the coins from 1 to 13 and the authentic coin number 0 and perform these weighings in any order:
If the scales are only off balance once, then it must be one of the coins 1, 2, 3—which only appear in one weighing. If there is never balance then it must be one of the coins 10–13 that appear in all weighings. Picking out the one counterfeit coin corresponding to each of the 27 outcomes is always possible (13 coins one either too heavy or too light is 26 possibilities) except when all weighings are balanced, in which case there is no counterfeit coin (or its weight is correct). If coins 0 and 13 are deleted from these weighings they give one generic solution to the 12-coin problem.
If two coins are counterfeit, this procedure, in general, does not pick either of these, but rather some authentic coin. For instance, if both coins 1 and 2 are counterfeit, either coin 4 or 5 is wrongly picked.
Without a reference coin
In a relaxed variation of this puzzle, one only needs to find the counterfeit coin without necessarily being able to tell its weight relative to the others. In this case, clearly any solution that previously weighed every coin at some point can be adapted to handle one extra coin. This coin is never put on the scales, but if all weighings are balanced it is picked as the counterfeit coin. It is not possible to do any better, since any coin that is put on the scales at some point and picked as the counterfeit coin can then always be assigned weight relative to the others.
A method which weighs the same sets of coins regardless of outcomes lets one either
- (among 12 coins A-L) conclude if they all weigh the same, or find the odd coin and tell if it is lighter or heavier, or
- (among 13 coins A-M) find the odd coin, and, for 12 of them, tell if it is lighter or heavier.
The three possible outcomes of each weighing can be denoted by "" for the left side being lighter, "/" for the right side being lighter, and "-" for both sides having the same weight. The symbols for the weighings are listed in sequence. For example, "//-" means that the right side is lighter in the first and second weighings, and both sides weigh the same in the third weighing. Three weighings give the following 33 = 27 outcomes. Except for "---", the sets are divided such that each set on the right has a "/" where the set on the left has a "", and vice versa:
/// // /// /// //- /--/ -//- -/- //-- -//- /-//-- ---/- ----/ -----As each weighing gives a meaningful result only when the number of coins on the left side is equal to the number on the right side, we disregard the first row, so that each column has the same number of "" and "/" symbols (four of each). The rows are labelled, the order of the coins being irrelevant:
// A light / A heavy// B light / B heavy// C light / C heavy/- D light /- D heavy-/ E light -/ E heavy/- F light -/ F heavy- G light //- G heavy- H light -// H heavy- I light /-/ I heavy/-- J light -- J heavy-/- K light -- K heavy--/ L light -- L heavy--- M either lighter or heavier (13-coin case), or all coins weigh the same (12-coin case)Using the pattern of outcomes above, the composition of coins for each weighing can be determined; for example the set "/- D light" implies that coin D must be on the left side in the first weighing (to cause that side to be lighter), on the right side in the second, and unused in the third:
1st weighing: left side: ADGI, right side: BCFJ2nd weighing: left side: BEGH, right side: ACDK3rd weighing: left side: CFHI, right side: ABELThe outcomes are then read off the table. For example, if the right side is lighter in the first two weighings and both sides weigh the same in the third, the corresponding code "//- G heavy" implies that coin G is the odd one, and it is heavier than the others.
Generalizations
The generalization of this problem is described in
Let
A weighing (a check) is given by a vector
Each weighing h induces the partition of the set
Definition 1. A weighing algorithm (WA)
Let
Definition 2. A WA
It is prooved in that for so-called suitable sets
The perfect algorithms with parameters
The Original Parallel Weighings Puzzle
Konstantin Knop invented this puzzle. We have N indistinguishable coins, one of which is fake (it is not known whether it is heavier or lighter than the genuine coins, which all weigh the same). There are two balance scales that can be used in parallel. Each weighing lasts one minute. What is the largest number of coins N for which it is possible to find the fake coin in five minutes?