1 Asymptotic Cost Notation (N is size of input) No increase in cost Constant O(1) Increases by fixed amount Linear ϴ(N) Increases by size of input Quadratic ϴ(N2) Doubles cost Exponential ϴ(2N)
(N is size of input) No increase in cost Constant O(1) Doubling size of input increases cost by fixed amount Logarithmic ϴ(log N) Doubling size of input doubles cost Linear ϴ(N) Doubling size of input, quadruples cost Quadratic ϴ(N2) Increasing size by 1, doubles cost Exponential ϴ(2N)