Dec 29, 2022 · 5 min readData Structure to find the connection between two objectsUnion Find algorithm tells you whether objects are connected or not with O(N) as worst complexity.