- A red-black-tree is
a
self-balancing
binary search tree
- Each node has
a color bit which
represents its
color:
red or
black
- Properties of
a red-black-tree:
- Root property:
the root node is
(always) black
- External property:
every external node is
black
- Red property:
the children node of
a red node are
black
- Depth property:
all external nodes have the
same
"black depth"
(= # black nodes from
root node to
external node)
|
|