Generate Permutations
What Type?
(Choose one)
All permutations of {1,2,...,
n
}.
All
k
-permutations of {1,2,...,
n
}.
All permutations by Transpositions
Input:
(1 <=
k
<=
n
<= 20)
n
=
k
=
Output
(Choose one or more):
One line notation
Permutation matrix (chess board)
Notes:
For permutation matrix output
n
<= 8 is recommended.
This page created by
Frank Ruskey
, June 1996.