There is no such rule as red black, it can be used only in a specific case, it depends on the application in such cases as when you have to build a tree only once, and you have to request it many times, then you can go to the AVL tree, because searching for an AVL tree is pretty fast. But it is strictly balanced, so inserting and deleting can take some time. The AVl tree can be used for language dictopies, where you need to build the data structure only once and the red ebony is used in the completely fair scheduler used in current Linux kernels for several days .
the restrictions applied to red ebony also ensure that the path from the root to the farthest leaf is no more than two times the path from the root to the nearest leaf.
By the way, you can find a different vision and paste, etc. the time required for red ebony is here.
Average Worst case Space O(n) O(n) Search O(log n) O(log n) Insert O(log n) O(log n) Delete O(log n) O(log n)
aman Verma Dec 19 '12 at 6:05 2012-12-19 06:05
source share