John Rodewald
Personal notes I've decided to make public for some reason.


Red Black Tree

Posted on

A red-black tree is a binary search tree with additional properties that make it self-balancing. The rules are:

Insertion or removal operations can alter the tree's structure and put it in an invalid state. Therefore, when implementing a red-black tree, a validity check must follow after these operations.

If the tree is found to be invalid, an efficient way to correct its structure is through rotations.

Tags: programming data-structures