pydatastructs icon indicating copy to clipboard operation
pydatastructs copied to clipboard

Alternatives to `unordered_map`, `unordered_set` for C++ backend.

Open czgdp1807 opened this issue 3 years ago • 11 comments

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 https://github.com/codezonediitj/pydatastructs/issues/438#issuecomment-975740922

czgdp1807 avatar Nov 21 '21 15:11 czgdp1807

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

czgdp1807 avatar Nov 21 '21 15:11 czgdp1807

Sure.

jaythorat avatar Nov 21 '21 17:11 jaythorat

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.

czgdp1807 avatar Nov 22 '21 17:11 czgdp1807

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

nitinrathodsvnit avatar Mar 03 '22 10:03 nitinrathodsvnit

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.

onnhyd avatar Mar 04 '22 03:03 onnhyd

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

czgdp1807 avatar Mar 04 '22 06:03 czgdp1807

@czgdp1807 can you assign me for this issue?

onnhyd avatar Mar 04 '22 06:03 onnhyd

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

czgdp1807 avatar Mar 04 '22 06:03 czgdp1807

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

onnhyd avatar Mar 04 '22 14:03 onnhyd

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

czgdp1807 avatar Mar 04 '22 14:03 czgdp1807

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

ayeankit avatar Mar 11 '23 19:03 ayeankit