The question as it appears in the 01/23 edition of Specs & Techs from GlobalSpec:
You have twelve identical-looking coins; one is counterfeit. The only measurable difference is that the bad coin weighs either more or less than the others. Using a balance scale, determine which coin is bad and whether too light or too heavy. You are limited to three weighings on the scale. (Note: there are 24 possible outcomes; your method must account for all 24 cases.)
This question was submitted by our very own AstroNut!
Update (01/30/07 9:04 AM): And the Answer is....
1) Put coins 1-4 on the right, 5-8 on the left, and leave 9-12 off.
- IF 1) BALANCES: 1-8 are good.
- 2) Put coins 1-3 on the right, 9-11 on the left.
- IF 2) BALANCES: Coin 12 is bad.
- 3) Weigh 12 against 1 to see whether 12 is light or heavy. Done!
- IF 2) GOES LEFT SIDE DOWN: The bad coin - 9, 10, or 11 - is heavy.
- 3) Put 9 on the right, 10 on the left.
- IF 3) BALANCES: Coin 11 is bad (heavy).
- IF 3) DOESN'T BALANCE: The heavier coin - 9 or 10 - is bad.
- IF 1) GOES LEFT SIDE DOWN: 9-12 are good.
- 2) Put coins 1, 5, and 6 on the right; 2, 7, and 8 on the left.
- IF 2) BALANCES: Coin 3 or 4 is bad (light).
- 3) Put 3 on the left, 4 on the right. The lighter coin - 3 or 4 - is bad.
- IF 2) GOES LEFT SIDE DOWN: EITHER 1 is light OR 7 or 8 is heavy.
- 3) Put 7 on the left, 8 on the right.
- IF 3) BALANCES: Coin 1 is bad (light).
- IF 3) DOESN'T BALANCE: The heavier coin - 7 or 8 - is bad.
- IF 2) GOES RIGHT SIDE DOWN: follow similar procedure with 2, 5, and 6.
- IF 1) GOES RIGHT SIDE DOWN: follow the same procedure, reversing light & heavy.
|
Comments rated to be "almost" Good Answers: