Get Math Help

GET TUTORING NEAR ME!

(800) 434-2582

By submitting the following form, you agree to Club Z!'s Terms of Use and Privacy Policy

    Home / Get Math Help

    Red-black Tree

    Definition

    An extended rooted binary tree satisfying the following conditions: 1. Every node has two children, each colored either red or black. 2. Every tree leaf node is colored black. 3. Every red node has both of its children colored black. 4. Every path from the root to a tree leaf contains the same number (the "black-height") of black nodes. Let n be the number of internal nodes of a red-black tree. Then the number of red-black trees for n = 1, 2, ... is 2, 2, 3, 8, 14, 20, 35, 64, 122, ... (OEIS A001131). The number of trees with black roots and red roots are given by OEIS A001137 and OEIS A001138, respectively.

    Related terms

    Back to List | POWERED BY THE WOLFRAM LANGUAGE