Generate all permutations of (1, ..., K)
It generates a matrix containing all permutations of (1, ..., K).
generatePermutations(K)
K |
integer value of K. |
A matrix of dimension K! x K with generated permutations in rows.
Arnošt Komárek arnost.komarek[AT]mff.cuni.cz
generatePermutations(1) generatePermutations(2) generatePermutations(3) generatePermutations(4)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.