Skip to content

Conversation

MrYangxf
Copy link

Disjoint-set operations:

  1. quickly unites two sets into a new set, requiring O(1) time.
  2. quickly query two elements whether contained in the same set, requiring about O(1) time.

Copy link
Member

@yanglbme yanglbme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yanglbme yanglbme merged commit 822c91c into TheAlgorithms:Development Mar 15, 2019
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 this pull request may close these issues.

2 participants