COMP171 Fall 2006. B + -Trees. Contents. Why B + Tree? B + Tree Introduction Searching and Insertion in B + Tree. Motivation. AVL tree with N nodes is an excellent data structure for searching, indexing, etc. The Big-Oh analysis shows most operations finishes within O(logN) time
Note there are various definitions of B-trees, but mostly in minor ways.
The above definition is one of the popular forms.
For L=32, two leaves with 16 and 17 items are created. We can perform 15 more insertions without another split
=> Need to split the internal node
To insert a key K into a full internal node x:
(1) target is a key in some internal node (needs to be replaced, according to our convention)
(2) After deleting target from leaf x, x contains less than L/2 keys (needs to merge nodes)
Want to delete 15
Want to delete 12
too few keys! …
Want to delete 5