in Algorithms retagged by
4,859 views
7 votes
7 votes
T(n)=4T(n/2)+n/logn

this can be solved by master theorem but why

t(n)=2t(n/2)+n/logn can't be solved by master theorem ?
in Algorithms retagged by
by
4.9k views

1 comment

Caption

 

0
0

1 Answer

6 votes
6 votes

T(n)=4T(n/2)+n/logn 

here nlog2 = n2  > n/logn  ( i.e. not log n time big).

 

T(n)=2T(n/2)+n/logn

here  nlog2 = n > n/logn  ( i.e.  log n time big). which is not the case of master thoerm but done by extented master theorm.

4 Comments

but a/c to extended master theoram

 

so answer is coming as O(n2) ..ryt?

2
2
@cse23. Yes, but precisely theta(n^2).
0
0
for $T(n)=4T(n/2)+n/logn$

  $T(n)=\theta(n^{2})$

and for $T(n)=2T(n/2)+n/logn$

     $T(n)=\theta(loglogn)=\theta(log^{2}n)$
0
0
it should be theta(n*loglogn) for 2T(n/2) +n/logn
2
2