1.

What is the formula to calculate mid element index number in the binary search method?

Answer»

The formula to calculate mid element index number in the binary search method is
Mid-element-index = (low + high)/2
Where low is beginning index number and high is the last index number of an array.



Discussion

No Comment Found