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

Consider a binary tree, where for every node P - Q2, where P represents number of nodes in left sub tree for node S and Q represents the number of nodes in right sub tree for node S for h > 0. The minimum number of nodes present in such a binary tree of height h = 4 will be

A
6
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
None of these
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
8
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
9
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D 9
(c)
It can be seen that the minimum node possible in such a tree of height H will be,

N(h)=[2h1+1]
Therfore putting H = 4, we get, N(4)=23+1=9
Hence option (c) will be answer.


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