Write a program to show no of comparisons in binary search program
Answers
Answered by
0
comparisons using the binary search
and sequential search algorithms as follows:
Suppose list is an array of 1000 elements.
a. Use a random number generator to fill list.
b. Use any sorting algorithm to sort list. Alternatively, you can use the
function insertOrd to initially insert all the elements in the list.
and sequential search algorithms as follows:
Suppose list is an array of 1000 elements.
a. Use a random number generator to fill list.
b. Use any sorting algorithm to sort list. Alternatively, you can use the
function insertOrd to initially insert all the elements in the list.
Similar questions