Height of the tree : $T(n) = 4T(n/4)+2T(5n/8)+T(n/8)+\theta(1)$

65 Views Asked by At

Let the tree described by $T(n) = 4T(n/4)+2T(5n/8)+T(n/8)+\theta(1)$

Can someone explains why the height is $\log_{8/5}{n}$ I don't know how to proceed

1

There are 1 best solutions below

0
On BEST ANSWER

The height of the tree is determined by the slowest process, $T(n/b)$. The last leaf on the tree has $T(n/b^{\text{height}})=O(1)$, and therefore the height of the tree is: $$\text{height}=\log_b n = \log_{8/5}n$$