CS FundamentalsVery hardGATE CS · Product placement

A B+ tree has at most 10 children per internal node and at most 8 keys per leaf. A non-root internal node must have at least ⌈10/2⌉ children, a leaf at least ⌈8/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. 40
  2. B. 100
  3. C. 200
  4. D. 80

Correct answer: A. 40

Minimum: root has 2 children, each lower internal level multiplies by 5, so there are 2·5^1 = 10 leaves, each with 4 keys: 40. Forgetting that the root needs only 2 children gives 100.

More DBMS and SQL questions

Exams that ask this topic