I want to save a permutation of the length N
in less than N
Bytes. The permutation of length N
has the elements 1,2,3,....,N
.
The permutation has following preferences:
has only 1 Cycle
can be described via DI sequence and a rank permutation ranking with DI sequence
has a strength Next permutation/ranking with specific strength
Additional reading: Rank and unrank permutation with special properties
Is there a way to combine these preferences to minimize the possible permutations to rank? Or are there more preferences which can be used to describe the permutation in less Bytes than it is long?
My idea was to specify a subset of permutations and then Rank it, but iam failing to combine the preferences to create one subset defined through the preferences.