{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lec9 - Outline B-Tree Motivation Denition and properties...

This preview shows pages 1–5. Sign up to view the full content.

Outline: B-Tree Motivation Definition and properties Find Insertion Deletion The Data Structure Multiple keys in a node Multiple pointers in a node Lecture 9, B-Tree p. 1

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

View Full Document
Motivation Considering the page access of a real sys- tem; try to minimize the number of page accesses. Definition, and Properties Each node stores [ b - 1 , 2 b - 1] keys. (The root node is exceptional.) Each node has [ b, 2 b ] children. (The root node is exceptional.) A node is full , if it contains 2 b - 1 keys All leaves are in the same level of the tree Height of the tree: Θ(log b n ) Lecture 9, B-Tree p. 2
Find a value in a B-tree, starting from its root node Do Search in the root node If the key is found, return it Else, move to the proper subtree Until the subtree is empty Return false Lecture 9, B-Tree p. 3

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

View Full Document
Splitting When a key is inserted into a full node, the node is split into two nodes. There are 2 b keys to consider.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern