Skip to content

Commit b00cf3a

Browse files
committed
docs: fix phrasing
1 parent f09df8f commit b00cf3a

File tree

1 file changed

+3
-2
lines changed
  • src/main/java/dataStructures/disjointSet

1 file changed

+3
-2
lines changed

src/main/java/dataStructures/disjointSet/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
## Background
44

5-
A disjoint-set structure also known as a union-find or merge-find set, is a data structure
6-
keeps track of a partition of a set into disjoint (non-overlapping) subsets.
5+
A disjoint-set structure also known as a union-find or merge-find set, is a data structure that tracks a set of elements
6+
partitioned into a number of disjoint (non-overlapping) subsets. It is also commonly used to check for connectivity
7+
(e.g. if two objects are 'grouped' together or belong to some component).
78

89
In CS2040s, this is introduced in the context of checking for dynamic connectivity. For instance, Kruskal's algorithm
910
in graph theory to find minimum spanning tree of a graph utilizes disjoint set to efficiently

0 commit comments

Comments
 (0)