B-Tree

🌳 B-Tree Nomenclature

  • Order (m) → max children = m
  • Max keysm − 1
  • Min keys (non-root)⌈m/2⌉ − 1
  • Children vs Keyskeys = children − 1
  • Root → minimum 1 key
  • Internal node → has children
  • Leaf node → no children
  • All leaves → same level (balanced)
  • HeightO(logₘ n) Image Description

Insert Operation

Image Description

Insert Operation another example

B-Tree of Order 5 Insert Keys 7, 4, 14, 25, 3, 10, 12, 15, 17, 9, 29, 1, 38, 2, 11
Image Description Image Description Image Description Image Description


Deletion Operation

Example 1 Image Description

Solution Image Description