Which element is the 'middle' in a B-Tree of even order?
If I have a B-Tree of order 4 with the following data in it... To add 2 to the tree, which variant is correct? Do I add the 2 to the node (making it invalid, as it now has 4 keys), then split the node, taking the value 2 as the middle value and propagating it up? Or do I not add the 2, take 3 as the middle value, propagate 3 up, then add 2 into the correct node? Excuse the poor diagram.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.