Math · Intermediate · Lesson 1 of 7
Searching
Linear versus binary search
An interactive lesson with 7 steps, about 6 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.
What you’ll learn
- Linear search: up to checks.
- Binary search on sorted data: about checks.
- Doubling the data adds just one step to binary search.
Steps
- Two strategies
- A million names
- Double the data
- Guess my number
- The catch
- Halving the search
- Everyone on Earth