Back to Search
Start Over
Ranking and unranking restricted permutations.
- Source :
-
Discrete Applied Mathematics . Oct2024, Vol. 355, p247-261. 15p. - Publication Year :
- 2024
-
Abstract
- We provide computationally efficient methods for unranking derangements and ménage permutations. That is, we provide a polynomial-time algorithm to extract the k th such permutation under the lexicographic ordering. More generally, we show that there exists a polynomial-time algorithm for unranking words in lexicographic order whenever there exists a polynomial-time algorithm for counting the number of such words with a given prefix. We use rook theory to give a polynomial-time algorithm for counting the number of derangements and ménage permutations with a given prefix and in turn use this to give an unranking algorithm. This has applications to combinatorics, probability, modeling, and data compression. [ABSTRACT FROM AUTHOR]
- Subjects :
- *POLYNOMIAL time algorithms
*DATA compression
*PERMUTATIONS
*COMBINATORICS
Subjects
Details
- Language :
- English
- ISSN :
- 0166218X
- Volume :
- 355
- Database :
- Academic Search Index
- Journal :
- Discrete Applied Mathematics
- Publication Type :
- Academic Journal
- Accession number :
- 177748341
- Full Text :
- https://doi.org/10.1016/j.dam.2024.05.010