407 views
What will be the solution of the following recurrence?

$$T(n)=3T\sqrt{n}+\log(n)$$

edited
yeah $O(logn^{1.58})$ to be precise  $O(logn^{1.584963})$
Yeah it is ,thanks

You did it by master theorem
right :), check out my answer below

$T(n) = 3T \sqrt{n} + logn$

Now, assuming,

$q = logn \\ Or, n = 2^q$

$∴ T(n) = T(2^q) \\ = 3T \sqrt{2^q} + q \\ = 3T. (2^\left(q/2 \right) )+ q$

Now, taking

$X(q ) = T(2^q) \\ ∴ X(q) = 3.X \left (\dfrac{q}{2} \right ) + q$

Now, applying Master Method,

According to Master Method,

Recurrence relation should be in this form,

$$aT \left ( \dfrac{n}{b} \right ) + f(n) , \text{where, } a \geq 1 \hspace{0.1cm} \& \hspace{0.1cm} b>1$$

& we have the equation as : $X(q) = 3.X.(\dfrac{q}{2})+q$

Here, $a = 3, b = 2$

According to master theorem

$\text{If } f(n) = \Theta(n^c), \text{ where }, c < \log_b a, \text{ then, } T(n ) = \Theta (n^ {\log_b a})$

& if $a > b^c$ & $c<\log_b a$, then it will be satisfy $Case-1)$ of Master method

∴ $X(q) = \Theta(q^{\log_2 3 }) \\ \qquad = \Theta(q^{1.58})$

Now, putting back the value of $q$ which is $\log n$

∴ $T(n) = \Theta(\log n ^{1.58})$

'c' is missing in first equation?
is it ok now ?

check this

Thanks Mam for the effort
i was happy to help :)

1 vote
1
324 views
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0}