Also called Half-interval search and Logarithmic search.
fresh numbers
The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from binary search's own run on the numbers shown.
choose one
1question 1
Binary search looks for 46 in 5, 14, 20, 33, 39, 46, 53, 64, 71. At which place is its second look?
the answer, and why
the answer is B
The first look is at the middle, place 5, which holds 39. 46 is bigger, so places 6 to 9 are left. Their middles are places 7 and 8, and it takes the first.
Looking for 46: 3 looks, found at place 6.
a look, numbered in turn
found, ringed
looked at, not it
ruled out without a look
Looks at places 5, 7 and 6. The third look finds 46.
if you chose another
A46 stands at place 6, but the second look lands at place 7, before 46 is reached.
CPlace 8 is the second of the two middles. This binary search takes the first.
DPlace 3 is in the half the first look ruled out, since 46 is bigger than 39.