Red-Black Trees

Properties:

  1. It's a height balanced BST, similar to 2-3-4 Tree.
  2. Every Node is either Red or Black
  3. Root of  a tree is Black
  4. Null is also Black
  5. Number of Blacks on paths from Root to Leaf are same
  6. No 2 consecutive Red, children and parent of Red is Black
  7. New inserted node is Red
  8. Height in logn <= h <= 2*logn (height of AVL is 1.44logn)

Comments

Popular posts from this blog

Insertion/Deletion in 2-3 Tree