Consider the following array. The searching element is 45.
A[9]={6, 12, 17, 23, 38, 45, 77, 84, 90}
What is the sequence of mid elements, when we search the element 45 by using binary search?
1
23, 77, 45
2
23, 45, 77
3
38, 77, 45
4
38, 45, 77
Consider the following array. The searching element is 45.
A[9]={6, 12, 17, 23, 38, 45, 77, 84, 90}
What is the sequence of mid elements, when we search the element 45 by using binary search?