B+-tree: Deleting records |
Assuming a Bktfr = 4 . The minimum number in each node (root or leaf) = Bktfr/2 = 2.
Example |
|
A. If the leaf has more than the
minimum number of records (2)
|
[79 102] [60 63 66] [ 79 83] [102 110 115 160] |
| Delete 102 | |
[ 79 102 ] [ 60 63 66 ] [ 79 83 ] [ 110 115 160 ] |
|
B. If the leaf has less than or
equal the minimum number of records (2), check the adjacent siblings
|
[79 102] [ 60 63 66] [ 79 83 ] [ 110 115 160 ] |
| Delete 83 | |
[ 66 102 ] [ 60 63] [ 66 79 ] [ 110 115 160] |
|
|
[66 102] [ 60 63] [ 66 79 ] [ 110 115 ] |
| Delete 79 | |
[ 102 ] [ 60 63 66] [ 110 115 ] |
[Rev 17/03/99] 14/3/99 © 1999 V/2-Com (Verhaart), P O Box 8415, Havelock North, New Zealand.