Consider the following list:2 10 17 45 49 55 68 85 92 98 110Using the binary search, how many comparisons are required to determine whether the following items are in the list or not? Show the values of first, last, and middle and the number of comparisons after each iteration of the loop.
a. 15
b. 49
c. 98
d. 99
Comments
Leave a comment