Showing posts with label searching. Show all posts
Showing posts with label searching. Show all posts

Wednesday, August 31, 2016

Implementation And Time analysis of Binary Search algorithm

 binary search, also known as half-interval search or logarithmic search, is a search algorithm that finds the position of a target value within a sorted array. It compares the target value to the middle element of the array; if they are unequal, the half in which the target cannot lie is eliminated and the search continues on the remaining half until it is successful.