The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998 The.Algorithm.Design.Manual.Springer-Verlag.1998

18.04.2013 Views

Combinatorial Algorithms for Computers and Calculators Next: Algorithms from P to Up: Programs from Books Previous: Handbook of Data Structures Combinatorial Algorithms for Computers and Calculators Nijenhuis and Wilf [NW78] specializes in algorithms for constructing basic combinatorial objects such as permutations, subsets, and partitions. Such algorithms are often very short, but they are hard to locate and usually surprisingly subtle. Fortran programs for all of the algorithms are provided, as well as a discussion of the theory behind each of them. The programs are usually short enough that it is reasonable to translate them directly into a more modern programming language, as I did in writing Combinatorica (see Section ). Both random and sequential generation algorithms are provided. Descriptions of more recent algorithms for several problems, without code, are provided in [Wil89]. These programs are now available from our algorithm repository WWW site. We tracked them down from Neil Sloane, who had them on a magnetic tape, while the original authors did not! In [NW78], Nijenhuis and Wilf set the proper standard of statistically testing the output distribution of each of the random generators to establish that they really appear uniform. We encourage you to do the same before using these programs, to verify that nothing has been lost in transit. Programs Algorithms Mon Jun 2 23:33:50 EDT 1997 file:///E|/BOOK/BOOK5/NODE221.HTM [19/1/2003 1:32:26]

Algorithms from P to NP Next: Computational Geometry in C Up: Programs from Books Previous: Combinatorial Algorithms for Computers Algorithms from P to NP This algorithms text [MS91] distinguishes itself by including Pascal implementations of many algorithms, with careful experimental comparisons of different algorithms for such problems as sorting and minimum spanning tree, and heuristics for the traveling salesman problem. It provides a useful model for how to properly do empirical algorithm analysis. The programs themselves are probably best used as models. Interesting implementations include the eight-queens problem, plus fundamental graph and geometric algorithms. The programs in [MS91] have been made available by anonymous ftp from cs.unm.edu in directory /pub/moret_shapiro. Programs Algorithms Mon Jun 2 23:33:50 EDT 1997 file:///E|/BOOK/BOOK5/NODE222.HTM [19/1/2003 1:32:26]

Combinatorial <strong>Algorithm</strong>s for Computers and Calculators<br />

Next: <strong>Algorithm</strong>s from P to Up: Programs from Books Previous: Handbook of Data Structures<br />

Combinatorial <strong>Algorithm</strong>s for Computers and Calculators<br />

Nijenhuis and Wilf [NW78] specializes in algorithms for constructing basic combinatorial objects such<br />

as permutations, subsets, and partitions. Such algorithms are often very short, but they are hard to locate<br />

and usually surprisingly subtle. Fortran programs for all of the algorithms are provided, as well as a<br />

discussion of the theory behind each of them. <strong>The</strong> programs are usually short enough that it is reasonable<br />

to translate them directly into a more modern programming language, as I did in writing Combinatorica<br />

(see Section ). Both random and sequential generation algorithms are provided. Descriptions of more<br />

recent algorithms for several problems, without code, are provided in [Wil89].<br />

<strong>The</strong>se programs are now available from our algorithm repository WWW site. We tracked them down<br />

from Neil Sloane, who had them on a magnetic tape, while the original authors did not! In [NW78],<br />

Nijenhuis and Wilf set the proper standard of statistically testing the output distribution of each of the<br />

random generators to establish that they really appear uniform. We encourage you to do the same before<br />

using these programs, to verify that nothing has been lost in transit.<br />

Programs<br />

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

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

file:///E|/BOOK/BOOK5/NODE221.HTM [19/1/2003 1:32:26]

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

Saved successfully!

Ooh no, something went wrong!