© 1981 by British Computer Society
Some experiences with the Johnson-Trotter permutation generation algorithm

1 Computer Science Department, Southern Illinois University, Carbondale, USA, 2 Computer Science Department, University of Waterloo, Ontario, Canada
Some experiences with the Johnson-Trotter permutation generation algorithm are reported. A version which generates strings containing permutations as subsequences and has the offset maintenance removed is proposed. This version is faster than any other known algorithm and has indexing properties which make it of practical use.
Received April 1978. revised April 1979.
* Computer Science Department, Southern Illinois University, Carbondale, Illinois 62901, USA.
Computer Science Department, University of Waterloo Waterloo, Ontario N2L 3E5, Canada.