Re:Is this the simplest (and most surprising) sorting algori...
by a1369209993 on Wednesday October 06, 2021 @09:44PM
(#28780809)
Fun fact: Fisher-Yates samples a uniform distribution over permutations and is therefor capable of producing any permutation, so you can sort any array in linear time using Fisher-Yates with its RNG replaced by a appropriate oracle. (So the complexity of sorting a array mostly reduces to the complexity of determining which permutation it's in relative to a sorted version.)
[ Parent
| on HN ]
There are no comments on this comment yet.