Penguin
Blame: RedBlackTree
EditPageHistoryDiffInfoLikePages
Annotated edit history of RedBlackTree version 2 showing authors affecting page license. View with all changes included.
Rev Author # Line
1 PhilMurray 1 A RedBlackTree is an extended type of BinaryTree which satisfies the following conditions:
2
3 * Every node is coloured either red or black
4 * Every leaf node is coloured black
5 * If a node is red, then both of its children are black
6 * Every path from the root to a leaf contains the same number of black nodes. This number is called the black-height of the tree.
7
8 They guarantee O(log n) time per access.