wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

A binary tree having r nodes and depth d is said to be complete binary tree if

A
Any node and at level less than d-1 has two sons
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
It contains 2d+11 nodes
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
For any node and in the tree with a right descendent at level d, and must have a left child.
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
All of the above
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D All of the above

A binary tree having r nodes and depth d is said to be complete binary tree if

1) Any node and at level less than d-1 has two sons.

2) It contains 2^d+1 -1 nodes.

3) For any node and in the tree with a right descendent at level d, and must have a left child.

A binary tree is made of nodes, where each node contains a "left" reference, a "right" reference, and a data element. The topmost node in the tree is called the root. Every node in a tree is connected by a directed edge from exactly one other node. This node is called a parent.




910301_917243_ans_b649531ee7824b34a247e8c2ad0f513f.PNG

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Flower
BIOLOGY
Watch in App
Join BYJU'S Learning Program
CrossIcon