Closed Konard closed 8 years ago
Looks like it may be possible just to change balancing logic to be as fast as AVL. Original SBT balancing algorithm tends to be 100% balanced on every insert / deletion, and it is done using recursive balacing. AVL have different approach to balancing, so it is not so cost effective.
Threated tree implementation can speed up complex searching by speeding up travesal through tree.
https://www.youtube.com/watch?v=ww-1SCSMlr8 https://www.youtube.com/watch?v=k4j0s98kl2k https://www.youtube.com/watch?v=vGPUO8BYKSI https://www.youtube.com/watch?v=4FCPEOdzio0 https://www.youtube.com/watch?v=HzAyIzI6C7U https://www.youtube.com/watch?v=S-qrQuxxO_4 https://www.youtube.com/watch?v=bRELPJqH2Yo https://www.youtube.com/watch?v=lfHN-IjITu8
Done at https://github.com/Konard/LinksPlatform/commit/77c9988c619dc05e5b65478b6b4c355ba5d02db2 thanks to https://github.com/programmatom/TreeLib/issues/5 (TreeLib project)
https://github.com/Konard/sbt
AVL: https://en.wikipedia.org/wiki/AVL_tree http://www.youtube.com/watch?v=5C8bLQBjcDI&feature=related https://ru.wikipedia.org/wiki/%D0%90%D0%92%D0%9B-%D0%B4%D0%B5%D1%80%D0%B5%D0%B2%D0%BE