834 views
0 votes
0 votes

Suppose for insertion in a b+ tree of order 3,  the values are inserted in order 73,108,100. What will be the structure of the resulting  tree? I have watched few lectures on b+ trees and in one of the lectures by a professor from IIT KGP , inserts in a way that the resulting tree will be-

Then i watched some more lectures by some other professors and they recommended to insert in a way that will result in-

Which of the above methods should I use. I am confused as to me both seem right

1 Answer

1 votes
1 votes
The basic concept is that leaf node should contain all the values . U can assign internal node to the left children or the right children it's your choice the tranversal will be same . so such rule is there that u always have to assign it to left or right. its like bst deletion , u may use the biggest child of left subtree or smallest child of right subtree

Related questions

0 votes
0 votes
1 answer
1
Salazar asked Jan 29, 2018
3,959 views
Maximum height of a B+ tree of order m with n key values is (With Derivation), the answer is known Logceil(m/2) NI tried deriving but had some trouble, could someone assi...
4 votes
4 votes
5 answers
2
focus _GATE asked Oct 21, 2015
2,030 views
If the order of a B-Tree is $20$, then the number of levels needed to store $15,998$ keys are ______.
0 votes
0 votes
1 answer
3
learncp asked Sep 25, 2015
1,507 views
Here, the value of p should be 24, not 23 as taken...also no reason is given for this assumption by the author (Navathe ). Can anyone explain this ?
18 votes
18 votes
1 answer
4
Akanksha Kesarwani asked Dec 10, 2016
6,374 views
Difference between left biasing and right biasing in B+ tree insertion, Rules to be followed for left and right biasing , Kindly explain with an example ?