12.B-Trees (1)§

B-Trees (2)

  1. B-Trees are always balanced.
  2. B-Trees keep similar-valued records together on a disk page, which takes advantage of locality of reference.
  3. B-Trees guarantee that every node in the tree will be full at least to a certain minimum percentage. This improves space efficiency while reducing the typical number of disk fetches necessary during a search or update operation.
A B-tree of order four

B-Tree Definition

B+-Trees

23+-Tree Build Example

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

An example of building a “\(2-3^+\) tree

23+-Tree Search Example

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

An example of searching a “\(2-3^+\) tree

23+-Tree Delete Example

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

An example of deleting from a “\(2-3^+\) tree

B+-Tree Find

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

An example of search in a B+ tree of order four. Internal nodes must store between two and four children.

B+-Tree Insert

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

An example of building a B+ tree of order four.

B+-Tree Deletion

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

An example of deletion in a B+ tree of order four.

B+-Tree Insert (Degree 5)

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

An example of building a B+ tree of degree 5

B-Tree Space Analysis (1)

B-Tree Space Analysis (2)

B-Trees: The Big Idea