codezonediitj / pydatastructs

A python package for data structures and algorithms
https://pydatastructs.readthedocs.io/en/stable/
Other
202 stars 270 forks source link

Add `multiset` to `pydatastructs.miscellaneous_data_structures` #390

Closed Muskan0 closed 1 year ago

Muskan0 commented 3 years ago

Description of the problem

https://github.com/codezonediitj/pydatastructs/issues/390#issuecomment-986180523

We do have SelfBalancingBinaryTree we just need to put pop method (which is basically show top and delete). Apply pop enough time and we have tree sort. My point being that we don't need to reinvent anything.

References

Komal-99 commented 3 years ago

I would like to work kn this issue kindly assign it to me .I am gssoc'21 participant

Smit-create commented 3 years ago

Can we create a multiset using this? I would prefer having the implementation which is available in CPP where Insert, deletion, and count works in O(logN)?

Muskan0 commented 3 years ago

@Smit-create Can I do it in Python?

Amulya310 commented 3 years ago

Please assign this issue to me under Gssoc'21.

HarsheetKakar commented 2 years ago

Can we create a multiset using this? I would prefer having the implementation which is available in CPP where Insert, deletion, and count works in O(logN)?

We do have SelfBalancingBinaryTree we just need to put pop method (which is basically show top and delete). Apply pop enough time and we have tree sort. My point being that we don't need to reinvent anything.

czgdp1807 commented 2 years ago

We already have plenty of sorting algorithms. Having one more makes sense? Though I like the idea of multiset, it is a data structure worth adding.

CoderAndroid746 commented 2 years ago

Kindly assign this issue to me under Gssoc'22

czgdp1807 commented 2 years ago

@Smriti123Shukla You can go ahead with adding multiset. We don't assign issues. Please read, https://github.com/codezonediitj/pydatastructs/wiki/Issue-Policy