Algorithms · Level 2 of 5
Binary Search
Finding an item in an ordered range by repeatedly discarding half the candidates.
Correctness requires a suitable ordering or monotonic predicate.
Example
A lookup narrows a sorted list by comparing its midpoint.
Listen to the definition and example
Audio transcript
Binary Search. Finding an item in an ordered range by repeatedly discarding half the candidates. Correctness requires a suitable ordering or monotonic predicate. For example: A lookup narrows a sorted list by comparing its midpoint.
Explore this concept
Why it matters
This helps you compare problem-solving methods and their computational tradeoffs.
Related concepts
Quick recall question
Try answering before looking back at the definition.