what is the union by rank method?
Kruskal's concept
@mikkyimran
Do you know disjoint set union? Union by rank/size is just a faster implementation of DSU (disjoint set union).
https://cp-algorithms.com/data_structures/disjoint_set_union.html#toc-tgt-3
thanks but can you tell me where this method was taught in this course videos because i dont remember studying them.
I don’t know about the videos. Its a slight modification, You can study it on your own.