CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)

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

  1. A. 1210
  2. B. 220
  3. C. 2420
  4. D. 440

Correct answer: B. 220

Minimum: root has 2 children, each lower internal level multiplies by 11, so there are 2·11^1 = 22 leaves, each with 10 keys: 220. Forgetting that the root needs only 2 children gives 1210.

More DBMS and SQL questions

Exams that ask this topic