Publications

Adaptive search over sorted sets

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. Wrt 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, ie, 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.

Date
2015
Authors
Biagio Bonasera, Emilio Ferrara, Giacomo Fiumara, Francesco Pagano, Alessandro Provetti
Journal
Journal of Discrete Algorithms
Volume
30
Issue
January 2015
Pages
128-133
Publisher
Elsevier