The order of a leaf node in a - tree is the maximum number of (value, data record pointer) pairs it can hold. Given that the block size is , data record pointer is long, the value field is long and a block pointer is long, what is the order of the leaf node?
View worked solution
Answer: A
To find the order of the leaf node in the -tree, we first understand its structure.
According to the definition given in the question, the order of a leaf node is the maximum number of (value, data record pointer) pairs it can hold. In addition to these pairs, a leaf node in a -tree also contains a block pointer to point to the next leaf node (for sequential access).
Let:
- = Order of the leaf node (number of key-pointer pairs)
- = Size of the value (key) field =
- = Size of the data record pointer =
- = Size of the block pointer (next-leaf pointer) =
- = Block size =
The total space occupied by the leaf node must not exceed the block size:
Substitute the given values into the inequality:
Since the order must be an integer, the maximum possible value of is .
Therefore, the order of the leaf node is 63.
Free practice · Your answers on this page are not saved.
