CS FundamentalsHardGATE CS · Product placement

A B-tree (not B+ tree) stores a record pointer with every key in every node. With 2048-byte blocks, 16-byte keys, 8-byte tree pointers and 8-byte record pointers, what is the maximum number of child pointers (the order p) of a node?

  1. A. 63
  2. B. 86
  3. C. 64
  4. D. 66

Correct answer: C. 64

A B-tree node with p children has p tree pointers and p − 1 (key, record-pointer) pairs: 8·p + 24·(p − 1) ≤ 2048, so p = ⌊2072/32⌋ = 64. Ignoring the record pointers gives the B+ internal order instead.

More DBMS and SQL questions

Exams that ask this topic