140 likes | 438 Views
Insertion in a B+ Tree. Insert: 8. 8. Insertion in a B+ Tree. Insert: 5. 5. 8. Insertion in a B+ Tree. Overflow – create a new level. Insert: 1. 5. 1. 5. 8. Insertion in a B+ Tree. Insert: 7. 5. 1. 5. 7. 8. Insertion in a B+ Tree. Overflow - Split. Insert: 3. 3. 5. 1. 3.
E N D
Insertion in a B+ Tree Insert: 8
8 Insertion in a B+ Tree Insert: 5
5 8 Insertion in a B+ Tree Overflow – create a new level Insert: 1
5 1 5 8 Insertion in a B+ Tree Insert: 7
5 1 5 7 8 Insertion in a B+ Tree Overflow - Split Insert: 3
3 5 1 3 5 7 8 Insertion in a B+ Tree Overflow - Split Propagates to a new level Insert: 12
5 8 3 12 1 3 5 7 8 Insertion in a B+ Tree Insert: 9
5 8 3 1 3 5 7 8 9 12 Insertion in a B+ Tree Overflow – Split Insert: 6
5 3 7 8 1 3 5 6 7 8 9 12 Insertion in a B+ Tree Resulting B+-tree
9 7 1 6 12 1 5 6 7 8 9 Deletion in a B+-Tree Delete: 5
9 7 1 6 12 1 7 8 9 6 Deletion in a B+-Tree Underflow - redistribute Delete: 12
8 7 1 6 1 7 6 9 8 Deletion in a B+-Tree Delete: 9
8 7 1 6 1 7 6 8 Deletion in a B+-Tree Underflow merge with the left propagate reduce the tree levels
1 6 1 6 7 8 Deletion in a B+-Tree