by michaelcampbell · 15y ago · 0 comments
What's nice about it is that it is deterministic yet ridiculously slow.
It can also be really easily implemented in Prolog[1] where you simply define what a permutation and being sorted means. After that you just search for a sorted permutation.
[1] http://rosettacode.org/wiki/Sorting_algorithms/Permutation_s...
http://en.wikipedia.org/wiki/Quarantine_%28Greg_Egan_novel%2...