Please help me solve it in terms of Theta or Big O
Asked
Active
Viewed 493 times
1 Answers
0
Based on the Wikipedia article I would say it is $\theta(n)$. Case 1.
https://en.wikipedia.org/wiki/Master_theorem_(analysis_of_algorithms)#Generic_form
$a=b=3$ and $c_{crit} = 1$. $f(n)$ has exponent $c=\frac 1 2$ since $f(n)={\sqrt n}=n^\frac 1 2$. So, $T(n)=\theta(n)$ by Case 1 because $c < c_{crit}$.
Bobby

Bobby Durrett
- 151
- 5
-
Thank you so much! Bobby – Rako Maristella Oct 16 '20 at 01:07