Red Black Trees Presentation Ultimate Pro

lovishkundu77 4 views 4 slides May 05, 2024
Slide 1
Slide 1 of 4
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4

About This Presentation

Red Black Tree


Slide Content

Red Black Trees By: Group 10

Introduction to Red Black Trees Self balancing binary search tree Invented by two researchers at PARC Xerox in 1978 Based on the work of Rudolf Bayer published in 1972 Easier to code and perform better than AVL trees when insertion and deletion operations are a priority.

Properties of Red Black Trees Every node is either red or black. The root of the tree must always be black. A red node can only have black children but a black node can either have a red or black child. All leaf(nil) nodes are considered black. Every path from root node to any of its descendant leaf nodes goes through the same number of black nodes.

Examples Figure 1 Figure 2 Figure 3 Black Height of the tree is inconsistent Two red nodes in a row and inconsistent black height. Not a red black tree. Adheres to all the rules of red black tree. Hence it is a valid red black tree.
Tags