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
The most shallow branch of the recursion tree is the leftmost branch. Its length is
The deepest branch of the recursion tree is the rightmost one, and its depth is
On each level of the tree the total size of the subproblems is at most n
So,
Comments