complexitydsagraphs
Union-find is for connectivity, not path finding
Anonymous
Use union-find when operations only merge groups and ask whether two items share a group. Path compression and union by size keep repeated checks efficient. It doesn't maintain actual paths, and deleting an edge isn't a supported operation.
0