Generating restricted classes of involutions, Bell and Stirling permutations

https://doi.org/10.1016/j.ejc.2009.03.028Get rights and content
Under an Elsevier user license
open archive

Abstract

We present a recursive generating algorithm for unrestricted permutations which is based on both the decomposition of a permutation as a product of transpositions and that as a union of disjoint cycles. It generates permutations at each recursive step and slight modifications of it produce generating algorithms for Bell permutations and involutions. Further refinements yield algorithms for these classes of permutations subject to additional restrictions: a given number of cycles or/and fixed points. We obtain, as particular cases, generating algorithms for permutations counted by the Stirling numbers of the first and second kind, even permutations, fixed-point-free involutions and derangements. All of these algorithms run in constant amortized time.

Cited by (0)