The red-black tree algorithm is the set of recoloring and rotation operations that keep a red-black tree, a self-balancing binary search tree, within its balance guarantee after an insertion or deletion, by restoring five structural properties: every node is colored either red or black, every null child is treated as black, a red node never has a red child, every path from a given node to any leaf beneath it passes through the same number of black nodes, and the root is always black. Rebalancing after a change relies on a mix of recoloring nodes and at most a small, bounded number of rotations rather than a full rebalancing pass, so it restores the tree's properties in time that is on average constant and never worse than proportional to the logarithm of the tree's size, guaranteeing that the longest path from root to leaf never exceeds twice the length of the shortest such path. Leonidas Guibas and Robert Sedgewick derived the modern red-black tree in their 1978 paper "A Dichromatic Framework for Balanced Trees," building on Rudolf Bayer's 1972 symmetric binary B-tree, and by their own account chose the color red for largely practical reasons, since it printed most clearly on the laser printer available to them at Xerox PARC.
Facts
Time Complexity
Time Complexity (category)Logarithmic Time -- O(log n) 1 Connections
Credited To
Source NIST Dictionary of Algorithms and Data Structures: red-black tree
Source NIST Dictionary of Algorithms and Data Structures: red-black tree
In Field
Source Wikipedia: Red-black tree
Sources
1. Red-Black Tree Algorithm (Wikipedia)
Wikipedia infobox: time complexity logarithmicQuote, Wikipedia infobox: time complexity logarithmic
logarithmic
View the Source Wikipedia: Red-black tree
Wikimedia FoundationIn Group: Search Trees and Dictionary Structures, Lead section
is a self-balancing binary search tree data structure
In Field: Algorithms and Complexity Theory, Lead
In computer science, a red-black tree is a self-balancing binary search tree data structure noted for fast storage and retrieval of ordered information.
View the Source NIST Dictionary of Algorithms and Data Structures: red-black tree
NIST Dictionary of Algorithms and Data StructuresCredited To: Robert Sedgewick, Note
The red/black naming and explanation was given by Guibas and Sedgewick.
Credited To: Leonidas J. Guibas, Note
The red/black naming and explanation was given by Guibas and Sedgewick.
View the Source Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.