CS FundamentalsVery hardGATE CS

A B+ tree has order p = 4 (at most 4 children per internal node, at most 3 keys per leaf) and every node except the root is at least half full. The tree has exactly 3 levels: root, one internal level and leaves. What is the MINIMUM number of keys it can hold?

  1. A. 8
  2. B. 6
  3. C. 4
  4. D. 12

Correct answer: A. 8

The root needs at least 2 children; each internal node at least ⌈4 / 2⌉ = 2 children, giving 4 leaves; each leaf at least ⌈3 / 2⌉ = 2 keys. So 4 × 2 = 8 keys.

More DBMS and SQL questions

Exams that ask this topic