[B-tree B+ tree] B-tree, B+ tree theory

Introduce B-tree

Insert image description here

Insert image description here

Insert image description here
Insert image description here
Satisfying the above two strategies is a B-tree:

  • In the m-fork search tree, it is stipulated that any node except the root node must have at least ⌈ m / 2 ⌉ \lceil m/2 \rceilm /2
    bifurcation, that is, it contains at least⌈ m / 2 ⌉ \lceil m/2 \rceilm /2 - 1 keyword
  • In an m-ary search tree, it is stipulated that for any node, the heights of all its subtrees must be the same (absolute balance).

B-tree definition and properties

Insert image description here
Insert image description here

Core characteristics of m-order B-tree

Insert image description here

B+tree

Insert image description here

Insert image description here

B+ tree search

Search from the root:
Insert image description here
Search from the pointer (sequential search):
Insert image description here

Guess you like

Origin blog.csdn.net/qq_44033208/article/details/132672965