Gray code for derangements

被引:22
作者
Baril, JL [1 ]
Vajnovszki, V [1 ]
机构
[1] Univ Bourgogne, CNRS, LE21, UMR 5158, F-21078 Dijon, France
关键词
restricted permutations; gray codes; generating algorithms;
D O I
10.1016/j.dam.2003.06.002
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
We give a Gray code and constant average time generating algorithm for derangements, i.e., permutations with no fixed points. In our Gray code, each derangement is transformed into its successor either via one or two transpositions or a rotation of three elements. We generalize these results to permutations with number of fixed points bounded between two constants. (C) 2003 Elsevier B.V. All rights reserved.
引用
收藏
页码:207 / 221
页数:15
相关论文
共 18 条