in Algorithms retagged by
5,045 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

7 Comments

You should use $\Theta$ though $O$ is not wrong here :)
1
1
Done.
1
1
Very nicely explained. Thanks for the answer. :)
1
1
Sir ,how to get the intution while solving a recurrence whether we should use theta or Big-O ?And why  here theta is more appropriate ?
0
0
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