Skip to content
Official PYQ · 2024

GATE CS 2024 Set 1 Q11 — File Organization and Indexing (B and B+ Trees)

Explain with AI

In a B+\mathrm{B}^+ tree, the requirement of at least half-full (50%)(50 \%) node occupancy is relaxed for which one of the following cases?

Choose one option
View worked solution

Answer: A

In a B+\text{B}^+ tree of order pp (where pp is the maximum number of child pointers an internal node can have):

  • Internal Nodes (excluding the root): Must have at least ⌈p/2⌉\lceil p/2 \rceil child pointers. This ensures at least 50%50\% occupancy.
  • Leaf Nodes: Must contain at least ⌈(p−1)/2⌉\lceil (p-1)/2 \rceil keys, which also maintains approximately 50%50\% occupancy.
  • Root Node: If the root is an internal node, it is only required to have at least 22 child pointers. If the root is a leaf node, it can have as few as 00 keys (when the tree is empty) or 11 key.

Thus, the 50%50\% minimum occupancy requirement is relaxed only for the root node to allow the tree to grow from or shrink to a very small size without violating structural properties.

Therefore, the correct option is A.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore File Organization and Indexing (B and B+ Trees) questions