138k views
4 votes
When we insert a new node into a red-black tree, we set the color of the newly inserted node n to red. observe that if we had chosen to set n’s color to black, then property 4 of a red-black tree would not be violated. why didn’t we choose to set n’s color to black?

User Gilad Gat
by
8.7k points

1 Answer

2 votes
cause u didnt want to
User Har
by
8.1k points