1,153 views
0 votes
0 votes

 

In a full binary tree of height 10 the number of nodes with degree 0,1 and 2 will be ______ , ______,and _____ respectively

Note:-Consider height of a tree as the number of nodes in the longest path from root node to any leaf node.

A.- 511, 1 , 511

B.-511 , 0 , 512

C.-512 , 0  , 511

C.-512 , 1, 510

1 Answer

1 votes
1 votes

In full Binary Tree, A node can have either o child or 2 child. (A node with 1 child is not allowed).

So, Option A and D eliminated directly.

Now, second property is: internal nodes = leaf nodes-1  //internal nodes with degree 2 & leaf nodes with degree 0

So, leaf nodes(with degree 0)= 512 , Nodes with degree 1=0 And internal nodes(with degree 2)=511

Option C: 512, 0, 511

 

Related questions

0 votes
0 votes
2 answers
1
aditi19 asked Dec 18, 2018
1,075 views
Suppose x and y are floating-point variables that have been assigned the values x=8.8 and y=3.5. what will be the value of the following expression?2*x/3*y
1 votes
1 votes
1 answer
2
Shashi Shekhar 1 asked Dec 10, 2018
1,744 views
Which of the following data structure is most suitable for radix sort?1 .tree2 . Linked list 3 . Stack4 . Binary search tree
0 votes
0 votes
2 answers
3
shaz asked Dec 13, 2018
711 views
How are 2 memory access required here? Only R3 contains a memory address which will be accessed for the operand.
1 votes
1 votes
1 answer
4
pream sagar asked Dec 13, 2018
389 views
For what values of k, the points (k,2-2k),(-k+1,2k) and (-4-k,6-2k) are collinear? ½ ,-½ -1 ,½ 0, 1 -1 , 1