lec24 - B+-Trees Same structure as B-trees. Dictionary...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
B + -Trees Same structure as B-trees. Dictionary pairs are in leaves only. Leaves form a doubly-linked list. Remaining nodes have following structure: j = number of keys in node.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example B+-tree 9 5 1 3 5 6 30 40 9 16 17 16 30 index node leaf/data node
Background image of page 2
B+-tree—Search 9 5 1 3 5 6 30 40 9 16 17 16 30 key = 5 6 <= key <= 20
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
B+-tree—Insert 9 5 5 6 30 40 9 16 17 16 30 Insert 10 1
Background image of page 4
16 30 Insert 9 5 1 3 5 6 30 40 9 Insert a pair with key = 2 . New pair goes into a 3 -node. 16 17
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Insert Into A 3-node Insert new pair so that the keys are in ascending order. Split into two nodes. 2 3 1 1 2 3 Insert smallest key in new node and pointer to this new node into parent. 2 2 3 1
Background image of page 6
9 Insert 9 5 5 6 30 40 16 17 2 Insert an index entry 2 plus a pointer into parent. 2 3 1 16 30
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Insert Now, insert a pair with key = 18 . 9 1 2 5 5 6 30 40 9 16 17 16 30 2 3
Background image of page 8
Now, insert a pair with key = 18 . 9
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 27

lec24 - B+-Trees Same structure as B-trees. Dictionary...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online