Processing math: 100%

Exercise 3.1-8

We can extend our notation to the case of two parameters n and m that can go to infinity independently at different rates. For a given function g(n,m), we denote by O(g(n,m)) the set of functions

O(g(n,m))={f(n,m): there exist positive constants c, n0, and m0 such that 0f(n,m)cg(n,m) for all nn0 or mm0}.

Give corresponding definitions for Ω(g(n,m)) and Θ(g(n,m)).

Ω(g(n,m))={f(n,m): there exist positive constants c, n0, and m0 such that 0cg(n,m)f(n,m) for all nn0 or mm0}.

Θ(g(n,m))={f(n,m): there exist positive constants c1, c2, n0, and m0 such that 0c1g(n,m)f(n,m)c2g(n,m) for all nn0 or mm0}.