29
Views
3
CrossRef citations to date
0
Altmetric
Original Articles

Lexicographic enumeration, ranking and unranking of permutations of r out of n objects

Pages 1-7 | Received 01 Apr 1986, Published online: 19 Mar 2007
 

Abstract

Let P(n,r) = {P n , r |P n , r = p 1 p 2p r and p 1,p 2,…,p r Z and p 1p j if ij}, where Z = {1,2,…,n}. An θ(r) algorithm for enumerating P(n,r) in the lexicographic order is presented. The mapping from P(n,r) to the set of their inversions and the inverse mapping are established by a pair of coding and decoding algorithms. Furthermore, ranking and unranking algorithms are also provided for establishing the mappings between P(n,r) and Z = {1,2,…,|P(n,r)|}. Indeed, the enumeration, ranking and unranking algorithms are more general than known algorithms.

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.