Slide 17
Slide 17 text
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 17
April 24, 2019
B+-Tree
▪ Properties of a balanced B+-tree
▪ every path from the root to a leaf node has the same length
▪ for a given n, each leaf node has between (n-1)/2 and n-1 values
- leaf nodes must always be at least half full
▪ each non-leaf (and non-root) node has between n/2 and n
children (fanout)
▪ typical B+-tree node
- K1
,..., Km-1
are the ordered search key values (Ki
< Ki+1
)
- a non-leaf node has pointers P1
,..., Pm
to child nodes
- a leaf node has pointers P1
,..., Pm
to file records or to buckets of pointers
- typically the size of a disk block
▪ if the root node is not a leaf node it has at least 2 children;
otherwise it has between 0 and n-1 values
P1
K1
P2
... Pm-1
Km-1
Pm
...