Generation of Permutations in Lexicographic Order (Algorithm R323)
CACM September, 1973
Roy, M. K.
