The numbering starts at 0 (rounds) and runs to n! - 1 (back rounds).
Numbering is in "reverse colex order" (Knuth 7.2.1.2); i.e. if we reflect
each row from right to left they would be in reverse lexicographic order.
The rank is computed by counting the number of "inversions" to the left of
each position (the left inversion count, l).
The vector of counts is then interpreted as a single number using the
Factorial number system.
Computes the rank of a Row.
The numbering starts at
0(rounds) and runs ton! - 1(back rounds). Numbering is in "reverse colex order" (Knuth 7.2.1.2); i.e. if we reflect each row from right to left they would be in reverse lexicographic order.The rank is computed by counting the number of "inversions" to the left of each position (the left inversion count, l). The vector of counts is then interpreted as a single number using the Factorial number system.
This scheme has been chosen for compatibility with the data tables that are produced by Philip Saddleton's "StedTurn" software.