The GATE Grind

GATE 2017 CS (CS2) – Question 59

Databases · File Organization and Indexing (B and B+ Trees) · 2 marks · Numerical answer

A B+ tree has eight-byte search keys, 512-byte blocks and two-byte block pointers. Find its maximum order.

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 52.0 to 52.0

Explanation

For order p, an internal node stores p child pointers and p−1 keys. Thus $2p+8(p-1)\le512$, giving 10p≤520 and p≤52. Therefore maximum order is 52, under the conventional order definition as maximum children.

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

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