description: The Disjoint Set Union (DSU) data structure allows you to add edges to an initially empty graph and test whether two vertices of the graph are connected.
---
import { Problem } from "../models";
export const metadata = {
problems: {
sample: [
new Problem("YS", "Union Find", "unionfind", "Easy", false, []),
],
general: [
new Problem("Gold", "Mootube", "789", "Easy", false, [], "same as [CSES Road Construction](https://cses.fi/problemset/task/1676)"),
new Problem("Gold", "Closing the Farm", "646", "Easy", false, [], "similar to [CSES Network Breakdown](https://cses.fi/problemset/task/1677)"),
new Problem("Gold", "Favorite Colors", "1042", "Hard", false, [], ""),