Consider a -tree in which the maximum number of keys in a node is . What is the minimum number of keys in any non-root node?
View worked solution
Answer: B
To find the minimum number of keys in any non-root node of a -tree, we must consider both non-root internal (non-leaf) nodes and leaf nodes.
Given that the maximum number of keys in any node is .
1. Non-root Internal Nodes
- The maximum number of pointers (children) an internal node can have is .
- The minimum number of pointers for a non-root internal node is .
- Since the number of keys in an internal node is always , the minimum number of keys in a non-root internal node is:
2. Leaf Nodes
- The minimum number of keys in a leaf node is .
Comparing both cases, the minimum number of keys in any non-root node is .
Therefore, the correct option is B.
Free practice · Your answers on this page are not saved.
