Loading topic
(u, v). That format is easy to write down, but it is slow to answer "who are the neighbors of u?" An adjacency list answers2 min readfind follows parent pointers to a root and union links one root under another. You should also be comfortable with Big-O notation. Without the two techniques covered here, union-find can do worse than the BFS appro2 min read