2 votes 2 votes Following parameters to construct B+ tree search key - 15B block size - 512B record pointer - 9B block pointer - 8B Max num of keys that can be accomodated in each non leaf node of the tree is A_i_$_h asked Oct 5, 2017 A_i_$_h 372 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Search key - 15B Block pointer - 8B Block size - 512B Max num of keys that can be accomodated in each non leaf node of the tree is (x+1)*8+x*15<=512 23x<=504 x=21 saxena0612 answered Oct 5, 2017 saxena0612 comment Share Follow See all 4 Comments See all 4 4 Comments reply A_i_$_h commented Oct 5, 2017 i edited by A_i_$_h Oct 5, 2017 reply Follow Share (x+1)*8+x*15<=512 - how did u arrive at this? non leaf node (i.e) internal node it is (n * block pointer) + (n-1) * key <= block size right? (n * 8) + (n-1) *15 <=512 where did i go wrong 0 votes 0 votes saxena0612 commented Oct 5, 2017 reply Follow Share 1) You mentioned record pointer but took block pointer which is correct it should be block pointer in your representation of the formula. 2) Your approach is right 23n<=527 thus n=22 [which is total pointers] for max keys : n-1=21 0 votes 0 votes A_i_$_h commented Oct 5, 2017 reply Follow Share got it :) i dint do n-1 to find the answer max keys is always (n-1) incase of B and B+ tree? 0 votes 0 votes saxena0612 commented Oct 5, 2017 reply Follow Share Yes ! In both B and B+ tree at non leaf node the number of keys will be 1 less than order of tree. 1 votes 1 votes Please log in or register to add a comment.