2-3-4 Tree

A Balanced Search Tree

Introduction

A 2-3-4 Tree is a self-balancing data structure that is a type of B-tree of order 4. Each node can contain 1, 2, or 3 keys and have 2, 3, or 4 children respectively.

Key Properties

Insertion Steps

  1. Start at the root and find the correct leaf for the new key.
  2. Split any full nodes (nodes with 3 keys) encountered along the path.

Example Visualization

2-3-4 Tree Diagram

Learn More

For more details, visit 2-3-4 Tree on Wikipedia .