English

Adaptive Search over Sorted Sets

Data Structures and Algorithms 2015-02-16 v1

Abstract

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.

Keywords

Cite

@article{arxiv.1502.03845,
  title  = {Adaptive Search over Sorted Sets},
  author = {Biagio Bonasera and Emilio Ferrara and Giacomo Fiumara and Francesco Pagano and Alessandro Provetti},
  journal= {arXiv preprint arXiv:1502.03845},
  year   = {2015}
}

Comments

9 pages

R2 v1 2026-06-22T08:28:47.296Z