Question: 1 3 . 3 - 1 In line 1 6 of RB - INSERT, we set the color of the newly inserted node to red.

13.3-1 In line 16 of RB-INSERT, 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 4 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!