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

Alternatives to unordered_map, unordered_set for C++ backend. #438

Open
Tracked by #432
czgdp1807 opened this issue Nov 21, 2021 · 12 comments
Open
Tracked by #432

Alternatives to unordered_map, unordered_set for C++ backend. #438

czgdp1807 opened this issue Nov 21, 2021 · 12 comments
Labels
Milestone

Comments

@czgdp1807
Copy link
Member

czgdp1807 commented Nov 21, 2021

AFAIK, these are slow in STL of C++. We have found some alternatives - policy based data structures (https://codeforces.com/blog/entry/60737, SparseHash by Google, abseil::flat_hash_map, boost::unordered_map (https://comp.lang.cpp.moderated.narkive.com/VPUab6if/performance-difference-between-std-unordered-map-and), https://codeforces.com/blog/entry/62393 - implementing our own hash map.

Refer #438 (comment)

@czgdp1807 czgdp1807 changed the title Alternatives to unordered_map, unordered_set - AFAIK, these are slow in STL of C++. We have found some alternatives - policy based data structures (https://codeforces.com/blog/entry/60737, SparseHash by Google, abseil::flat_hash_map, boost::unordered_map (https://comp.lang.cpp.moderated.narkive.com/VPUab6if/performance-difference-between-std-unordered-map-and), https://codeforces.com/blog/entry/62393 - implementing our own hash map. Alternatives to unordered_map, unordered_set. Nov 21, 2021
@czgdp1807 czgdp1807 changed the title Alternatives to unordered_map, unordered_set. Alternatives to unordered_map, unordered_set for C++ backend. Nov 21, 2021
@czgdp1807
Copy link
Member Author

@jthorat10 After completing bubble sort and insertion sort, feel free to start working on this.

@czgdp1807 czgdp1807 added the cpp label Nov 21, 2021
@czgdp1807 czgdp1807 added this to the v1.0.1 milestone Nov 21, 2021
@jaythorat
Copy link
Contributor

Sure.

@czgdp1807
Copy link
Member Author

The benchmark in https://tessil.github.io/2016/08/29/benchmark-hopscotch-map.html can be a good source of inspiration for designing ours to analyse the approaches mentioned in the OP.

@nitinrathodsvnit
Copy link

hello sir i`m new to open source i know c++ and data structure how can i contribute

@onnhyd
Copy link

onnhyd commented Mar 4, 2022

I want to work on this under GSSOC2022. Here is my discord profile DHANANJOY DEY | Contributor#7903 please please I want to work on a c++ project.

@czgdp1807
Copy link
Member Author

@sceary-expert Feel free to start working on this issue.

@onnhyd
Copy link

onnhyd commented Mar 4, 2022

@czgdp1807 can you assign me for this issue?

@czgdp1807
Copy link
Member Author

We don't assign issues. Care to read, https://github.com/codezonediitj/pydatastructs/wiki/Issue-Policy

@onnhyd
Copy link

onnhyd commented Mar 4, 2022

@czgdp1807 Can you tell me more about the the issue ?

@czgdp1807
Copy link
Member Author

@sceary-expert There is sufficient information in the description of this PR. Do you have any specific questions?

@ayeankit
Copy link

Hey @czgdp1807 , is this still open? I would like to work on it.

@Vraj2811
Copy link

Vraj2811 commented Oct 31, 2024

Hi @czgdp1807
Is the issue still open ?
I would like to work on it

Can you please help me to start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Agenda
Development

No branches or pull requests

6 participants