621 views
0 votes
0 votes
The order of a leaf node in a B+ tree is the maximum number of (value, data record pointer),
it can hold. Given that the block size is 5 Kbyte, field is 9 byte long and a block pointer is 6
byte long, what is the order of the leaf node?

2 Answers

0 votes
0 votes

Block Pointer = 6 bytes

Block size = 5 Kbytes = 5*1024 bytes = 5120 bytes

Search key field = 9 bytes

let us consider order of root node is 'o'

so , 

o*block pointer + (o-1)*search key field <= block size

o*6 + (o-1)*9 <= 5120

o <= 5129/15 

o=341 is the order of leaf node

0 votes
0 votes
Formula to calculate order of internal node is :

n * (data pointer + Search key) + block pointer<= block size

n *9 + 6 <= 5 *1024

n<= 5114/9

n= 568

Related questions

0 votes
0 votes
0 answers
1
amit166 asked Oct 28, 2018
314 views
Q. suppose the order of b-tree is 23. then how many index records will be stored in level 4(including root as level 1)
5 votes
5 votes
1 answer
2
0 votes
0 votes
0 answers
3
0 votes
0 votes
1 answer
4
bhucho asked Sep 13, 2023
274 views
please can someone help with part (a) of this question.