KatInterview

Balance Scale Strategy for Identifying One Defective Coin

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentslogicinformation-theorycombinatorics

Last updated

Devise a three-weighing strategy using a balance scale to identify which of 12 identical coins is defective and determine if it's heavier or lighter.

You're given 12 coins that look identical. Exactly one coin is defective—it has a different weight than the others, but you don't know whether it's heavier or lighter than a genuine coin.

You have access to a balance scale (a two-pan scale with no numeric readout). Each use of the scale produces one of three outcomes: the left pan is heavier, the right pan is heavier, or both pans weigh the same.

You may use the scale exactly three times.

Your task:

Design a complete weighing strategy that guarantees you can identify which specific coin is defective and determine whether it is heavier or lighter than genuine coins. Present your strategy as a decision tree showing:

  • Which coins to place on each pan for each weighing
  • How the outcome of each weighing determines your next action
  • The final conclusion reached after three weighings

Also explain why three weighings are both necessary and sufficient for this problem.

Hints

Hint 1

Think about this as an information problem: how many distinct possibilities must you distinguish, and how much information does each weighing provide?

Hint 2

After the first weighing produces a result, some coins are proven genuine and can serve as reference weights in subsequent weighings.

Hint 3

For the first weighing, consider what happens if you weigh k coins against k coins. Each outcome must leave few enough possibilities that two more weighings can resolve them.