Skip to content

Binary search

finding

Level 1 of 3

Also called Half-interval search and Logarithmic search.

In a row in order, look at the middle number. If it is not the one you want, the order tells you which half cannot hold it, so rule that half out and look at the middle of what is left. Every look halves the search.

looks
0

step 1 of 1

Examples

Whole numbers from 1 to 99 in order, smallest first, between 2 and 12 of them, then a semicolon and the number to find, for example 7, 18, 31, 42; 31.