08.06.2015 Views

A Simple and Efficient Union-Find-Delete Algorithm - Corelab

A Simple and Efficient Union-Find-Delete Algorithm - Corelab

A Simple and Efficient Union-Find-Delete Algorithm - Corelab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Union</strong> <strong>Find</strong><br />

data structure<br />

Maintain a collection of disjoint sets under the<br />

operations:<br />

Makeset(a) – create new set for element a<br />

<strong>Union</strong>(A, B) – destructive union of sets A <strong>and</strong> B<br />

<strong>Find</strong>(a) – find the set containing a

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!