• retagged by
216 views

1 Answer

0 0 votes

Given:

$T(n)=3T(n/5)+(\log n)^2$

Using the Master Theorem:

$a=3$, $b=5$, and $f(n)=(\log n)^2$

Calculate:

$n^{\log_b a}=n^{\log_5 3}$

Since $(\log n)^2$ grows slower than $n^{\log_5 3}$, this is Master Theorem Case $1$.

Therefore:

$T(n)=\Theta(n^{\log_5 3})$


Answer: B $O(n^{\log_5 3})$

Answer:
Position:
Show:

Related questions

3 3 votes
1 1 answer
311
311 views
4 4 votes
1 1 answer
224
224 views
3 3 votes
1 1 answer
214
214 views
3 3 votes
1 1 answer
306
306 views
GO Classes asked Aug 31
306 views
Let $G$ be a directed graph with nonnegative edge weights, and let $s$ and $t$ be vertices of $G$.Consider the statement:Any shortest path from $s$ to $t$ in $G$ is also ...