29. Search Trees 2
22 Jun 2020 | Algorithm
2-3 Trees
- DBMS(Database management System)
2-3-4 Trees
Red-Black Trees
- its a height balanced binary search tree, similar to 2-3-4 tree
- Every node is Red or Black
- Root of a Tree is Black
- Null is also Black
- Number of Blacks on path from root to leaf are same
- No 2 consecutive Red, Parent and children of Red are Black
- New inserted Node is Red
- Height in logn <= H<= 2logn
Red-Black Deletion
2-3 Trees
- DBMS(Database management System)
2-3-4 Trees
Red-Black Trees
- its a height balanced binary search tree, similar to 2-3-4 tree
- Every node is Red or Black
- Root of a Tree is Black
- Null is also Black
- Number of Blacks on path from root to leaf are same
- No 2 consecutive Red, Parent and children of Red are Black
- New inserted Node is Red
- Height in logn <= H<= 2logn
Comments