a. Rank the following functions by order of growth; that is, find an arrangement g1,g2,…,g30 of the functions g1=Ω(g2),g2=Ω(g3),…,g29=Ω(g30). Partition your list into equivalence classes such that functions f(n) and g(n) are in the same class if and only if f(n)=Θ(g(n)).
b. Give an example of a single nonnegative function f(n) such that for all functions gi(n) in part (a), f(n) is neither O(gi(n)) nor Ω(gi(n)).
22n+122n(n+1)!n!enn⋅2n2n(3/2)n(lgn)lgn=nlglgn(lgn)!n3n2=4lgnnlgn and lg(n!)n=2lgn(2)lgn(=n)22lgnlg2nlnnlgnlnlnn2lg∗nlg∗n and lg∗(lgn)lg(lg∗n)n1/lgn(=2) and 1
b. For example,
f(n)={22n+20if n is even,if n is odd.
for all functions gi(n) in part (a), f(n) is neither O(gi(n)) nor Ω(gi(n)).