Red-Black Trees in Computer Science

What is a Red-Black Tree?

A red-black tree is a self-balancing binary search tree. Each node stores an extra bit representing "color" (red or black), used to ensure the tree remains approximately balanced during insertions and deletions.

The 5 Core Properties

Visual Example

Diagram of a Red-Black Tree

Learn More

For more detailed information, you can visit the Wikipedia page on Red-Black Trees.