Algorithm: Binary Search

Algorithm: Binary Search

How to find an index of a number in a given array using binary search? This article goes through the algorithm as well as showing you few variations of binary search: finding floor and ceil in the array, implemented in Java.