« previous | Friday, January 21, 2011 | next »
Asymptotically Comparing Functions
Let
and
:
- When
, 
- Asymptotically,
"grows faster" than
, so
≥
when 
- In general, we say
is asymptotically less than or equal to
if and only if there exists a natural number
such that
≥
for all
→
[1][2][3][4][5]
- Therefore

For more complex problems like
, take limit to infinity and put it in order notation:
is order
(
)
Big O
An upper bound on a function
:

Precise Definition: 
is big oh of (order)

if and only if there exists a constant

and a natural number

such that

≤

for all

Precise definition
Big Ω
A lower bound on a function
[6]:

Precise Definition: 
is big omega of

if and only if there exists a constant

and a natural number

such that

≥

for all
Note: 
Big Θ
Means that function has same asymptotic growth as another function up to multiplication by constants. Similar to squeeze theorem in Calculus for proof of convergence.


Precise definition
Note
Examples
Example 1
- Claim

- Choose
and 

Example 3
Example 4
(See Wikipedia:Binomial coefficient→)
Order of dominance








Comparing Functions
This means that
up to a constant factor
- ↑
(curved or soft version of ≤) means "is asymptotically less than or equal to"
- ↑ ⇔ means "if and only if" (iff)
- ↑ ∃ means "there exists"
- ↑ : means "such that"
- ↑ ∀ means "for all"
- ↑ comparison-based sorting algorithms need at least
comparisons.