1 votes 1 votes T(n) = a1 T(n/b) + a2 T(n/b) eg T(n) = T(n/4) + T(3n/4) + n Algorithms algorithms master-theorem + – pC asked Dec 20, 2015 pC 642 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply vijaycs commented Jul 22, 2016 reply Follow Share T1(n) =a1 T(n/b1) T2(n) =a2 T(n/b2) T(n) = max( T1(n) + T2(n) ) . for your example it should be $\Theta$( n ). 0 votes 0 votes pC commented Jul 22, 2016 reply Follow Share How did u get that O(n) . please explain the steps 0 votes 0 votes vijaycs commented Jul 22, 2016 reply Follow Share T(n) = T(n/4) + n = T(n/16) + n/4 + n = T(n/64) + n/16 + n/4 + n. . . T(n) = T(1) + n/log4 n + ...... + n/16 + n/4 + n. = n { 1 + 1/4 + 1/16 + ..... (log4 n)th term ) = O(n). Similarly do for others... 0 votes 0 votes Kapil commented Jul 22, 2016 reply Follow Share just draw a recurrence tree.. it easy ... 0 votes 0 votes Please log in or register to add a comment.