12.07.2015 Views

Heap sort and complexity, Disjoint Union & Find, Complexity ...

Heap sort and complexity, Disjoint Union & Find, Complexity ...

Heap sort and complexity, Disjoint Union & Find, Complexity ...

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.

Chapter 2: Elementary Data StructuresIf i is the root of the tree then COUNT(i) = number of nodesin that tree. COUNT can be maintained in the PARENT fieldas a negative number.

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

Saved successfully!

Ooh no, something went wrong!