Notation, Languages, Big-Oh




CS254

Chris Pollett

Jan. 30, 2017

Outline

Computation and complexity

Notations

Strings

Representing Objects as Strings

Decision Problems/Languages

Big-Oh Notation

Definition. If `f,g` are two functions from `NN` to `NN`, then we say that (1) `f=O(g)` if there exists a constant `c` such that `f(n) le c cdot g(n)` for every sufficiently large `n`, (2) we say `f= Omega(g)` if `g= O(f)`, and (3) say that `f=Theta(g)` if `f=O(g)` and `f=Omega(g)`. (4) We say that `f = o(g)` if for every `epsilon > 0`, `f(n) le epsilon g(n)` for sufficiently large `n` and say that `f = omega(g)` if `g = o(f)`.