Consider a block size 512 bytes, search key field 9 bytes long, block pointer size is 6 byte and record pointer is 7 byte long. if a level 3 B+ tree is constructed considering root as level 0, find the maximum number of entries in the B+ tree ?
A
(34)3∗(31)2 entries
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
(34)2∗31 entries
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
(34)3∗31 entries
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
(31)3∗34 entries
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C(34)3∗31 entries option (a)
Order of internal node is ⇒ n*6 + (n-1) * 9≤512 ⇒ 6n+9n - 9 ≤ 512 ⇒ 15n ≤ 521
n ≤ 34
Order of leaf node is ⇒n* (9+7) +6≤512 ⇒ 16n ≤ 506 ⇒ n ≤ 31