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 delete too many break statements #2

Open
dmcmanam opened this issue Nov 3, 2017 · 1 comment
Open

AVL delete too many break statements #2

dmcmanam opened this issue Nov 3, 2017 · 1 comment

Comments

@dmcmanam
Copy link

dmcmanam commented Nov 3, 2017

Great idea trying to re-use the same rebalancing code in the AVL delete algorithm but it will not correctly handle Fibonacci trees although this is probably very rare in practice. The AVL delete conditions are described here (there are two additional cases to handle compared to insert):
http://adtinfo.org/libavl.html/Deleting-an-AVL-Node-Step-3-_002d-Update.html

@ignl
Copy link
Owner

ignl commented Jan 2, 2018

This might be useful for others who are looking to implement AVL trees thanks for pointing it out, I was not aware of that.

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

No branches or pull requests

2 participants