18.04.2013 Views

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

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.

Priority Queues<br />

Repeatedly traversing left (or right) pointers until we hit a leaf takes time proportional to the height of the tree, or if the<br />

tree is balanced. <strong>The</strong> insert operation can be implemented exactly as binary tree insertion. Delete-Min can be implemented by<br />

finding the minimum element and then using standard binary tree deletion. It follows that each of the operations can be<br />

performed in time.<br />

Priority queues are very useful data structures. Indeed, they are the hero of the war story described in Section . A complete<br />

set of priority queue implementations is presented in Section .<br />

Next: Specialized Data Structures Up: Fundamental Data Types Previous: Binary Search Trees<br />

<strong>Algorithm</strong>s<br />

Mon Jun 2 23:33:50 EDT 1997<br />

file:///E|/BOOK/BOOK/NODE27.HTM (2 of 2) [19/1/2003 1:28:25]

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

Saved successfully!

Ooh no, something went wrong!