mirror of
https://github.com/dholerobin/Lecture_Notes.git
synced 2025-07-01 04:56:29 +00:00
Update DSU.md
This commit is contained in:
parent
d852b963bf
commit
e4e9c3439f
@ -130,7 +130,7 @@ This is too much. Right? What else can we do?
|
||||
|
||||
We have a technique named **"Path compression"**, which burns this time to $O(log^*N)$. $log^*N$ is iterated logarithm-number of time you have to apply $log$ to $N$ before the result is less than or equal to 1.
|
||||
|
||||
The idea of the Path compression is: **It re-connects every vertex to the root vertex directly rather than by a path**.
|
||||
The idea of the Path compression is: **It re-connects every vertex to the root vertex directly, rather than by a path**.
|
||||
|
||||
If we apply $\text{Find}(d)$ operation with the path compression, then the following thing will happen.
|
||||

|
||||
|
Loading…
x
Reference in New Issue
Block a user