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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Implement<strong>in</strong>g a Dictionary with an Unordered List<br />

We assume that the list S used for a list-based dictionary is implemented with a<br />

doubly l<strong>in</strong>ked list. We give descriptions of the ma<strong>in</strong> dictionary methods for a listbased<br />

implementation <strong>in</strong> Code Fragment 9.7. In this simple implementation, we<br />

don't assume that an entry stores a reference to its location <strong>in</strong> S.<br />

Code Fragment 9.7: Some of the ma<strong>in</strong> methods<br />

for a dictionary D, implemented with an unordered list<br />

SH.<br />

548

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

Saved successfully!

Ooh no, something went wrong!