How can guessing the midpoint and discarding the half that can't hold the answer turn a linear hunt into logarithmic growth?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
In the blind game you get 8 guesses, and each guess can check exactly one of the book's 448 pages. Your probability of winning is the fraction of the book your guesses can cover.
Compute that probability and assign it to odds.
The two properties bisection search requires
State the two requirements, an ordering with known low and high endpoints and feedback of correct, too low or too high, and record the alphabetically seated class as a non-numeric ordering.
Midpoint guessing on the 448-page book
Trace the hunt for the hidden bill with guesses 224, 112, 56, 28, 14 and 21, writing the surviving interval and the discarded half after each answer.
Linear versus logarithmic growth in guesses
Contrast searching one page at a time, where a book twice as large needs twice as many guesses, with halving, where a book twice as large needs one extra guess.