20
Estimating Running Times
(cont)
Seven commonly encountered functions for algorithm analysis
Constant ≅
1
Logarithmic ≅
log
n
Linear ≅
n
N-Log-N ≅
n
log
n
Quadratic ≅
n
2
Cubic ≅
n
3
Exponential ≅
2
n