Hi! Could someone please help me with the following binary search questions? (explain please!) Thanks.
A binary serach will be performed on the following list:
4, 7, 9, 11, 20, 24, 30, 41
1. To find the key value 27, the search interval after the first pass through the loop will be?
2. How many iterations will be required to determine that 27 is not on the list?
3. For which set of data will a sequential search perform more efficently than a binary search, if the value being searched for is 5?
a. 4, 5, 6, 8, 9, 11
b. 1, 2, 4, 5, 7, 10
c. 2, 4, 6, 8, 10, 12
d. 1, 2, 3, 4, 5, 6
e. 0, 1, 2, 3, 4, 5
A binary serach will be performed on the following list:
4, 7, 9, 11, 20, 24, 30, 41
1. To find the key value 27, the search interval after the first pass through the loop will be?
2. How many iterations will be required to determine that 27 is not on the list?
3. For which set of data will a sequential search perform more efficently than a binary search, if the value being searched for is 5?
a. 4, 5, 6, 8, 9, 11
b. 1, 2, 4, 5, 7, 10
c. 2, 4, 6, 8, 10, 12
d. 1, 2, 3, 4, 5, 6
e. 0, 1, 2, 3, 4, 5
Comment