Update: Accidentally forgot to make test 2 harder than test 1. Test 2 has been updated.
Our village has undergone some changes since our last party with the king. You are now being considered for heir to the throne. The king has devised two tests for you to see if you are worthy.
Test 1: You are given 9 balls and a balance scale. One of the balls weighs slightly less than the other 8. Using the scale only twice how can you figure out which ball weighs less than the others? Do not attempt to mark the ball once you find it.
Test 2: You are given 12 balls and a balance scale. One of the balls weighs slightly less or slightly more than the other 11. Using the scale only three times how can you figure out which is the odd ball out?
Good luck!
P.S. If you have any feedback or ideas for the site I'm always open to hearing them. Drop them in the comments or the suggestion box when you get the chance.
Comments:
vlad - 10 years, 9 months ago
You divide the balls in three groups of 3 balls each. You then compare two groups. If any of the groups weighs less, we know the ball is in one of them. If they weigh the same, then we know the ball is in the unweighted group. After selecting the group, we take a ball out, and weigh the remaining balls. If they weigh the same, the ball we are looking for is the one we took out, otherwise it's the one indicated by the scale.
The second problem is solved in pretty much the same way. All we need to do is weigh once more in the beginning, between two groups of 6 balls.
reply permalink
heartinpiece - 10 years, 9 months ago
The second problem can be done likewise, but I can think of two ways.
reply permalink
kdak - 10 years, 9 months ago
You've used the scale more than twice for test 1.
reply permalink
Carlos - 10 years, 9 months ago
reply permalink
Carlos - 10 years, 9 months ago
Do test 1 all over again but instead of working with groups of 3, you work with groups of 2
reply permalink
gulliver - 10 years, 9 months ago
reply permalink
Knight2E4 - 10 years, 9 months ago
Test 1 is relatively easy: Divide into 3 groups of 3. Weigh group 1 and 2. If they are equal, group 3 contains the fake, otherwise take the lighter of 1 and 2. Weigh balls A and B from that group. Again, if equal, ball C is the fake, otherwise the lighter of A and B is the fake.
Test 2 is definitely much trickier. The important piece of information is that really you only know the fake has a different weight. You will have to retest inequalities rather than selecting from a set of 3 options. This time I will label all of the balls for tracking. Divide into three groups containing four balls [A, B, C, D]; [E, F, G, H]; [I, J, K, L]. (1) Weigh [A, B, C, D] against [E, F, G, H].
If [A, B, C, D] = [E, F, G, H]: (2) Weigh I against J. Equal, (3)weigh I against K; equal gives L is fake. I!=J weigh, I against K; equal gives J is fake. This covers I, J, K, L.
If [A, B, C, D] > [E, F, G, H]: Then we know I, J, K, L are all true weight. We now need to divide the remaining 8 balls into groups of 2 balls in a single weighing. To do this switch two to the other side and replace one ball that stayed on the same side and 1 ball that switched. (2) Weigh [A, I, G, H] against [E, F, C, J]. If [A, I, G, H] = [E, F, C, J]: Either B or D is the fake. (3)Weigh them and take the heavier of the two. If [A, I, G, H] > [E, F, C, J]: The fake is A, E, or F. Since we know E or F would both be lighter, we compare them. (3)Weigh E and F If E = F: A is fake (and heavier). Otherwise the lighter of E or F is the fake. If [A, I, G, H] < [E, F, C, J]: The fake is C, G, or H. Since we again know G or H would be lighter, we compare them. (3)Weigh G and H If G = H: C is fake (and also heavier) Otherwise the lighter of G or H is the fake. If [A, B, C, D] < [E, F, G, H]: Flip all the signs for [A, I, G, H] > [E, F, C, J].
reply permalink