The Computer Journal · 2004 · 20 citations · 0 references
ComputingComputer ScienceAlgorithmsCombinatoricsPattern GenerationPermutation GenerationPermutations
This paper presents a loopless algorithm to generate all permutations of a multiset. Each is obtained from its predecessor by making one transposition. It differs from previous such algorithms by using an array for the permutations but requiring storage only linear in its length.