21
Views
0
CrossRef citations to date
0
Altmetric
Original Articles

Efficient enumeration of cyclic permutations in situ

Pages 121-129 | Received 20 Oct 1988, Published online: 08 May 2007
 

Abstract

A permutation P = P1P2P3…Pn of n distinct marks may be written as

where Pi = ρ(i). A permutation is called cyclic if it contains only one cycle, i. e. ρn(i) = i. In this paper, an efficient algorithm for generating all cyclic permutations of length n is derived, and its correctness is proven. Its average time complexity for generating a cyclic permutation is θ(3), while its space complexity is θ(n). Some interesting results are also provided.

C.R. Categories:

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.