Disjoint Set Union heuristics
DSU is one of the most elegant in implementation data structure and I've used in my competitive...
Tags: algorithms, programming, datastructures