The GATE Grind

GATE 2010 CS (CS1) – Question 28

Databases · File Organization and Indexing (B and B+ Trees) · 1 mark · Multiple choice

A B+ tree allows at most five keys per node. Find the minimum number of keys in any nonroot node.

  1. 1
  2. 2
  3. 3
  4. 4

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (B) 2

Explanation

An internal node has at most six children and must have at least ceil(6/2)=3 children when nonroot. It therefore has at least three minus one = two separator keys. Leaf occupancy rules can impose a different minimum, but the smallest across all nonroot nodes is two, B.

More File Organization and Indexing (B and B+ Trees) questions

All File Organization and Indexing (B and B+ Trees) questions →