Copyright © 2004 Elsevier B.V. All rights reserved.
Constant time generation of derangements
Received 10 December 2002;
Revised 13 January 2004.
Communicated by L.A. Hemaspaandra
Available online 10 March 2004.
References and further reading may be available for this article. To view references and further reading you must purchase this article.
Abstract
This paper presents the first constant time generation algorithm for derangements—permutations with no fixed points. Each derangement is obtained from its predecessor by making either one transposition or one rotation of three elements. It also generalizes this to permutations with a bounded number of fixed points.
Author Keywords: Author Keywords: Algorithms; Combinatorial problems; Loopless; Derangements; Gray code; Fixed points







E-mail Article
Add to my Quick Links

Cited By in Scopus (2)






