Deletion in B+tree
Deletion in B+tree
A node (except root node) should contain a minimum of ⌈m/2⌉ - 1 keys. (i.e. 1)
3)While deleting a key, we have to take care of the keys present in the internal nodes (i.e.
indexes) as well because the values are redundant in a B+ tree.
Case I:
The key to be deleted is present only at the leaf node not in the indexes (or internal
nodes).
There are two cases for it:
A) If there is more than the minimum number of keys in the node, then
simply delete the key from the leaf node and
delete the key from the internal node as well.
Fill the empty space in the internal node with the inorder successor.
In this case, the height of the tree gets shrinked. It is a little complicated.