Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 498 Bytes

README.md

File metadata and controls

5 lines (4 loc) · 498 Bytes

Binary Search

Search a sorted array by repeatedly dividing the search interval in half. Begin with an interval covering the whole array. If the value of the search key is less than the item in the middle of the interval, narrow the interval to the lower half. Otherwise narrow it to the upper half. Repeatedly check until the value is found or the interval is empty.

Binary and linear search