Skip to content

Commit 045545a

Browse files
committed
.
Signed-off-by: AilinKid <[email protected]>
1 parent 9ba0b7c commit 045545a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/util/disjointset/int_set.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m *SimpleIntSet) FindRoot(a int) int {
4040
if a == m.parent[a] {
4141
return a
4242
}
43-
// path short compression
43+
// Path compression, which leads the time complexity to the inverse Ackermann function.
4444
m.parent[a] = m.FindRoot(m.parent[a])
4545
return m.parent[a]
4646
}

0 commit comments

Comments
 (0)