11 B+tree
11 B+tree
B+tree
B+tree
A B+ tree is the same as a B tree;
the only difference is that:
• All leaf nodes are linked together
in a doubly-linked list
• Satellite data is stored on the leaf
nodes only. Internal nodes only
hold keys and act as routers to the
correct leaf node
Notice that some keys seem to be duplicated, like 2, 4, and 5.
This is because, unlike leaf nodes, the internal nodes of a
B+tree B+tree cannot hold satellite data and so we must make sure in
some way that the leaf nodes include all the keys/value pairs.
Tree of degree 3
To start with, we’ll insert Keys 1 and 2 into the root node in ascending order:
Insert 3