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

AVL Tree Implementation #459

Open
srsonia2506 opened this issue Apr 9, 2024 · 2 comments · May be fixed by #464
Open

AVL Tree Implementation #459

srsonia2506 opened this issue Apr 9, 2024 · 2 comments · May be fixed by #464

Comments

@srsonia2506
Copy link

No description provided.

@jsjeon-um
Copy link

I'll work on this if thats alright

@VagelisKitsios
Copy link

VagelisKitsios commented Oct 25, 2024

Hello, I was taking a look at this when I ran into the following technical issue.

The AVL tree should logically be a subclass of the binary search tree as they share common operations (search, traversals). However, this is not possible because the AVL tree's nodes are fundamentally different from the ones used in the basic BST (they need an extra field to store the height of the node).

So my question is this:

Should I implement the AVL tree as a subclass of the binary search tree (changes would need to be made in the file binary_search_tree.hpp) or as a standalone class?

@VagelisKitsios VagelisKitsios linked a pull request Nov 25, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants