Algorithm Running Times
Function
Name
Big-Oh
c
Constant
O(1)
log N
Logarithmic
O(log N)
log
2
N, log
k
N
Log-squared, Poly-logarithmic
O(log
2
N), O(log
k
N)
N
Linear
O(N)
N
2
, N
3
Quadratic, Cubic
O(N
2
), O(N
3
)
N
k
Polynomial
O(N
k
)
2
N
Exponential
O(2
N
)
Super-exponential