Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plans on implementing AVL tree? #90

Open
germaniuss opened this issue Aug 5, 2022 · 5 comments
Open

Any plans on implementing AVL tree? #90

germaniuss opened this issue Aug 5, 2022 · 5 comments

Comments

@germaniuss
Copy link

I was in need of a simple string map data structure that would be alphabetically sorted, however the only map implementation in here is a simple hash map. I was wondering if there are any plans to implement an ordered map in the form of an AVL tree? I ended up using another random implementation I found on github though I would've loved to use this library since it's awesome and I use it for everything else.

@tezc
Copy link
Owner

tezc commented Aug 9, 2022

I agree a tree implementation is missing in the toolset :)

Currently, there is no plan for it. There is a bplus tree which I couldn't publish due to licensing but I was told that I can open source it after 2022. So, I guess, I'll add it by the end of this year. Not sure if it helps you though.

@germaniuss
Copy link
Author

germaniuss commented Aug 10, 2022

Well for now I'll use the other tree implementation I found. On another note is there anything in the library that can be used as a shared semaphore between processes. Kind of like semaphore.h on POSIX systems.

@tezc
Copy link
Owner

tezc commented Aug 10, 2022

Sorry, there is nothing for inter-process communication.

@germaniuss
Copy link
Author

That's fine I might just change the mutex implementation a little and use the mmap to store it. Thanks for your time anyways!

@iz0eyj
Copy link

iz0eyj commented Oct 23, 2022

Here you can find a non-recursive implementation of the AVL Tree that is well done and simple to adapt to your needs.

https://github.com/xieqing/avl-tree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants