Binary Search Comparisons
Calculator

Inputs

Worst-case comparisons
20

Results

Worst-case comparisons
20
Exact log₂ N
19.931568
Speedup vs. linear search
50,000

Computing results

Worst-case comparisons20
Exact log₂ N19.931568
Speedup vs. linear search50,000

formula-map diagram

Worst-case comparisons
20
Exact log₂ N
19.931568
Speedup vs. linear search
50,000

Computing relationship

Formula

comparisons = ⌈log₂ N⌉

= 20

Note

This is a simplified model: it applies the standard computing formula to the numbers you entered and ignores protocol overhead, compression variability, retries, contention and other real-world effects. Size your systems with measured data.

More in Technology and computing

See all →