TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The case for a learned sorting algorithm

72 pointsby cyb_over 4 years ago

5 comments

0-_-0over 4 years ago
I 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"
评论 #24830396 未加载
smusamashahover 4 years ago
&gt;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.<p>This is a lot
评论 #24826799 未加载
glebshevchukover 4 years ago
Can this approach be made more robust so it could be used in critical programs? Is there a way to formally verify performance of an approach like this?
edejongover 4 years ago
Is the paper &quot;NN-sort: Neural Network based Data Distribution-aware Sorting&quot; [1] not a year prior to the cited paper? It seems to discuss the same approach.<p>[1] NN-sort: Neural Network based Data Distribution-aware Sorting: <a href="https:&#x2F;&#x2F;arxiv.org&#x2F;pdf&#x2F;1907.08817.pdf" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;pdf&#x2F;1907.08817.pdf</a>
评论 #24826077 未加载
评论 #24826336 未加载
评论 #24826123 未加载
评论 #24825620 未加载
jl2718over 4 years ago
tl,dr: linear spline fitting to approximate a CDF and then recursive bucket sort similar to radix.