One of the questions from my homework was to find exact lower bound of
(#black nodes)/(#red nodes)
in rb-tree. the bound must be not asymptotic. Any suggestions?
Your help would be very appreciated.
One of the questions from my homework was to find exact lower bound of
(#black nodes)/(#red nodes)
in rb-tree. the bound must be not asymptotic. Any suggestions?
Your help would be very appreciated.
Assuming this is a homework:
Let's review some properties of RedBlack Trees from Wikipedia:
To get a lower bound on #B/#R you want to construct a tree that has as many red nodes as possible. (Unfortunately, due to 2,3,4 you cannot construct an all red tree)
Some questions worth thinking about: