BrainTeaser Challenging

Problem - 4664

$\textbf{Outlier Ball}$

There are $12$ balls of which $11$ weigh the same and an outlier that weighs differently. We do not know whether the outlier weighs more or less than the other balls. What is the minimum number of weighs required to find this outlier using a balance? (This problem is similar to # 4663 except that the outlier ball can be either heavier or lighter.)


$\textbf{Solution}$

Three weighs are sufficient.

First, equally divide these balls into three groups of $4$ balls each. Then, weigh the first and second group. There are two possible outcomes:

$\underline{These\ two\ groups\ weigh\ the\ same}$

Then we know the outlier must be in the third group and all the balls in the first two groups are normal. Label the four balls in the third group as $A$, $B$, $C$, and $D$, respectively. Get a normal ball from the first two groups, call it $N$. Then weigh $A+B$ and $C+N$.

  • If they are balanced, then we immediately know $D$ is the outlier.
  • If they are not balanced, say, $A+B$ is heavier than $C+N$, then either $C$ is lighter or one of $A$ and $B$ is heavier. The next step is to weigh $A$ against $B$. If they are balanced, then $C$ is the outlier. Otherwise, the heavier between $A$ and $B$ is the outlier.
  • If $A+B$ is lighter than $C+N$, then either $C$ is heavier or one of $A$ and $B$ is lighter. By the similar logic, it takes just another weigh, $A$ v.s. $B$, to find out the outlier.

$\underline{These\ two\ groups\ weigh\ differently}$

Then we know the balls in the third group are normal. Get one of them, call it $N$. We label the balls in the first group as $A_1$, $A_2$, $A_3$, $A_4$, and the balls in the second group $B_1$, $B_2$, $B_3$, $B_4$. Without loss of generality, let's assume group $A$ is heavier. Then we we measure $A_1+A_2+B_1$ vs $A_3+B_2+N$.
  • If they weigh the same, then the outlier must be among $A_4$, $B_3$ and $B_4$. Furthermore, we know either $A_4$ is heavier or one of $B_3$ and $B_4$ is lighter. Therefore, another weigh between $B_3$ and $B_4$ is sufficient to identify the outlier.
  • If $A_1+A_2+B_1$ is heavier than $A_3+B_2+N$, then we know either $A_1$ or $A_2$ is heavier than normal or $B_2$ is lighter than normal. Either case can be solved by measuring $A_1$ against $A_2$.
  • Similarly, if  $A_1+A_2+B_1$ is lighter than $A_3+B_2+N$, then we know either $A_3$ is heavier, or $B_1$ is lighter. Either way, this can be determined by weighing $A_3$ against $N$.

Therefore, in total, three weighs are sufficient.

$\textbf{Note}$

Similar problems appear often in various tests and interviews. They are more challenging than # 4643. It can be shown that $n$ weighs are sufficient to find one outlier among up to $(3^n-3)/2$ objects.

report an error