CAPE Computer Science Unit 2 · 2013 · Paper 2 · Question 2(d)(ii)
Given an array containing 16 sorted integers: [1, 5, 7, 15, 19, 23, 24, 28, 31, 36, 54, 57, 67, 72, 79, 80].
How many comparisons does a binary search make before determining that 50 is not present in the array? Show your working.
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