GATE / CS ARCHIVE

GATE CSE 2016 SET 2 / QUESTION 21

GATE CSE 2016 Set 2 Q21

Database Management Systems · Indexing, Storage & Query Processing · Full GATE CSE 2016 Set 2 paper

GATE 2016 Set 2, Q21 1 mark · MCQ
Report issue

Indexing, Storage & Query Processing

Question 21, GATE 2016: B+ trees are balanced because: A all root-to-leaf path lengths equal; B those lengths differ by at most 1; C child counts of nonleaf siblings differ by at most 1; D record counts of leaves differ by at most 1.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Every B+ tree leaf is at the same level. Consequently every root-to-leaf path has the same length, A. Occupancy counts may differ much more than one while still meeting the minimum/maximum occupancy constraints.

Balanced here describes tree height, not identical node fill. A root-to-leaf search examines the same number of tree levels whichever key range it follows. Option B is a weaker consequence of equality, but A states the defining stronger invariant. The intended single-choice answer should not be read as making the weaker inequality mathematically false.

Original paper, page 31 · Answer key