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
- Batteries.RBNode.depthUB Batteries.RBColor.red x✝ = 2 * x✝ + 1
- Batteries.RBNode.depthUB Batteries.RBColor.black x✝ = 2 * x✝