Electric Circuit Procedure
- Start with an initial partition into singleton sets.
- P = { {a}, {b}, {c}, {d}, {e} }
- Process one wire at a time. WIRE(a, b)
- Perform FIND operations on each element, then UNION on the results: UNION(FIND(a),FIND(b))
- Continue until all wires have been processed.