Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. In a B+ tree, if the search-key value is 8 bytes long, the block size is 512 bytes and the block pointer size is 2 bytes, then the maximum order of the B+ tree is ______.
    1. 25
    2. 52
    3. 13
    4. 31
Correct Option: B

As given that: Search key = 8 bytes Block size = 512 bytes. Block pointer (BP) = 2 bytes. Then maximum order of B+ tree is Let K is the order then, K * Bp + (K - 1)*Key ≤ Block size
K *2 + (K - 1)*8 ≤ 512
10K ≤ (512 + 8)
10K ≤ 520

K =
520
= 52
10

Hence, 52 is correct answer.



Your comments will be displayed only after manual approval.