47 views
The number of node in each left subtree is within a factor of $2.$ of the number of nodes in the corresponding right subtree. Also a node allowed to have only one child if that child has no children. This tree has worst case height $O(logn)$. $N$ is the number of nodes in the binary tree.

Is this statement TRUE about Binary Tree?
| 47 views
0
What is the meaning of "The number of node in each left subtree is within a factor of 2.2. of the number of nodes in the corresponding right subtree."?
0
Donot know

They gave solution like this

$N(0)=0$

$N(1)=1$

$N(2)=2$

$N(h)=1+N\left ( h-1 \right )+\frac{1}{2}N\left ( h-1 \right )$

$=1+\frac{3}{2}N\left ( h-1 \right )$

$N(h)=\Theta \left ( \frac{3}{2} \right )^{h}$

1
2
+1 vote