Big-O, Big-Theta & Big-Omega Flashcards
Describe the symmetry of Big-Theta
if f(n) is θ(g(n)) then g(n) is θ(f(n))
Define Big-Omega in words. i.e. if g(n) is Ω(f(n))
g(n) is not smaller than f(n) if there are c and n0 such that for all n > n0 we have g(n) >= c.f(n). f(n) is the asymptotic lowerbound for g(n)
If f(n) is O(h(n)) & g(n) is O(h(n)) then f(n) + g(n) is
f(n) + g(n) is O(h(n))
Define BigO in words. i.e. if g(n) is O(f(n))
g(n) is not bigger than f(n) if there are c and n0 such that for all n > n0 we have g(n) c.f(n). f(n) is the asymptotic lowerbound for g(n)
if f(n) is O(g(n)) then g(n) is ?(f(n))
if f(n) is O(g(n)) then g(n) is Ω(f(n))
if f(n) is O(g(n)) then f(n) + g(n) is ?
if f(n) is O(g(n)) then f(n) + g(n) is O(g(n))
How many matrix multiplications are required to compute the n-th power of a matrix?
roughly log2 n
Define BigO using the limit equation
Define Big-Theta in words. i.e. if g(n) is θ(f(n))
g(n) has the same rate as f(n) if there are c1, c2 and n0 such that for all n > n0 we have c1.f(n) = g(n) = c2.f(n)
g(n) has the same complexity as f(n)
Describe the Transitivity of Big-O, Ω & θ
if f(n) is O(g(n)) and g(n) is O(h(n)) then f(n) is O(h(n)).
Same goes for Ω & θ
if f(n) is θ(g(n)) then f(n) is ?
if f(n) is θ(g(n)) then f(n) is both O(g(n)) and Ω(g(n))
Define Big-Ω using the limit equation
Define Big-Theta using the limit equation