Вопрос

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

Это было полезно?

Решение

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

enter image description here

Другие советы

If k1.h(n) <= f(n) <= k2.h(n) for large n, then (1/k2)f(n) <= h(n) <= (1/k1)f(n).

That's basically simply because f(n) € theta(h(n)) is equivalent to h(n) € theta(f(n)) because of the following:

f(n) € O(h(n)) => h(n) € Omega(f(n))
f(n) € Omega(h(n)) => f(n) € O(h(n))
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top