Midpoint rule
Chooses the next index to inspect from the current live interval.
Concept module
Keep an ordered list, the low-mid-high markers, and the shrinking interval visible together so binary search feels visual instead of procedural.
The simulation shows an ordered array with low, mid, and high markers. The active interval stays highlighted, and an optional ghost lane shows how far a one-by-one scan would have progressed by the same number of checks. Binary search is looking for 52 inside an ordered list of 18 values. It has used 0 midpoint checks so far. The live interval spans 0 to 17, so only 18 positions still matter. A left-to-right scan would still need 17 checks to guarantee the same target.
Interactive lab
Keep the stage, graph, and immediate control feedback in one working view.
Time
0.00 s / 5.04 sLivePause to inspect a specific moment, then step or scrub through it.Algorithms and search
Keep the ordered list, the low-mid-high markers, and the shrinking live interval visible together so halving the search space feels concrete.
Graphs
Switch graph views without breaking the live stage and time link.
Interval width over time
One graph tracks the interval width, another tracks the low-mid-high positions, and a third compares binary-search checks with linear-search checks.
Controls
Adjust the live parameters and watch the bench respond.
Presets
Predict -> manipulate -> observe
Keep the active prompt next to the controls so each change has an immediate visible consequence.
Equation map
Select a symbol to highlight the matching control and the graph or overlay it most directly changes.
Sets how many ordered values the search has to work through.
Equations in play
Choose an equation to sync the active symbol, control highlight, and related graph mapping.
More tools
Detailed noticing prompts, guided overlays, and challenge tasks stay available without taking over the main bench.
What to notice
Keep the ordered list and one history graph visible together.
Guided overlays
Focus one overlay at a time to see what it represents and what to notice in the live motion.
Overlay focus
Highlight the part of the ordered list that is still alive.
What to notice
Why it matters
It turns the efficiency of binary search into something visible.
Challenge mode
Make halving the search space do real work.
5 of 7 checks
The checklist updates from the live simulation state, active graph, overlays, inspect time, and compare setup.
Midpoint rule
Chooses the next index to inspect from the current live interval.
Interval width
Counts how many positions are still alive after each halving step.
Progress
Not startedMastery: NewLocal-firstStart exploring and Open Model Lab will keep this concept's progress on this browser first. Challenge mode has 1 compact task ready. No finished quick test, solved challenge, or completion mark is saved yet.
Try this setup
Jump to a named bench state or copy the one you are looking at now. Shared links reopen the same controls, graph, overlays, and compare context.
Current bench
Far-right target preset
This bench still matches one named preset, so the copied link will reopen that same starting point along with the current graph, overlays, and inspect context.
Open default benchSaved setups
Premium keeps named exact-state study setups in your account while stable concept links stay public below.
Checking saved setup access.
This concept can keep using stable links while the saved-setups capability resolves for this browser.
Copy current setup
Stable concept and section links stay public below while exact-state setup sharing stays behind premium.
Stable links
Starter track
Step 2 of 20 / 2 completeEarlier steps still set up Binary Search / Halving the Search Space.
Previous step: Sorting and Algorithmic Trade-offs.
Short explanation
Binary search only makes sense on ordered data. Once the list is ordered, each midpoint check can delete half of the remaining possibilities instead of checking one item after another.
This bench keeps low, mid, high, and the shrinking interval visible together so the speed comes from the geometry of the search space, not from memorizing a procedure.
Key ideas
Worked example
Live worked examples are available on Premium. You can still read the full frozen walkthrough on the free tier.
View plans18
16
1. Read the live interval
2. Read the midpoint check
3. Compare the search cost
Current search read
Common misconception
Binary search is just a faster way of checking one item at a time.
The point is not a slightly better scan. The point is halving the remaining possibilities after each midpoint check.
That only works because the list is already ordered.
Mini challenge
Prediction prompt
Check your reasoning
Quick test
Reasoning
Question 1 of 2
Choose one answer to reveal feedback, then test the idea in the live system if a guided example is available.
Accessible description
The simulation shows an ordered array with low, mid, and high markers. The active interval stays highlighted, and an optional ghost lane shows how far a one-by-one scan would have progressed by the same number of checks.
Graph summary
One graph tracks the interval width, another tracks the low-mid-high positions, and a third compares binary-search checks with linear-search checks.
Read next
These suggestions come from the concept registry, so the reason label reflects either curated guidance or the fallback progression logic.
Watch sorting as visible work on a live list so input order, comparisons, and writes stay concrete instead of collapsing into one final answer.
Read complex numbers as points and vectors on one plane, then keep addition and multiplication geometric instead of symbolic-only.
Keep neutralization, buffer reserve, and the pH strip visible together so steady pH does not look like unchanged chemistry.