Loopless Array Generation of Multiset Permutations

James F. Korsh

The Computer Journal · 2004 · 20 citations · 0 references

Concepts

Abstract

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.