You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After visualizing the behaviour of a TST data structure using this tool, I realized that my implementation of deletion is buggy.
_delete_fix keeps deleting nodes up to the root and while u has no children, but it doesn't consider the fact that the current node u may contain a value and thus is not to be deleted.
This may not be the only problem... !! I need to think about all possible cases very well. Have a look at the implementation by galles.
The text was updated successfully, but these errors were encountered:
nbro
changed the title
"Deletion" operation may not be implemented correctly
"Deletion" operation may not be implemented correctly in TST
Jan 8, 2017
After visualizing the behaviour of a TST data structure using this tool, I realized that my implementation of deletion is buggy.
_delete_fix
keeps deleting nodes up to the root and whileu
has no children, but it doesn't consider the fact that the current nodeu
may contain a value and thus is not to be deleted.This may not be the only problem... !! I need to think about all possible cases very well. Have a look at the implementation by galles.
The text was updated successfully, but these errors were encountered: