Math — Big-O Complexity
Ordering common growth rates.
What this template contains
- Equations
- 4
- Source
- 4 lines
Make it your own.
O(1) < O(\log n) < O(n) < O(n\log n) < O(n^2) < O(2^n)
T(n) = O(f(n))
\text{worst-case growth rate}
\text{drop constants and lower-order terms}