RosettaCodeData/Task/Sorting-algorithms-Permutat.../00-TASK.txt

14 lines
316 B
Plaintext

{{Sorting Algorithm}}
[[Category:Sorting]]
{{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>