Concept Flow - Why Binary Search and What Sorted Order Gives You
Start with sorted array
Set low = 0, high = length-1
Calculate mid = (low + high) / 2
Compare target with array[mid
high=mid-1
Repeat until low > high
Not found
Binary search works on sorted arrays by repeatedly dividing the search range in half, quickly narrowing down where the target value could be.
