Binary search

About the algorithm:

Splits sorted data set in half until target is (not) found


Categories:  Search   Inefficient  
Best case: Ω(1)
Worst case: O(log n)

Try the algorithm: