Of nine similar balls, Eight of them weigh the same. How can you find the ball that is different by using a balance and only three weighing?
Solution
Take 2 sets of 3 balls each. If they are
of same weight then the 3rd set of balls say (1),(2),(3) contain the
different ball. Now weigh (1) and (2).
If they are same then 3 is the different ball. If they are different say (1) is
heavier then weigh (1) and (3), if they are different the (1) is different
ball. If they are same then (2) is the
different ball.
Now say 1st set is heavier.
We compare the 1st set and 3rd
set. If 1st one is heavier then this contains the heavy ball. Compare
2 balls of 1st set and if they are of same weight then 3rd
ball is different and if not same then heavier ball is different. If the 2 are same. Then 2nd set
contains the lighter ball. Compare 2 balls of second set and if they are of
same weight then 3rd ball is different and if not same then lighter ball
is different
No comments:
Post a Comment