Binary Search Sequence Analysis
A binary search for the value 42 is executed on a sorted array. The sequence of middle values examined during the search is 50, 25, 37, 43, 40, 41, and 42. Which of the following must be true about the size of the array and the position of the value 42?
A
The array has exactly 128 elements, and 42 is located in the lower half of the original search space
B
The array has between 32 and 63 elements, and 42 is located in the upper half of the original search space
C
The array has between 64 and 127 elements, and 42 is located in the lower half of the original search space
D
The array has between 64 and 127 elements, and 42 is located in the upper half of the original search space
Question Leaderboard
Not enough data yet to show leaderboard.
