-
Notifications
You must be signed in to change notification settings - Fork 273
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 splay tree #109
Comments
I would like to work on it. Please assign it to me. |
Hi @ka1shi If you are participating through RGSoC, 2020 then feel free to start your work on this in a PR. However, if you are a GSSoC participant the see this list of issues. Feel free to open new issues if you have new ideas to work upon. |
Hi @czgdp1807, I am participating through GSSoc20. Sure, I will check the issues with GSSoc20 tag. Thank You! |
Hi, Can I start working on this issue as a part of RGSoC20? |
Hi @Vanshika266 Please start by coming up with an API design for splay tree. You can take a look at https://en.wikipedia.org/wiki/Splay_tree#Operations for some ideas.Let us know if you face any problem/query. |
Thank you for allowing me to work on this issue. I believe the class design would extend binary search tree implementation from pydatastructs. The basic structure of class can be as follows- Following are the function APIs which can be implemented in the class -
References - https://en.wikipedia.org/wiki/Splay_tree Kindly check if these APIs work. |
The public API looks good. Aren't the rotations( |
Yes, I get your point. I will extend AVL Tree implementation from pydatastructs. Updated structure of the class can be - Kindly check if these updates work. |
Sounds better. Probably, it's time to make a PR. |
Ok, I will try to create a PR in a day or two for splay tree implementation. |
Added code for splay trees with public APIs insert, delete, splay. The work is in reference with issue codezonediitj#109
I have created a PR. I have implemented all the APIs except Also, In case of join, If I merge two arrays then the complexity of Also can you review the code once to see if it is the required implementation? |
It looks we don't need these two |
Ok, I will add the implementation of |
IMO, extending |
I have extended |
Description of the problem
Example of the problem
References/Other comments
.. [1] https://en.wikipedia.org/wiki/Splay_tree
.. [2] https://github.com/codezonediitj/pydatastructs/wiki/Plan-of-Action-for-the-Projects
The text was updated successfully, but these errors were encountered: