1.3.4 Generating Permutations
INPUT OUTPUT
Input Description:
An integer
n
.
Problem:
Generate (1) all, or (2) a random, or (3) the next permutation
of length
n
.
Implementations
Frank Ruskey's Combinatorial Generation Resources (Pascal) (rating 8)
Nijenhuis and Wilf: Combinatorial Algorithms (FORTRAN) (rating 8)
Combinatorica (Mathematica) (rating 7)
The Stanford GraphBase (C) (rating 5)
Related Problems
Calendrical Calculations
Generating Graphs
Generating Partitions
Generating Subsets
Random Number Generation
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
.