It is game night on the ship. Raven thinks of a number from 1 to 100.
Rocket guesses 50. "Lower," says Raven. He guesses 25. "Higher."
Rocket keeps halving, and he finds it in six guesses. "What do you notice about my guesses?" he asks proudly.
Raven grins. "You always picked the middle of what was left."
Nova cheers. "Here is a hint for the next round. Count your guesses. Can anyone ever need more than 7?"
| Bonus recap statement | True or false? |
|---|---|
| Binary search checks the middle first. | ? |
| Binary search works on jumbled lists. | ? |
| mid = (low + high) // 2. | ? |
| Doubling the list adds one check in the worst case. | ? |
Quest complete! Next week we sort star cards by hand.