Is the paper "NN-sort: Neural Network based Data Distribution-aware Sorting" [1] not a year prior to the cited paper? It seems to discuss the same approach. [1] NN-sort: Neural Network based Data Distribution-aware Sorting: https://arxiv.org/pdf/1907.08817.pdf
The case for a learned sorting algorithm
11–20 of 23 posts
Re: The case for a learned sorting algorithm
#12>The results show that our approach yields an average 3.38x performance improvement over C++ STL sort, which is an optimized Quick- sort hybrid, 1.49x improvement over sequential Radix Sort, and 5.54x improvement over a C++ implementation of Tim- sort, which is the default sorting function for Java and Python. This is a lot
Re: The case for a learned sorting algorithm
#13>The results show that our approach yields an average 3.38x performance improvement over C++ STL sort, which is an optimized Quick- sort hybrid, 1.49x improvement over sequential Radix Sort, and 5.54x improvement over a C++ implementation of Tim- sort, which is the default sorting function for Java and Python. This is a lot
Would be curious: this performance result includes training time? I guess I should read the paper...
Re: The case for a learned sorting algorithm
#14Re: The case for a learned sorting algorithm
#15Re: The case for a learned sorting algorithm
#16I remember learning as part of my CS degree that knowing the distribution of your data allows you to sort it in N log(log(N)) instead of N log(N) (which assumes a comparison based sort), although back then it wasn't given such a fashionable name as "learned sort", and determining the distribution wasn't called "training"
Re: The case for a learned sorting algorithm
#17Re: The case for a learned sorting algorithm
#18I remember learning as part of my CS degree that knowing the distribution of your data allows you to sort it in N log(log(N)) instead of N log(N) (which assumes a comparison based sort), although back then it wasn't given such a fashionable name as "learned sort", and determining the distribution wasn't called "training"
If you know the distribution of your data (in the sense that you are guaranteed that each datapoint is iid with a distribution described by some known PDF f : R -> R), you can sort in O(N) with probability 1.
Re: The case for a learned sorting algorithm
#19Earlier quoted context omitted.
If you know the distribution of your data (in the sense that you are guaranteed that each datapoint is iid with a distribution described by some known PDF f : R -> R), you can sort in O(N) with probability 1.
That's almost never the case in practice. What distribution the data is drawn from on the other hand can often be known or approximated.
Re: The case for a learned sorting algorithm
#20Earlier quoted context omitted.
That's almost never the case in practice. What distribution the data is drawn from on the other hand can often be known or approximated.
What do you mean "is drawn from"? Isn't the previous condition a reasonable characterization of "you know what distribution it's drawn from"?