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

Disjoint Set Path Compression #2

Open
vzyrianov opened this issue Jul 2, 2019 · 0 comments
Open

Disjoint Set Path Compression #2

vzyrianov opened this issue Jul 2, 2019 · 0 comments

Comments

@vzyrianov
Copy link
Member

vzyrianov commented Jul 2, 2019

Optimize the GetSet function by making each node reached along the traversal point directly to the root node to shorten subsequent traversals.

@vzyrianov vzyrianov changed the title Optimize Disjoint Set Disjoint Set Path Compression Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant