A - tree index is to be built on the Name attribute of the relation STUDENT. Assume that all the student names are of length bytes, disk blocks are of size bytes, and index pointers are of size bytes. Given the scenario, what would be the best choice of the degree (i.e. number of pointers per node) of the - tree?
View worked solution
Answer: C
To find the best choice of the degree (number of pointers per node, ) of the -tree, we need to ensure that the total size of an internal node does not exceed the disk block size.
Let:
- Disk block size () = bytes
- Key size () = bytes (length of student name)
- Pointer size () = bytes
An internal node of a -tree with degree contains:
- pointers
- keys
The total size of the node must satisfy the following inequality:
Substituting the given values into the inequality:
Since the degree must be an integer, the maximum possible value is:
Therefore, the best choice for the degree of the -tree is 43.
Free practice · Your answers on this page are not saved.
