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

Add support for hashmaps (wrap std::unordered_map) #13

Open
msune opened this issue Feb 10, 2024 · 0 comments
Open

Add support for hashmaps (wrap std::unordered_map) #13

msune opened this issue Feb 10, 2024 · 0 comments
Labels

Comments

@msune
Copy link
Owner

msune commented Feb 10, 2024

As a user, I would like a to have a variant of cdada_map_t that is equivalent to std::unordered_map, which has the following differences:

map unordered_map
Ordering ordered unordered
Implementation Red-Black Tree (self balancing) Hash Table
Computational complexity
Search log(N) Average = O(1), Worst = O(N)
Insertion log(N) + rebalancing Average = O(1), Worst = O(N)
Deletion log(n) + rebalancing Average = O(1), Worst = O(N)
@msune msune added the feature label Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant