RosettaCodeData/Task/Sorting-algorithms-Permutat.../0DESCRIPTION

7 lines
244 B
Plaintext

{{Sorting Algorithm}}Permutation sort, which proceeds by generating the possible permutations of the input array/list until discovering the sorted one.
Pseudocode:
'''while not''' InOrder(list) '''do'''
nextPermutation(list)
'''done'''