Given 12 balls with one of them either heavier or lighter than the rest, what is the minimum number of weighings needed on a balance scale to identify the unique ball?
Instruction: Assume exactly one of twelve balls is heavier or lighter, the other eleven have identical weight, and an accurate balance scale is available. Give the minimum worst-case number of weighings, a lower-bound argument, and a complete strategy that identifies both the ball and its direction.
Updated
Official answer
Three weighings are sufficient and necessary in the worst case. Assume exactly one ball differs in weight, the other eleven are identical, and the balance reliably reports left heavy, right heavy or balanced. Two weighings have at most nine outcome sequences, fewer than even the twelve possible identities; they cannot always identify the ball.
Label the balls 1–12. First weigh 1,2,3,4 against 5,6,7,8.
If the first weighing balances: balls 1–8 are genuine. Weigh 9,10,11 against 1,2,3. If this balances, compare 12 with 1 to determine its direction. Otherwise the odd ball is one of 9,10,11, and the direction is known. Compare 9 with 10: balance identifies 11; otherwise the heavier candidate is odd if the second weighing was heavy, and the lighter candidate is odd if it was light.
If the first weighing does not balance: label its heavier-side balls A1–A4 and lighter-side balls B1–B4. Balls 9–12 are genuine; call one G. Candidates are an A ball that is heavy or a B ball that is light. For the second weighing, place A1,A2,B1 on the left and A3,B2,G on the right.
- Second result: left heavy. Candidates are A1 heavy, A2 heavy or B2 light. For the third weighing, compare A1 with A2. The heavier one is odd; balance means B2 is light.
- Second result: right heavy. Candidates are A3 heavy or B1 light. Compare A3 with G. A3 heavier means A3 is odd; balance means B1 is light.
- Second result: balanced. Candidates are A4 heavy, B3 light or B4 light. Compare B3 with B4. The lighter one is odd; balance means A4 is heavy.
The A/B labels handle either direction of the first imbalance. Every one of the 24 identity-and-direction possibilities is resolved within three weighings. The counting lower bound alone would not prove sufficiency; the complete tree does.
Related Questions
-
easy
-
easy
-
hard