it is f(n)=theta(h(n)) as theta is transitive. But Can any one explain why h(n)=theta(f(n)).
Asked
Active
Viewed 6,867 times
0
-
3This 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
-
1All 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 Answers
5
Expanding the Big-O notation by its definition usually makes things easy.

Angel Politis
- 10,955
- 14
- 48
- 66

Timothy
- 4,467
- 5
- 28
- 51
-
putting H(n)<=G(n)/s.. cool..and easy ..thanks @Skyler.Is it why the theta is symmetric .. – Xax Dec 24 '13 at 07:01
-
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
-
@MartijnPieters Sorry, I didn't pay attention at this very moment. Can I reject it now? – phimuemue Jan 21 '14 at 11:44
-
1Nope; we had to clean up the tag to remove the spam. If you are not paying attention, why review at all? – Martijn Pieters Jan 21 '14 at 11:45