Asymptotics




CS146

Chris Pollett

Feb 12, 2014

Outline

Asymptotics

`Theta`-notation

Graph of a function which is theta of g(n)

To begin, let's be precise in what we mean by the notation `Theta(g(n))` for some function `g`.

Definition. For a given function `g(n)` (which we will assume is usually from `NN -> ZZ`), we denote by `Theta(g(n))` the set of functions:
`Theta(g(n)) = { f(n): text{there exists } c_1, c_2 > 0 text{and } n_0`
`text{ such that } 0 le c_1g(n) le f(n) le c_2 g(n) text{ for all } n ge n_0}.`

Example - Showing something is `Theta(n^2)`

Example - Showing something is not `Theta(n^2)`

Example -- Lead term is the most important

`O`-notation and `Omega`-notation

Interpreting formulas involving Asymptotic notation.

`o` and `omega`-notation