CS FundamentalsVery hardGATE CS (PYQ pattern) · Product Company SDE

A B-tree node must fit in a 2048-byte block; each key takes 12 bytes and each child pointer 8 bytes. What is the maximum order p (maximum number of child pointers) of the node?

  1. A. 82
  2. B. 155
  3. C. 103
  4. D. 124

Correct answer: C. 103

p·P + (p−1)·K ≤ B → p ≤ (B+K)/(P+K) = (2048+12)/20 = 103 → 103. Ignoring that keys are one fewer than pointers gives 102.

More DBMS and SQL questions

Exams that ask this topic