Decide whether these statements are always true, never true, or sometimes true for
asymptotically nonnegative functions f and g. You must justify all your answers to receive
full credit by either giving a short proof (1-2 sentences) or exhibiting a counter-example.
(b) Given that f (n) = Ω(n2 ) and g(n) = Ω(n), f (g(n)) = Ω(n3 )
Solution:
(e) Rank the following functions by order of growth. In other words, find an arrangement
g1 , g2 , . . . , g20 of the functions satisfying g1 = Ω(g2 ), g2 = Ω(g3 ), . . . , g19 = Ω(g20 ).
Partition your list into equivalence classes such that f (n) and g(n) are in the same class
if and only if f (n) = Θ(g(n)). (The function log∗ n is discussed on page 58 of CLRS.)
100 ) √
2(100 ( 2)log n n2 n!
X n
3n k log∗ n log(n!)
k=1
Solution: