Overview

A Red-Black Tree (RBT) is a type of self-balancing binary search tree that guarantees log time for search, insert, and delete by maintaining simple color-based rules.

Key Properties

Tree invariants

Visual

Red-Black Tree example diagram
Example Red-Black Tree (image: Wikipedia)

Learn more on the Wikipedia page for Red-Black Trees.