C++ workspace

Growth rates

Illustrative operation counts, not benchmarks. Both chart axes use a logarithmic scale.

operations / input size
How algorithm growth rates compareLogarithmic, linear, linearithmic, and quadratic operation counts as input grows from 10 to 100,000 elements. Exact values appear below.10¹⁰10⁶10²1101001K10K100K
O(log n)10
O(n)1K
O(n log n)10K
O(n²)1M