B+ Trees are considered BALANCED because.
GATE CSE 2016Databases › Transactions, Concurrency Control & IndexingVerified
GATE CSE 2016 PYQ: B+ Trees are considered BALANCED because.
- AThe lengths of the paths from the root to all leaf nodes are all equal.Correct answer
- BThe lengths of the paths from the root to all leaf nodes differ from each other by at most 1.
- CThe number of children of any two non-leaf sibling nodes differ by at most 1.
- DThe number of records in any two leaf nodes differ by at most 1.
Answer
(A) The lengths of the paths from the root to all leaf nodes are all equal.
Approach
Recall the structural invariant of a B+ tree: it is a height-balanced search tree in which every leaf node occurs at the same depth. Therefore the correct option must describe equal root-to-leaf path lengths for all leaves.
The standard B+ tree balance condition is that all leaf nodes are at the same depth from the root, so the lengths of all root-to-leaf paths are equal. Option A states this exactly, while the other options describe weaker or unrelated conditions.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.