RBNode depth bounds #
depthLB c n is the best upper bound on the depth of any balanced red-black tree
with root colored c and black-height n.
Equations
Instances For
depthUB c n is the best upper bound on the depth of any balanced red-black tree
with root colored c and black-height n.
Equations
- RBTree.RBNode.depthUB RBTree.RBColor.red x✝ = 2 * x✝ + 1
- RBTree.RBNode.depthUB RBTree.RBColor.black x✝ = 2 * x✝