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