GATE CS 2010 · File Organization & Data Types

MCQ · 1 mark · Problem DBMS-INDX-0053

Consider a B+-tree in which the maximum number of keys in a node is 5. What is the minimum number of keys in any non-root node?
  1. A
    1
  2. B
    2
  3. C
    3
  4. D
    4

Solve it on GATE DA practice →More Storage & Indexing problems

Show the worked solutionMaximum 5 keys means order \(n=6\) (at most 6 child pointers).\[\boxed{\text{non-root internal node: }\ge\lceil n/2\rceil\ \text{children}=\lceil n/2\rceil-1\ \text{keys}}\]\[\lceil 6/2\rceil-1=2\ \text{keys (internal)},\qquad \lceil 5/2\rceil=3\ \text{keys (leaf)}.\]The minimum over all non-root nodes is therefore 2.Answer: B

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com