-
-
Notifications
You must be signed in to change notification settings - Fork 40
UnionFind/Disjoint Set #215
Copy link
Copy link
Open
Labels
AssignedIssue is assignedIssue is assignedHACKTOBERFESTThis issue is applicable for Hacktoberfest 2022This issue is applicable for Hacktoberfest 2022
Metadata
Metadata
Assignees
Labels
AssignedIssue is assignedIssue is assignedHACKTOBERFESTThis issue is applicable for Hacktoberfest 2022This issue is applicable for Hacktoberfest 2022
Title: Union Find
Directory: Graph
Name: Daniel Yu-cua
Define You:
Problem
Write to program in Python to implement a Disjoint set also known as Union Find. A disjoint set is a data structure that stores a collection of "disjoint" (non-overlapping) sets. This data structure is useful to determine whether two vertices of a graph belong to the same component, or whether an edge between them would result in a cycle. It is a key component in implementing Kruskal's algorithm to find the minimum spanning tree.
Type of change
What sort of change have you made:
Input:
Output:
@prathimacode-hub Please assign me this issue, I'll be contributing as a Hacktoberfest 2022 participant.