0

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

Xax
  • 185
  • 6
  • 18
  • 3
    This question appears to be off-topic because it is about computer science. Consider migrating it to http://cs.stackexchange.com/ – Timothy Shields Dec 22 '13 at 20:22
  • 1
    All of the growth notations are transitive. Theta is the only one that is also symmetric (and tilde, if that counts). – Teepeemm Dec 22 '13 at 20:31

3 Answers3

5

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

enter image description here

Angel Politis
  • 10,955
  • 14
  • 48
  • 66
Timothy
  • 4,467
  • 5
  • 28
  • 51
1

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

Paul Hankin
  • 54,811
  • 11
  • 92
  • 118
0

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))
phimuemue
  • 34,669
  • 9
  • 84
  • 115