Menu
support@authoritypapers.com
+1(805) 568 7317

company x has created a new variant on red black trees which also uses blue as a col 5187659


2. Red-Black Trees (2 points) (1) Company X has created a new variant on red-black trees which also uses blue as a color for the nodes. They call these red-black-blue trees. Be- low are the new rules for these trees: . Every node is red, blue, or black. . The root is black e Every leaf (NIL) is black. . If a node is red, then both its children are black. . If a node is blue, then both its children are red or black. . For each node, all simple paths from the node to descendant leaves con- tain the same number of black nodes. (a) (2 points) In class we found that the height, h, of a red-black tree is S 2 log2 (n +1) (where n is the number of keys). Find and prove that a similar bound on height of the red-black-blue trees. (Hint: You can use the same approach as we did to show h 2log (n +1)). Company X has created a new variant on red-black trees which also uses blue as a color for the nodes. They call these “red-black-blue trees”. Below are the new rules for these trees: Every node is red, blue, or black. The root is black. Every leaf (NIL) is black. If a node is red, then both its children are black. If a node is blue, then both its children are red or black. For each node, all simple paths from the node to descendant leaves contain the same number of black nodes. (a) In class we found that the height, h, of a red-black tree is lessthanorequalto 2 log_2 (n + 1) (where n is the number of keys). Find and prove that a similar bound on height of the red-black-blue trees.

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"GET15"

Order Now