Question #275965

T(n) = T(n/3) + T(2n/3)+ big O(n)

Find the upper bound of this recurrence equation with the help of recursion tree


1
Expert's answer
2021-12-05T18:17:01-0500


The most shallow branch of the recursion tree is the leftmost branch. Its length is log3nlog_3n

The deepest branch of the recursion tree is the rightmost one, and its depth is log3/2nlog_{3/2}n

On each level of the tree the total size of the subproblems is at most n

So,

Tnlog3/2nT\le nlog_{3/2}n


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS