in Algorithms retagged by
5,034 views
5 votes
5 votes
Where c is constant.
in Algorithms retagged by
5.0k views

1 Answer

10 votes
10 votes
Best answer

I am getting $\Theta$ (2^n) .

selected by

4 Comments

Unless we approximate we always get $\Theta$. Theta says = while O says <=. So, Theta is more appropriate if it can be used.
2
2
But theta(n) is used when T(n) =Omega(n) as well as O(n) , so seeing the above solution how to conclude that both of them are asymptotically same .
0
0
Here, it is other way. In the proof all statements were "=". So, finally we can say it is $\Theta(2^n)$ and hence $O(2^n)$ and $\Omega(2^n)$.
2
2