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.

objects with the element names, <strong>in</strong>stead of with actual<br />

references to the element objects.<br />

The reason this structure is called the edge list structure is that the simplest <strong>and</strong><br />

most common implementation of the edge collection E is with a list. Even so, <strong>in</strong><br />

order to be able to conveniently search for specific objects associated with edges,<br />

we may wish to implement E with a dictionary (whose entries store the element as<br />

the key <strong>and</strong> the edge as the value) <strong>in</strong> spite of our call<strong>in</strong>g this the "edge list." We<br />

may also wish to implement the collection V as a dictionary for the same reason.<br />

Still, <strong>in</strong> keep<strong>in</strong>g with tradition, we call this structure the edge list structure.<br />

800

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

Saved successfully!

Ooh no, something went wrong!