0 votes 0 votes T(n) = 3T( n/3 ) + n/2 The answer to the above question says that case 2 of masters theorem is applied here. How is it so? Algorithms algorithms recurrence-relation master-theorem + – sahil_malik asked Sep 11, 2018 • retagged Jun 22, 2022 by makhdoom ghaya sahil_malik 312 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
4 votes 4 votes T(n) = aT(n/b) +cnk here, T(n) = 3T( n/3 ) + n/2 k=1 ; c =1/2 ; a=3 ; b=3 a = bk 3 = 31 Complexity = nklogn = O(nlogn) manisha11 answered Sep 11, 2018 manisha11 comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Case 2: f(n) = nclogkn c= $\log_b a$ c=1 $\log_b a$ =1 Dharmendra Lodhi answered Sep 11, 2018 Dharmendra Lodhi comment Share Follow See all 0 reply Please log in or register to add a comment.