23.11.2014 Views

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Recursive Bottom-Up Heap Construction<br />

We can also describe bottom-up heap construction as a recursive algorithm, as<br />

shown <strong>in</strong> Code Fragment 8.16, which we call by pass<strong>in</strong>g a list stor<strong>in</strong>g the keyvalue<br />

pairs for which we wish to build a heap.<br />

Code Fragment 8.16: Recursive bottom-up heap<br />

construction.<br />

493

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

Saved successfully!

Ooh no, something went wrong!