Question: 1 3 . 3 - 1 In line 1 6 of RB - INSERT, we set the color of the newly inserted node to red.
In line of RBINSERT, we set the color of the newly inserted node to red.
Observe that if we had chosen to set s color to black, then property of a redblack tree would not be violated. Why didnt we choose to set s color to black?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
