Closed Konard closed 8 years ago
Hi Konstantin,
Thanks for letting me know about it. I'm glad you found something of use there.
Tom
On 6/29/2016 7:43 AM, Konstantin Dyachenko wrote:
https://github.com/Konard/LinksPlatform/blob/31d2233a6b1a3e02a630f94450ad6fe3445c4cb1/Platform/Platform.Data.Core/Collections/Trees/SizeBalancedTreeMethods3.cs (new version after code clean up).
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/programmatom/TreeLib/issues/5#issuecomment-229378040, or mute the thread https://github.com/notifications/unsubscribe/AH8vquCsmvKtllokCpyQT3mPRqiPtxiRks5qQoSAgaJpZM4JBKyz.
(Disclosure looked ok to me)
Implementation is better now (added correct calculation of sizes). Size in the tree (and all subtrees) allows to access to the tree by index (like we do so with array) as well as to get borders of range (from 5th to 10th element and so on) fast. And using both sizes and threads we can quickly find the range and iterate through all of its values. So Size + Threads + AVL balancing makes this implementation quite universal data structure, that performs well in any case. Source file is moved: https://github.com/Konard/LinksPlatform/blob/master/Platform/Platform.Data.Core/Collections/Trees/SizedAndThreadedAVLBalancedTreeMethods.cs
In short: "a dream come true data structure". Thank you, I was dreaming of something like this for years. Now I have it.
As your license states I publish modification of your source code, that was made in the Links Platform project: https://github.com/Konard/LinksPlatform/blob/8fe8ca75c82ef8dfc2bbfd2b478f222009f0a238/Platform/Platform.Data.Core/Collections/Trees/SizeBalancedTreeMethods3.cs
These modifications are based on: https://github.com/programmatom/TreeLib/blob/master/TreeLib/TreeLib/Generated/AVLTreeList.cs
All next modifications will be published in https://github.com/Konard/LinksPlatform repository.
Can you check this for a licence violation?