The 8 ball problem

Problem:

The problem is quite simple. You are given 8 identical-looking balls, one of which is heavier than the other 7 (all of which weigh the same).

Solution:

You can identify the heavier ball in only 2 weighings! The secret is not to get fooled into the “divide and conquer” approach where the input is halved in each iteration as explained above. To achieve this in only 2 weighings, you first put 3 balls in each bowl on the scale, e.g. {1,2,3} against {4,5,6}. Should the scale balance, you have only 2 balls remaining which you can compare by putting each in a separate bowl on the scale, e.g. {7} against {8}. Should the scale not balance, however, take the 3 balls from the heavier bowl on the scale (e.g. 1,2,3). Pick any 2 balls and compare these against each other, e.g. {1} against {2}. If the scale balances, you know it is ball 3 is the heavier. Is the scale moving, you know it’s the ball on the heavier side.


Did You Enjoy This Post?

Subscribe to our blog through our RSS feed or email to receive updates on more posts like this.post on your favourite social networking or media site to let others know about this post. Help us generate more buzz by submitting/voting for this post with the following buttons.

One Response to “The 8 ball problem”

  1. mnarat says:

    thanks for the clever postes

Leave a Reply











request new questions/article: send email to freequestionbank at gmail dot com