triangle-exclamationRed-Black Tree

About

It is a self-balancing Binary Search Tree with specific coloring rules to maintain balance.

circle-check
circle-info

The color field can be just a 1bit property like 0 or 1.

Color Rules

triangle-exclamation

Balance Rules

Searching an element

Inserting an element

circle-info

Have a better insertion time than AVL Trees. (Since it is less aggressive in balancing the Tree)

Deleting an element

Last updated