Skip to main content

GATE CSE 2025Databases › Transactions, Concurrency Control & IndexingVerified

GATE CSE 2025 PYQ: Consider the following B + B^{+} B + tree with 5 5 5 nodes, in which a node can store at most 3 3 3 key…

Consider the following B+B^{+}tree with 5 nodes, in which a node can store at most 3 key values The value 23 is now inserted in the B+B^{+}tree. Which of the following options(s) is/are CORRECT?

B plus tree

  1. A
    None of the nodes will split.
  2. B
    At least one node will split and redistribute.
    Correct answer
  3. C
    The total number of nodes will remain same.
  4. D
    The height of the tree will increase.
    Correct answer

Answer

(B, D) At least one node will split and redistribute.; The height of the tree will increase.

Approach

Insert 23 into the target leaf [20,21,22]. Because the node capacity is 3 keys, this leaf now overflows and must split, sending a separator key up to the parent root. The root [6,12,19] is already full, so adding that separator makes the root overflow as well; a root split creates a new root and increases the tree height. Therefore at least one node splits, the total node count increases, and the height increases.

Insertion of 23 causes the full rightmost leaf to overflow, so a leaf split occurs. The promoted separator then overflows the already-full root, forcing a root split and creating a new root. Hence options B and D are correct, while A and C are false.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.