A CAT algorithm for generating permutati
β
Scott Effler; Frank Ruskey
π
Article
π
2003
π
Elsevier Science
π
English
β 103 KB
We develop a constant amortized time (CAT) algorithm for generating permutations with a given number of inversions. We also develop an algorithm for the generation of permutations with given index.