UVa Online Judge Challenge "572"
Although BFS and DFS were recommended solutions to the problem, I saw an opportunity to solve this problem using Disjoint Sets. The virtual judge run time was 0.050s.

Term Archive
Entries connected to "Disjoint Set", gathered in one place for quick browsing.
More to Browse
Relationship Map
Use the relationship map to follow related categories, tags, and entries beyond the current list.
Matching entries