Red Black Trees

Introduction

A Red-Black Tree is a self-balancing binary search tree that maintains a balanced structure through rotations. Search, insertion, and deletion are all O(log n), where n represents the number of nodes.

Rules of Red Black Trees

Red Black Tree Diagram

Diagram of a Red Black Tree

Learn More