RosettaCodeData/Task/Sorting-algorithms-Permutation-sort/00DESCRIPTION
2016-12-05 22:15:40 +01:00

12 lines
294 B
Text

{{Sorting Algorithm}}
{{omit from|GUISS}}
;Task:
Implement a 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'''
<br><br>