CS241 Lecture Notes - Lecture 10: Insert Key, Locality Of Reference, Out-Of-Core Algorithm

20 views2 pages
12 Apr 2022
Course
Professor

Document Summary

Insert key at leaf node returned by search. Middle key in node becomes parent, its children are the left and right half of the node. Goal: reduce the number of blocks read from external memory into main memory. Also: reduce the number of blocks loaded that do not contain desired data. In internal memory: all operations have runtime o(logn) All empty subtrees are at the same level. Inorder successor of key k is the smallest key in the subtree immediately to the right of k. Number of kvp = number of empty subtrees + 1. Each node has between a and b subtrees, unless it is the root. If node has k subtrees, then it stores k-1 kvps. Type of (a, b)-tree tailored to external memory model. B-tree of order b is a (ceiling(b/2), b)-tree. Search, insert, and delete require visiting o(h) nodes.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions