TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The case for a learned sorting algorithm

72 点作者 cyb_超过 4 年前

5 条评论

0-_-0超过 4 年前
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 未加载
smusamashah超过 4 年前
&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 未加载
glebshevchuk超过 4 年前
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?
edejong超过 4 年前
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 未加载
jl2718超过 4 年前
tl,dr: linear spline fitting to approximate a CDF and then recursive bucket sort similar to radix.