738 views
0 votes
0 votes

11. A binary tree has n leaf nodes. The no. of nodes of degree 2 in this tree is:

(a) log2n (b) n-1 (c) n (d) 2n

1 Answer

Best answer
1 votes
1 votes

take example of 7 nodes 
level 0 : 20=1 node
level 1 : 21=2 nodes
level 2 : 22=4 nodes 
total =1+2+4=7 nodes 
here leaf n=4 , no of nodes with degree 2 =3
option (a) log2n=log2(4)=2 FALSE
option (b) n-1=4-1=3 TRUE
option (c) n=4 FALSE
option (d) 2n=2*4=8 FALSE
hence Ans is B

selected by

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
3