On a quiet evening, Nova invents a game. "I am thinking of a whole number from 1 to 100," she says. "I will say higher or lower."
Rocket jumps in. "Is it 1? Is it 2? Is it 3?" Nova keeps saying higher.
Raven laughs kindly. "What do you notice? Each guess only rules out one number."
Rocket rubs his chin. "What guess would rule out the most numbers?"
Nova winks a cyan eye. "Here is a hint. Try a guess right in the middle."
If the first guess is 50 and Nova says higher, every number from 1 to 50 is gone. Half the numbers vanish with one guess!
Then guess the middle of what is left. Keep halving until you land on the number.
| Guess | Numbers still possible | Nova says |
|---|---|---|
| 50 | 1 to 100 | higher |
| 75 | 51 to 100 | lower |
| 62 | 51 to 74 | higher |
| 68 | 63 to 74 | higher |
| 71 | 69 to 74 | lower |
| 69 | 69 to 70 | higher |
| 70 | 70 to 70 | got it! |
Nova was thinking of 70. Halving found it in 7 guesses. Guessing 1, 2, 3 would have taken 70 guesses.
| Statement | True or false? |
|---|---|
| Guessing in the middle removes about half the numbers. | ? |
| Guessing 1, 2, 3 in order is just as fast. | ? |
| Halving only works because Nova says higher or lower. | ? |
Play again with the numbers 1 to 20. The secret number is 13. Always guess the middle of what is left.
| Guess | Numbers still possible | Nova says |
|---|---|---|
| 10 | 1 to 20 | higher |
| 15 | 11 to 20 | lower |
| 12 | 11 to 14 | higher |
| 13 | 13 to 14 | got it! |
| Statement | True or false? |
|---|---|
| A middle guess is a smart first guess. | ? |
| Guessing 1 first throws away half the numbers. | ? |
| After each guess, the numbers left are about half as many. | ? |
| Halving found 13 in fewer than 13 guesses. | ? |
Brilliant guessing! Tomorrow we use halving to search the sorted star catalog by hand.