Red Black Tree Insertion
Steps for Algorithm:
- Insert the new value using BST insertion algorithm
- Color the new node red
- Check Red-Black tree properties and restore if necessary
- Check that root node is black
- Check that no red nodes have red children
For more information on Red-Black Tree insertion go to
this link
Image of Algorithm: