What do you think is the best way of implementing self balancing binary search trees ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What do you think is the best way of implementing self balancing binary search trees ?

there are many implementations out there like aa trees, scapegoat trees, splay trees or maybe treaps which one do you prefer the most ?

22nd May 2017, 7:21 PM
LDK
LDK - avatar
3 Answers
+ 4
Same here, that's the one used in C++ std::map also.
22nd May 2017, 7:52 PM
Karl T.
Karl T. - avatar
+ 3
I prefer red black trees because they are so useful for real time application. due to good insertion delete and search times
22nd May 2017, 7:26 PM
LDK
LDK - avatar
+ 1
glad to see we have the same thought I'm wondering how many people have thoughts on this
22nd May 2017, 8:15 PM
LDK
LDK - avatar