Closed braibant closed 10 years ago
Closed by cd1f712814 .
Why is it the case that RBT are specialized to use only int
keys? I think we could/should have a polymorphic implementation, and only test them on integers (this would allow to cite the interesting result that polymorphic comparison-based functions can be tested only on integers).
I think it would be good to have polymorphic RBT indeed.
Closed again by fee4c4de5f0429788c8f1e6c42d0d6e6cd9b45b5.
Implement the test that checks whether a RBT satisfies the red-black property, and check this property.