Problem solving · 5 min
Bisection: halve the search
Learn how repeatedly halving the possibilities finds answers fast, from guessing games to software bugs.
What the sources describe
Bisection means splitting the possibilities in half, checking which half contains the answer, and repeating. Each step halves the remaining search.
Twenty yes-or-no questions can distinguish among about a million possibilities, because 2 to the power of 20 is 1,048,576.
In computing, this is called binary search, used to find items in sorted lists quickly. Programmers use tools like Git's 'bisect' command to find which change introduced a bug by testing halfway points in the history.
In mathematics, the bisection method finds where a continuous function crosses zero, relying on the intermediate value theorem associated with Bernard Bolzano.
Bisection works only when you can tell which half the answer lies in — for example, when items are ordered or a test reliably shows 'before' or 'after'.
Everyday examples include finding a faulty bulb in a string of lights or locating where a leak starts.
Connecting the ideas
Halving the search at each step finds answers remarkably quickly.
The big idea
Instead of checking possibilities one by one, test the middle. Bisection saves huge time when problems can be split, such as debugging, troubleshooting or finding where something went wrong.
Use it in real life
Next time something stops working, such as a recipe or a spreadsheet, test the halfway point to see whether the problem occurs before or after. Repeat to narrow it down.
Try it
Made-up example: a 100-page document has an error introduced somewhere. How could bisection help?
A good answer: check page 50; if the error is before, check page 25, and so on, finding it in about seven steps.
Quick quiz
1. Roughly how large a set can 20 well-chosen yes-or-no questions narrow down to one item?
2. What does Git's bisect command do?
3. When does bisection work?
Finished reading?
Make this the next Doom video?
Vote for the lessons you'd most like to see turned into a short animated story.
How was this lesson?
No ratings yet — be the first.
Sign in to rateSources
Overview sources only. These references are not a completed primary-source fact-check.
Limitations
Overview sources.
Voice: Debby — Soft and soothing (tap to change)
Debby narration · part 1 of 17
