1 votes 1 votes Find solution to the recurrence : T(n)= T(n/2)+n Algorithms recurrence-relation + – sh!va asked Dec 26, 2016 sh!va 269 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes use master theorem we will get answer as nlog21 = n0 = 1 (i.e constant) so time complexity will be ⊜(n) Or, T(n) = n + n/2 + n/4 + n/8 + ..... + 1. =2n = O(n) focus _GATE answered Dec 26, 2016 • selected Dec 26, 2016 by vijaycs focus _GATE comment Share Follow See all 0 reply Please log in or register to add a comment.