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.

Lecture 7 - elementary data structures<br />

● Search - O(1) expected, O(n) worst case<br />

● Insert - O(1) expected, O(n) worst case<br />

● Delete - O(1) expected, O(n) worst case<br />

● Min, Max and Predecessor, Successor expected and worst case<br />

Pragmatically, a hash table is often the best data structure to maintain a dictionary. However, we will not use it<br />

much in proving the efficiency of our algorithms, since the worst-case time is unpredictable.<br />

<strong>The</strong> best worst-case bounds come from balanced binary trees, such as red-black trees.<br />

Next: Lecture 8 - binary Up: No Title Previous: Lecture 6 - linear<br />

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

Mon Jun 2 09:21:39 EDT 1997<br />

file:///E|/LEC/LECTUR17/NODE7.HTM (13 of 13) [19/1/2003 1:34:42]

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

Saved successfully!

Ooh no, something went wrong!