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.

Topological Sorting<br />

(see Section ) and [Sed92] (see Section ). LEDA (see Section ) includes a linear-time<br />

implementation of topological sorting in C++.<br />

XTango (see Section ) is an algorithm animation system for UNIX and X-windows, which includes<br />

an animation of topological sorting.<br />

Combinatorica [Ski90] provides Mathematica implementations of topological sorting and other<br />

operations on directed acyclic graphs. See Section .<br />

Notes: Good expositions on topological sorting include [CLR90, Man89]. Brightwell and Winkler<br />

[BW91] proved that it is #P-complete to count the number of linear extensions of a partial order. <strong>The</strong><br />

complexity class #P includes NP, so any #P-complete problem is at least NP-hard.<br />

Related Problems: Sorting (see page ), feedback edge/vertex set (see page ).<br />

Next: Minimum Spanning Tree Up: Graph Problems: Polynomial-Time Previous: Connected<br />

Components<br />

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

Mon Jun 2 23:33:50 EDT 1997<br />

file:///E|/BOOK/BOOK4/NODE160.HTM (3 of 3) [19/1/2003 1:30:55]

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

Saved successfully!

Ooh no, something went wrong!