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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tree of size > 4 :<br />

<strong>Find</strong> a leaf, switch elements with the leaf node<br />

<strong>Delete</strong> the leaf node<br />

Update additional lists<br />

If the tree is not reduced as the result of the<br />

deletion apply local rebuild to the parent of<br />

the deleted node (or the root)

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

Saved successfully!

Ooh no, something went wrong!