GATE / CS ARCHIVE

GATE CSE 2004 / QUESTION 52

B-plus tree internal-node order

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

GATE 2004, Q52 2 marks · MCQ
Report issue

Indexing, Storage & Query Processing

Question 52, GATE 2004: The order of an internal B+ tree node is its maximum number of children. Child pointers use 6 bytes, search keys 14 bytes and each node occupies a 512-byte block. With no stated header overhead, what is the order?
Options:
(A) 24
(B) 25
(C) 26
(D) 27
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. With order p, an internal node holds p child pointers and p−1 separator keys. The size is 6p+14(p−1)=20p−14≤512, so p≤26.3 and the maximum integer is 26.

2. At p=26 the node uses 506 bytes; p=27 would need 526 bytes. No unmentioned header overhead is assumed.

3. Teaching check: There is one fewer separator key than child pointers, so a p-child node needs p pointers and p−1 keys. Using p of each would incorrectly lower the capacity. Testing the two neighboring integers confirms maximality rather than relying only on rounded division.

Original paper, page 7