Questions: B-Trees and Multi-Way Search Trees

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A database engineer doubles the branching factor of a B-tree from m=100 to m=200. What is the primary performance benefit for a dataset stored on disk?

AEach node now stores more keys, so the tree height decreases and fewer disk reads are needed per search
BNode splits become more frequent, keeping the tree more balanced
CInsertions no longer require propagating splits upward to the root
DThe tree can now store twice as many keys in the same number of nodes
Question 2 Multiple Choice

Why does the B-tree minimum occupancy rule require internal nodes to have at least ⌈m/2⌉ children?

ATo prevent any single node from holding more keys than fit in a disk block
BTo guarantee the tree remains balanced so all leaves stay at the same depth
CTo ensure the tree never needs to perform node splits during insertion
DTo match the number of keys in each node to the number of disk sectors
Question 3 True / False

In a B-tree, all leaves are always at the same depth because the tree grows upward by splitting the root when it overflows.

TTrue
FFalse
Question 4 True / False

B-trees are mainly useful for database indexing and have no advantage in other contexts.

TTrue
FFalse
Question 5 Short Answer

Why is the branching factor m in a B-tree typically chosen to match the disk block size rather than, say, optimizing for CPU cache performance?

Think about your answer, then reveal below.