Search code examples
algorithmtime-complexityasymptotic-complexitybig-o

Asymptotic. If f(n) = theta(g(n)) and g(n) = theta(h(n)), then why h(n) = theta(f(n))


it is f(n)=theta(h(n)) as theta is transitive. But Can any one explain why h(n)=theta(f(n)).


Solution

  • Expanding the Big-O notation by its definition usually makes things easy.

    enter image description here