B-Trees
A B-tree is a tree data structure designed especially for external memory, and aims to keep I/Os to a minimum. In a bit, I’ll get into all of the B-tree rules and operations, but let’s begin with an overview of how it works.
The first thing to know about B-trees is that they are not binary trees. A binary tree is, by definition, a tree whose nodes have up to two children at most. Indeed, the trees we’ve dealt with so far in this book were types of binary trees.
A B-tree, on the other hand, contains nodes that can have many children. In fact, in the real world, B-tree nodes often have hundreds of children. Yes, you read that right. As we’ll see shortly, the power of B-trees stems from this idea.
What is clear is that the “B” in the name ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access