GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 2.23

Maximum fanout of a B-plus-tree node

Database Management Systems · Indexing, Storage & Query Processing · Full GATE CSE 2002 paper

GATE 2002, Q2.23 2 marks · MCQ
Report issue

Indexing, Storage & Query Processing

Question 2.23, GATE 2002: Build a B⁺-tree index on STUDENT.Name. Each name occupies 8 bytes, a disk block holds 512 bytes, and an index pointer occupies 4 bytes. What is the best degree, defined as pointers per node?
(A) 16; (B) 42; (C) 43; (D) 44.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: Check the limiting integers explicitly.

Step 2: For43 pointers there are 42 keys, using 43×4+42×8=172+336=508 bytes, which fits 512. For44 pointers and 43 keys, storage is 176+344=520 bytes, which does not fit. Thus43 is the maximum under the stated layout;42 is unnecessarily conservative, and 16 leaves substantial unused space.

Conclusion: An internal node with m child pointers has m−1 separator keys. Its storage is 4m+8(m−1)=12m−8 bytes. Requiring this to fit 512 bytes gives m≤43⅓, so the largest integer fanout is 43, C. This uses the stated idealized node layout without extra header bytes;44 would need 520 bytes.

Original paper, page 6