Red-Black Trees

Functionality

A red-black tree is used to ensure that a binary search tree remains balanced when adding elements.

Rules

Visit this link for more information.