Algomination
SortingSearchingData StructuresAboutContact

Algomination

Learn algorithms and data structures through smooth, interactive visualizations.

SortingSearchingData StructuresAboutContact

© 2026Algomination. Created by Omang Rawat & Rahul Soni.

Omang Rawat
Rahul Soni
All searching algorithms

Binary Search

Time O(log n)Space O(1)

Repeatedly halves a sorted range, checking the middle element against the target.

Binary search requires sorted data — your array is sorted automatically before searching.

1
3
5
7
9
11
13
15
Binary Search needs sorted data — array sorted. Searching for 9.
Step 1 / 7
Sub-arrayComparingFound