in Algorithms
33,626 views
3 votes
3 votes
in Algorithms
by
33.6k views

1 Answer

3 votes
3 votes
Best answer

apply master theorem T(n) = aT(n/b) +f(n)

a==8

b==2

f(n)=n 

nlogba==>nlog28====>nlog223===>n3  

theorem says

1)if f(n) is polynomial time greater than nlogbthen answer is  f(n)

2)if f(n) is polynomial time less nlogbthen answer is nlogba

which is greater then n  so...answer is  (n)

selected by