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

21.3-1 solution incorrect and incomplete #492

Open
rb05751 opened this issue Dec 21, 2023 · 0 comments
Open

21.3-1 solution incorrect and incomplete #492

rb05751 opened this issue Dec 21, 2023 · 0 comments

Comments

@rb05751
Copy link

rb05751 commented Dec 21, 2023

I noticed that for the solution to problem 21.3-1, only the resulting data structure was provided but the data structure doesn't show the path compression done and it also has 1 as the representative node for the set. It doesn't provide the answers returned by the 2 find set calls either.

The representative node should be 16 for the entire set and the two find-set operations should be included in modifying the tree via path compression.

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

1 participant