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

1.3.5 Generating Subsets 1.3.5 Generating Subsets INPUT OUTPUT Input Description: An integer n . Problem: Generate (1) all, or (2) a random, or (3) the next subset of the integers 1 to n . Implementations ● Nijenhuis and Wilf: Combinatorial Algorithms (FORTRAN) (rating 8) ● Combinatorica (Mathematica) (rating 7) ● Frank Ruskey's Combinatorial Generation Resources (Pascal) (rating 7) ● Netlib / TOMS -- Collected Algorithms of the ACM (FORTRAN) (rating 3) Related Problems file:///E|/WEBSITE/FILES/GSUBSETS.HTM (1 of 2) [19/1/2003 1:37:19]

1.3.5 Generating Subsets ● Generating Partitions ● Generating Permutations ● Random Number Generation ● Set Data Structures Go to the corresponding chapter in the book About the Book Send us Mail Go to Main Page This page last modified on Tue Jun 03, 1997 . file:///E|/WEBSITE/FILES/GSUBSETS.HTM (2 of 2) [19/1/2003 1:37:19]

1.3.5 Generating Subsets<br />

1.3.5 Generating Subsets<br />

INPUT OUTPUT<br />

Input Description: An integer n .<br />

Problem: Generate (1) all, or (2) a random, or (3) the next subset of the integers 1 to n .<br />

Implementations<br />

● Nijenhuis and Wilf: Combinatorial <strong>Algorithm</strong>s (FORTRAN) (rating 8)<br />

● Combinatorica (Mathematica) (rating 7)<br />

● Frank Ruskey's Combinatorial Generation Resources (Pascal) (rating 7)<br />

● Netlib / TOMS -- Collected <strong>Algorithm</strong>s of the ACM (FORTRAN) (rating 3)<br />

Related Problems<br />

file:///E|/WEBSITE/FILES/GSUBSETS.HTM (1 of 2) [19/1/2003 1:37:19]

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

Saved successfully!

Ooh no, something went wrong!