Pay attention to cost of computation (usually time and space)
Running time of programs depends on “size” of problem input
Doubling Hypothesis is the question “What is the effect on running time if input size is doubled?”
Two kinds of running time analysis:
The notation g(n) ~ f(n) means g(n)/f(n)→1 as n → ∞
The notation ~f(n) means all functions g such that g(n)/f(n)→1 as n → ∞
For many programs, the running time satisfies the relationship T(n) ~ cf(n) where c is a constant and f is a function known as the order of growth of the running time.
Typical f are