in Algorithms
212 views
1 vote
1 vote
$T(n) = 8T(\frac{n}{2}) + n^2$

 

T(1) = 1
in Algorithms
212 views

2 Comments

$O(n^3)$
0
0
Apply Master's Theorem

$a=8, b=2, k=2$

$ a>b^{k} \ so \  T(n) = Θ(n^{log_{2}8})=Θ(n^{3})$
2
2

Please log in or register to answer this question.

Related questions