The maximum number of binary trees that can be formed with three unlabeled nodes is:
View worked solution
Answer: B
The number of structurally unique binary trees that can be formed with unlabeled nodes is given by the Catalan number, :
For unlabeled nodes, we calculate as follows:
The distinct structural shapes of these binary trees are:
- Left-skewed (straight): Root Left Left
- Left-skewed (zigzag): Root Left Right
- Balanced: Root with one Left child and one Right child
- Right-skewed (zigzag): Root Right Left
- Right-skewed (straight): Root Right Right
Thus, the maximum number of binary trees that can be formed is 5.
Free practice · Your answers on this page are not saved.
