View the model
Download the model
Generating all permutations on N items in lexico increasing order; We do not use the Heap method, but rather generate in lexicographic order; Ref: Heap, B. R. (1963). "Permutations by Interchanges". The Computer Journal. 6 (3): 293–4.. Sedgewick, R. (1977). "Permutation Generation