Comparison of Functions

1  Relationships

Like real numbers, many relational properties can be applied to asymptotic comparisons. One of the properties of real numbers that does not apply to asymptotic comparisons is trichotomy. For any two real numbers, a and b, exactly one of the following must hold: a<b, a=b, or a>b. Some functions however can not be asymptotically compared.

1.1  Transitivity


f(n)=Θ(g(n)) and g(n)=Θ(h(n)) imply f(n)=Θ(h(n)) f(n)=O(g(n)) and g(n)=O(h(n)) imply f(n)=O(h(n)) f(n)=Ω(g(n)) and g(n)=Ω(h(n)) imply f(n)=Ω(h(n)) f(n)=o(g(n)) and g(n)=o(h(n)) imply f(n)=o(h(n)) f(n)=ω(g(n)) and g(n)=ω(h(n)) imply f(n)=ω(h(n))

1.2  Reflexivity


f(n)=Θ(f(n)) f(n)=O(f(n)) f(n)=Ω(f(n))

1.3  Symmetry


f(n)=Θ(g(n)) if and only if g(n)=Θ(f(n))

1.4  Transpose Symmetry


f(n)=O(g(n)) if and only if g(n)=Ω(f(n)) f(n)=o(g(n)) if and only if g(n)=ω(f(n))

2  Standard Notation and Common Functions

The following terms and rules should be familiar, as most will be a review of some standard mathematical notations.

2.1  Monotonicity

A function, f(n) is monotonically increasing if mn implies f(m)f(n). Similarly, a function is monotonically decreasing if mn implies f(m)f(n).
A function is strictly increasing if m<n implies f(m)<f(n). Likewise, a function is strictly decreasing if m>n implies f(m)>f(n).

2.2  Floors and Ceilings

The floor of x is the greatest integer less than or equal to x, and is denoted by x. The ceiling of x is the least integer greater than or equal to x, and is denoted by lceilx.
For all real x: x-1<xxx<x+1.

2.3  Polynomials

Given a positive integer d, a polynomial in 4n4 of degree d is a function of the form:

p(n)= i=1 n ai ni

where a1 , a2 ,, an are the coefficients of the polynomial. For example, 3 n5 -2 n4 +7 n2 +n-8 is a polynomial of degree 5 with coefficients 3, -2, 0, 7, 1, and -8.

2.4  Exponentials

An important property of exponentials is that, for all real constants, a and b such that a>1,

limn nb an =0

From this we can conclude that

nb =o( an )

Thus, any exponential function with a base strictly greater than 1 will grow faster than any polynomial function.

2.5  Logarithms

We will use the following notations throughout this course:

lgn= log2 n (binary logarithm) lnn= loge n (natural logarithm) lgk n=(lgn )k (exponentiation) lglgn=lg(lgn) (composition)

Like exponentials, we can relate polylogarithms to polynomials:

limn lgb n na =0

We can then conclude that

lgb n=o( na )

for any constant a>0. So any polynomial function grows faster than any polylogarithmic function.



File translated from TEX by TTM, version 3.67.
On 31 Mar 2006, 18:12.