Here, In the question size of tree pointer and disk pointer is the same. So, the order of leaf and non-leaf will be the same.
Suppose the order of non-leaf node = P. Where P= no. of tree pointer contains by a node.
So,
( P x 8 ) + ( (P-1) * 12) = 4096
8P+12P-12=4096
20P=4108
P=205.4
So P=205.
Now we will know the order of the node and that is 205.
Here, the database file contains 1 million records.
so, No. of search key at the last level should be 1 million. We require minimum no. of disk access so node of the B+ tree should be fully filled.
Level |
No . of Child Pointer |
No. of Search Key |
1 |
205 |
204 |
2 |
$205^{2}$ |
205 * 204 |
3 |
$205^{3}$ |
$205^{2}$ * 204 =8573100 |
So, for 1 million records total 3 level requires.
Now after getting search key in B+ tree, one extra disk access requires to access a record.
So Total 3+1=4 minimum disk access requires.