WOLFRAM|DEMONSTRATIONS PROJECT

Gray Indexed Minimum Change Permutation

​
offset
size of set
In a minimum change enumeration of permutations, all neighboring permutations differ by exactly one transposition of two elements. Minimum change permutations can be constructed from Gray coded mixed base indices.