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? shefali1 asked Dec 10, 2016 shefali1 621 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply papesh commented Dec 10, 2016 reply Follow Share question seems incomplete to me ! 0 votes 0 votes shefali1 commented Dec 10, 2016 reply Follow Share when nothing is given,then record pointer size is equals to block pointer size 0 votes 0 votes papesh commented Dec 10, 2016 reply Follow Share blockpointer + n (key+recordPointer) <=5KB find the value of n.... is the ans... 1 votes 1 votes focus _GATE commented Dec 10, 2016 reply Follow Share yes question is incomplete . 0 votes 0 votes Please log in or register to add a comment.
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 rtiwari95 answered Dec 10, 2016 rtiwari95 comment Share Follow See 1 comment See all 1 1 comment reply shefali1 commented Dec 10, 2016 reply Follow Share formula you used is for internal node 0 votes 0 votes Please log in or register to add a comment.
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 Dhananjay2017 answered Dec 17, 2016 Dhananjay2017 comment Share Follow See all 0 reply Please log in or register to add a comment.