arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.03290cs.DS
收藏

击败重复:LearnedSort算法的重新设计

Defeating duplicates: A re-design of the LearnedSort algorithm

Ani Kristo, Kapil Vaidya, Tim Kraska

摘要:

LearnedSort是一种新的排序算法,与传统方法不同,它使用快速ML模型来提高排序速度。模型学习估计输入的分布,并通过预测其经验累积分布函数(eCDF)值来按排序顺序排列键。与最先进的排序算法相比,LearnedSort在几个数据集上表现出了出色的性能,无论是合成的还是真实的。然而,考虑到eCDF模型的性质,当输入数据包含大量重复密钥(即,重复)。这项工作深入分析了这种情况,并介绍了LearnedSort 2.0:算法的重新设计,解决了这个问题,使算法保持领先优势,即使是高重复输入。我们对大量不同数据集的广泛基准测试表明,新设计的排序率比原始版本高得多:高重复数据集平均提高4.78倍,低重复数据集平均提高1.60倍,同时在排序算法中处于领先地位。

英文摘要:

LearnedSort is a novel sorting algorithm that, unlike traditional methods, uses fast ML models to boost the sorting speed. The models learn to estimate the input's distribution and arrange the keys in sorted order by predicting their empirical cumulative distribution function (eCDF) values. LearnedSort has shown outstanding performance compared to state-of-the-art sorting algorithms on several datasets, both synthetic and real. However, given the nature of the eCDF model, its performance is affected in the cases when the input data contains a large number of repeated keys (i.e., duplicates). This work analyzes this scenario in depth and introduces LearnedSort 2.0: a re-design of the algorithm that addresses this issue and enables the algorithm to maintain the leading edge even for high-duplicate inputs. Our extensive benchmarks on a large set of diverse datasets demonstrate that the new design performs at much higher sorting rates than the original version: an average of 4.78x improvement for high-duplicate datasets, and 1.60x for low-duplicate datasets while taking the lead among sorting algorithms.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑