Asymptotic Notation

Definition

Analyzing how two functions f and g grow in comparison.

  1. f=O(g): going toward infinity, f grows at most as fast as g
  2. f=Ω(g): going toward infinity, f grows at least as fast as g
  3. f=θ(g): when f=O(g) and f=Ω(g)
    • f grows comparable to g

How to compute

Limit

Calculate the limit of f(n)g(n) when n

For polynomials

  1. Keep the biggest exponent, throw everything else away.
  2. Remove the multiplier
Powered by Forestry.md