CS FundamentalsHardGATE CS

A B+ tree index uses 2048-byte blocks, 16-byte search keys, 8-byte block pointers and 10-byte record pointers; a leaf also holds one 8-byte next-leaf pointer. What are the maximum internal fan-out p and the maximum keys per leaf n?

  1. A. p = 85, n = 78
  2. B. p = 86, n = 79
  3. C. p = 85, n = 79
  4. D. p = 86, n = 78

Correct answer: D. p = 86, n = 78

Internal: 8p + 16(p − 1) ≤ 2048 gives 24p ≤ 2064, p = 86. Leaf: 26n + 8 ≤ 2048 gives n ≤ 78.46, so n = 78. Writing p keys instead of p − 1 in the internal node gives the wrong 85.

More DBMS and SQL questions

Exams that ask this topic