3,553 views
5 votes
5 votes
Number of labeled binary trees are there on vertices {1,2,3,4} that have only vertex 1 as leaf and every binary trees has 4 nodes are _______.

2 Answers

Best answer
8 votes
8 votes
We have $4$ nodes out of which $1$ is a leaf and there are no mode leaf nodes. So, we must have $4$ levels with one node in each. Each node in levels $2$, $3$ and $4$ have two choices- either to be left child or right child. So, totally $2 \times 2 \times 2 = 8$ ways. Now, $2,3,4$ can be permuted in any order in first $3$ levels and each permutation gives a different binary tree. So, total number of binary trees $= 8 \times 3! = 48$.
selected by
1 votes
1 votes

lets Vertex 1 is Leaf & it is fixed.
Exactly one leaf means at each level will be one & only one node..

Except root every node have 2 choices : 1. Left node 2. Right node
Total 4 nodes, so Number of possible combination for unlabeled tree are 2*2*2 = 8

We have to find Number of Labeled tree so multiply 8 by 3!
= 8*3! = 48

Related questions

1 votes
1 votes
0 answers
4
Nandkishor3939 asked Jan 25, 2019
658 views
I think its answer is 8 .Please ,can any one make it sure for me :)