Asymptotic Analysis

Overview

The most commonly used method for analyzing order of growth is asymptotic analysis. Here resources of an algorithm are measured by some function whose leading coefficients and lower-ordered terms are ignored.

Asymptotically Tight

Θ-notation

Θ-notation refers to a strict lower- and upper-bound. It is defined as set

Θ(g(n))={f(n)c1,c2,n0>0,nn0,0c1g(x)f(n)c2g(n)}.

theta-notation.png

O-notation

O-notation refers to a strict upper-bound. It is defined as set

O(g(n))={f(n)c,n0>0,nn0,0f(n)cg(n)}.

big-o-notation.png

Ω-notation

Ω-notation refers to a strict lower-bound. It is defined as set

Ω(g(n))={f(n)c,n0>0,nn0,0cg(n)f(n)}.

big-omega-notation.png

Asymptotically Loose

o-notation

o-notation refers to an upper bound that is not asymptotically tight. It is defined as set

o(g(n))={f(n)c>0,n0>0,nn0,0f(n)<cg(n)}.

Alternatively, we can express o-notation using limits. If f(n)=o(g(n)), then

limnf(n)g(n)=0.

ω-notation

ω-notation refers to a lower bound that is not asymptotically tight. It is defined as set

ω(g(n))={f(n)c>0,n0>0,nn0,0cg(n)<f(n)}.

Alternatively, we can express ω-notation using limits. If f(n)=ω(g(n)), then

limnf(n)g(n)=.

Arithmetic

When encountering equations with asymptotic notation on both sides of the equality, we interpret the equation using the following rule:

No matter how the anonymous functions are chosen on the left of the equal sign, there is a way to choose the anonymous functions on the right of the equal sign to make the equation valid.

For example, 2n2+Θ(n)=Θ(n2) states that for all f(n)Θ(n), there exists some g(n)Θ(n2) such that 2n2+f(n)=g(n).

Powered by Forestry.md