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.

Interest<strong>in</strong>g problems that deal with reachability <strong>in</strong> a digraph <strong>in</strong>clude the<br />

follow<strong>in</strong>g:<br />

• Given vertices u <strong>and</strong> v, determ<strong>in</strong>e whether u reaches v.<br />

• F<strong>in</strong>d all the vertices of that are reachable from a given vertex s.<br />

• Determ<strong>in</strong>e whether is strongly connected.<br />

• Determ<strong>in</strong>e whether is acyclic.<br />

• Compute the transitive closure of<br />

In the rema<strong>in</strong>der of this section, we explore some efficient algorithms for solv<strong>in</strong>g<br />

these problems.<br />

13.4.1 Travers<strong>in</strong>g a Digraph<br />

829

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

Saved successfully!

Ooh no, something went wrong!