CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)

A B+ tree has at most 7 children per internal node and at most 6 keys per leaf. A non-root internal node must have at least ⌈7/2⌉ children, a leaf at least ⌈6/2⌉ keys, and the root (if internal) at least 2 children. What is the MINIMUM number of keys in such a tree with exactly 4 levels?

  1. A. 96
  2. B. 384
  3. C. 95
  4. D. 192

Correct answer: A. 96

Minimum: root has 2 children, each lower internal level multiplies by 4, so there are 2·4^2 = 32 leaves, each with 3 keys: 96. Forgetting that the root needs only 2 children gives 192.

More DBMS and SQL questions

Exams that ask this topic