GATE / CS ARCHIVE

SIMILAR QUESTIONS / DATABASE MANAGEMENT SYSTEMS

Explain B+ tree use on external storage

2 questions solved the same way, newest first. Back to Database Management Systems

How these are solved

High fanout lowers tree height and disk block accesses; do not conflate this with binary-search comparison counts or hash lookup behavior.

1 mark · MCQ
Report issue

Why B-plus trees suit database indexes

Indexing, Storage & Query Processing

Question 28, GATE 2005: Key reason to prefer B+ trees over binary search trees for database indexes? A many records; B relations sorted on primary key; C always lower memory; D disk transfers occur in blocks.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Disk I/O transfers whole blocks. A high-fanout B+ tree packs many keys/pointers into each block, reducing tree height and therefore block reads relative to an ordinary pointer-based binary search tree. Thus D is the key storage-system reason.

The expensive unit is usually a disk block read. A B+ node can contain many separators and pointers in one block, providing much higher branching factor than a binary node. Higher branching factor reduces the number of blocks on a root-to-leaf search. Thus D identifies the storage-aware reason, not a universal claim that B+ trees use fewer bytes or require the underlying relation to be sorted.

Original paper, page 3

1 mark · MCQ
Report issue

Why database indexes use B-plus trees

Indexing, Storage & Query Processing

Question 1.22, GATE 2000: Why prefer B+-trees to binary trees for disk-resident databases: larger disk capacity, much slower disk access than memory, lower transfer rate alone, or greater disk reliability?
Question 1.22, GATE 2000: Why prefer B+-trees to binary trees for disk-resident databases: larger disk capacity, much slower disk access than memory, lower transfer rate alone, or greater disk reliability?
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step 1: A B+-tree node can fill a disk page and contain many keys and child pointers. Its high fanout sharply reduces the number of levels compared with a binary tree holding a similar number of keys.

Step 2: A search typically needs one page access per level, so reducing height reduces expensive random disk accesses. The latency difference between disk and memory is the decisive reason, B.

Capacity and reliability do not by themselves explain this branching-factor advantage; transfer rate is distinct from the random-access cost being minimized.

Original paper, page 3