News for hackers. Stuff that matters.
Re:Neural programmer better than Quicksort by fdupress on Friday July 10, 2020 @05:06AM (#23789556)
Checking that the output is sorted is the easy part.

Checking that the output is a (optionally stable) permutation of the input is the hard part. You can't do that dynamically if you have, for example, overwritten your input by sorting in place. And making a copy of your input is only going to be affordable in very specific and small instances on which you might as well just run a well-understood algorithm.

Re:Neural programmer better than Quicksort by ogogmad on Friday July 10, 2020 @05:53AM (#23789769)
It looks like their algorithm can only modify the input list by swapping elements. This is guaranteed to result in a permutation.