The idea
Key formulas
Logarithmic growth
Linear growth
Linearithmic growth
Loading lessons…
Just a moment, getting everything ready. The first load can take up to a minute.
Data structures and algorithms
Compare common algorithm growth rates from logarithmic to factorial using operation counts.
| Complexity | Operations at n | Largest n within 1 second |
|---|---|---|
| n | 24 | 100,000,000 |
| log n | 5 | 2^100,000,000 |
| n log n | 120 | 4,347,826 |
| n² | 576 | 10,000 |
| 2ⁿ | 16777216 | 26 |
| n! | >100,000,000 | 11 |
At 10⁸ operations/second
Pseudocode
Complexity describes how an algorithm's operation count changes with input size . The chart compares , , , , , and . Counts are capped for display rather than overflowing.