14
Insertion in a B+ Tree Insert: 8

Insertion in a B+ Tree

  • Upload
    jontae

  • View
    36

  • Download
    0

Embed Size (px)

DESCRIPTION

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. - PowerPoint PPT Presentation

Citation preview

Page 1: Insertion in a B+ Tree

Insertion in a B+ Tree

Insert: 8

Page 2: Insertion in a B+ Tree

Insertion in a B+ Tree

8

Insert: 5

Page 3: Insertion in a B+ Tree

Insertion in a B+ Tree

5 8

Insert: 1

Overflow – create a new level

Page 4: Insertion in a B+ Tree

5

Insertion in a B+ Tree

1 5 8

Insert: 7

Page 5: Insertion in a B+ Tree

5

Insertion in a B+ Tree

1 5 7 8

Insert: 3

Overflow - Split

Page 6: Insertion in a B+ Tree

3 5

Insertion in a B+ Tree

1 3 5 7 8

Insert: 12

Overflow - Split

Propagates to a new level

Page 7: Insertion in a B+ Tree

5

83

Insertion in a B+ Tree

1 3 5 7 8 12

Insert: 9

Page 8: Insertion in a B+ Tree

5

83

Insertion in a B+ Tree

1 3 5 7 8 9 12

Insert: 6

Overflow – Split

Page 9: Insertion in a B+ Tree

Insertion in a B+ Tree

7 8

5

3

1 3 5 6 7 9 128

Resulting B+-tree

Page 10: Insertion in a B+ Tree

91 6

7

Deletion in a B+-Tree

1 5 6 7 8 9 12

Delete: 5

Page 11: Insertion in a B+ Tree

91 6

7

Deletion in a B+-Tree

1 7 8 9 126

Delete: 12

Underflow - redistribute

Page 12: Insertion in a B+ Tree

81 6

7

Deletion in a B+-Tree

1 76 98

Delete: 9

Page 13: Insertion in a B+ Tree

81 6

7

Deletion in a B+-Tree

1 76 8

Underflow

merge with the left propagate reduce the tree levels

Page 14: Insertion in a B+ Tree

1 6 7 8

1 6

Deletion in a B+-Tree