首页 | 本学科首页   官方微博 | 高级检索  
     检索      


Gray code for derangements
Authors:J-LJean-Luc Baril and Vincent Vajnovszki
Institution:

LE2I-UMR CNRS 5158, Université de Bourgogne, B.P. 47 870, 21078, Dijon Cedex, France

Abstract: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.
Keywords:Restricted permutations  Gray codes  Generating algorithms
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号