If a binary tree has 6 leaf nodes. Then number of nodes with degree 2 in this tree
is?
Answers
Answered by
13
N=2i+1.
2i+1=i+l
L=I+1 The number of leaves are 1 plus the number of internal nodes in binary tree.
Here, given L=n, subsitute above and we will get I=n-1.
Answered by
0
Answer:
Number of nodes with degree is .
Explanation:
Binary tree : A data structure in which a record is linked to two successor records, the left branch when the previous record is greater and the right branch when the previous record is less.
We know that if a binary tree consists of leaf nodes, then the number of nodes with degree in it will be .
By taking the values given in the question :
Hence we can say that there are nodes with degree in this tree.
Similar questions
Social Sciences,
5 months ago
Math,
5 months ago
Math,
5 months ago
India Languages,
10 months ago
India Languages,
10 months ago
English,
1 year ago
Biology,
1 year ago