Generating restricted classes of involutions, Bell and Stirling permutations

Maddalena Poneti, Vincent Vajnovszki
2010 European journal of combinatorics (Print)  
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
more » ... nts. 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.
doi:10.1016/j.ejc.2009.03.028 fatcat:tyh5ovhcaja7lgnov2ryl2tsri