CAPE Computer Science Unit 2 · 2012 · Paper 2 · Question 2(b)(i)
A sorted array arr contains 10 integers: indices 0 to 9 with values 7, 9, 16, 22, 27, 45, 50, 51, 80, 91.
Describe how a binary search algorithm will search arr for key 16, showing the portion of the array searched each iteration.
This question uses a figure or table from the paper — you'll see it when you practise.
The mark scheme is shown once you've answered.
Practise this question