retagged by
181 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

2 2 votes
1 1 answer
277
277 views
3 3 votes
1 1 answer
194
194 views
2 2 votes
1 1 answer
176
176 views
1 1 vote
1 1 answer
212
212 views
GO Classes asked Aug 31
212 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 ...