Update DSU.md

This commit is contained in:
Aakash Panchal 2020-01-14 19:26:05 +05:30 committed by GitHub
parent d852b963bf
commit e4e9c3439f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
![enter image description here](https://lh3.googleusercontent.com/ltQXkpZAjEO543ibrVodpMMZp2IHXVJ7Rjxevm2ztJQAC67UnvBeMmwEoIB9qZ0_2PgpSs98nWV9)