Red Black Trees

What is it

A self balancing binary search tree where each node is either red or black to keep the tree balanced

Rules

Example

Red Black Tree

Why use it

Search insert and delete in O(log n) time Keeps the tree from getting too unbalanced

More info here