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

排序集上的自适应搜索

Adaptive Search over Sorted Sets

Biagio Bonasera, Emilio Ferrara, Giacomo Fiumara, Francesco Pagano, Alessandro Provetti

摘要:

我们回顾了经典的算法搜索排序集介绍了一种算法的改进,称为自适应搜索,它结合了插值搜索和二叉搜索的良好功能。W.r.t.插值搜索,仅引入恒定数量的额外比较。然而,在不同的输入数据分布下,我们的算法显示出与插值搜索相当的成本,即,最坏情况下的代价总是O(log n),就像二进制搜索一样。在来自大型数据集的基准测试中,无论是合成的还是现实生活中的,自适应搜索的时间和内存访问都比Santoro和Sidney的插值二进制搜索更好。

英文摘要:

We revisit the classical algorithms for searching over sorted sets to introduce an algorithm refinement, called Adaptive Search, that combines the good features of Interpolation search and those of Binary search. W.r.t. Interpolation search, only a constant number of extra comparisons is introduced. Yet, under diverse input data distributions our algorithm shows costs comparable to that of Interpolation search, i.e., O(log log n) while the worst-case cost is always in O(log n), as with Binary search. On benchmarks drawn from large datasets, both synthetic and real-life, Adaptive search scores better times and lesser memory accesses even than Santoro and Sidney's Interpolation-Binary search.

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

↑