retagged by
3,732 views

2 Answers

1 votes
1 votes

in a full binary tree each node has either zero or two children.  A complete binary tree is a full binary tree in which every leaf is at the same level.

I think they are trying to refer complete binary tree using full binary tree so answer is A. A complete binary tree has  2k-1 internal nodes and  2k leaves.

0 votes
0 votes
Full binary tree where every node other than leaf node have two children means every level is full and occupy maximum number of node possible at that level (in complete binary tree last level leafs may be not full means last level may not have maximum node possible).so we can say that every full binary tree is a complete binary tree but not vise versa.

Considering root at level 0

Now each node have two children so no. Of nodes at level

1st=2^(0);

2nd= 2^(2);

For kth level no of node is 2^(k);

So total no of node is sum of nodes at all the level which is a gp

Total node=2^(k+1) -1;

                =2*(2^k) -1;

So total nof ol leaf nodes is the node at kth level = 2^(k)= (2^k);

Total internal node=total node -leaf node

                                 =2*(2^k)-1-(2^k)

         =2*(2^k)-(2^k)-1

         =(2^k)-1;

  So option a is correct.

Related questions

1 votes
1 votes
4 answers
1
0 votes
0 votes
1 answer
2
rishu_darkshadow asked Sep 22, 2017
583 views
In a B tree of order m with p nodes the average number of splits is at most :1/(⌈m/2⌉−1) ⌈m/2⌉−1 1/(m/2) None
2 votes
2 votes
2 answers
3
rishu_darkshadow asked Sep 21, 2017
802 views
A binary tree is said to have heap property if the elements along any path :from leaf to root are non-increasing from leaf to root are non-decreasing from root to l...
2 votes
2 votes
1 answer
4
go_editor asked Jul 5, 2016
4,278 views
The Inorder traversal of the tree will yield a sorted listing of elements of tree inBinary treeBinary search treeHeapsNone of the above