Generation of Permutations Lexicogrphically





Reference: Alan Tucker, Applied Combinatorics, Second Edition, pp. 216-218.