Red Black Tree
An example of a red-black tree is shown below:
Property and Operations
- Property:
- (root property) The root of the red-black tree is black
- (red property) The children of a red node are black.
- (black property) For each node with at least one null child, the number of black nodes on the path from the root to the null child is the same.
- RBT-Insertion
- RBT-Deletion