|
Let N be the new node that is inserted.
The insert algorithm for the Red-Black tree:
|
Result:
The resulting tree satisfies all properties of the Red-Black tree and we are DONE !!!
Result:
The resulting tree violates the property #4 of the Red-Black tree !!