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.

Code Fragment 6.5:<br />

ADT.<br />

<strong>Java</strong> <strong>in</strong>terface for the node list<br />

Yet Another Deque Adapter<br />

With respect to our discussion of the node list ADT, we note that this ADT is<br />

sufficient to def<strong>in</strong>e an adapter class for the deque ADT, as shown <strong>in</strong> Table 6.3.<br />

Table 6.3:<br />

node list.<br />

Realization of a deque by means of a<br />

332

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

Saved successfully!

Ooh no, something went wrong!