Below are the best resource for getting a great understanding of Union-find data structure
https://www.cse.ust.hk/~dekai/271/notes/L09/L09.pdf -- for union-find data structure
https://www.cse.ust.hk/~dekai/271/notes/L08/L08.pdf -- for Kruskal's algorithms which uses the union-find data structure
64.3k questions
77.9k answers
244k comments
80.0k users