rb-tree (red-black tree) is not isomorphic to a 2-3-4 tree. Since the 3-node in the 2-3-4-tree can be tilted left or right, if we try to match this 3-node with the rb-tree. But llrb-tree (left red-black tree) does.
Words from Robert Sedgwick (section Introduction):
In particular, the paper describes a way to maintain
a correspondence between red-black trees and 2-3-4 trees,
by interpreting red links as internal links in 3-nodes and
4-nodes. Since red links can lean either way in 3-nodes
(and, for some implementations in 4-nodes), the correspondence is not necessarily 1-1
Also Page 29 and Page 30 of presentation by Robert Sedgewick. This is a presentation about the LLRB tree.
And the section "Analogy to B-trees of order 4" in the "Red-black tree" in wikipedia , it contains a good graphic.
source
share