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 logn) while the worst-case cost is always in O(logn), 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.

Adaptive search over sorted sets / B. Bonasera, E. Ferrara, G. Fiumara, F. Pagano, A. Provetti. - In: JOURNAL OF DISCRETE ALGORITHMS. - ISSN 1570-8667. - 30:(2015), pp. 128-133. [10.1016/j.jda.2014.12.007]

Adaptive search over sorted sets

F. Pagano;A. Provetti
2015

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 logn) while the worst-case cost is always in O(logn), 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.
Sorting; Searching sorted sets
Settore INF/01 - Informatica
Settore ING-INF/05 - Sistemi di Elaborazione delle Informazioni
2015
Article (author)
File in questo prodotto:
File Dimensione Formato  
19-bonasera-JDA12.pdf

accesso aperto

Tipologia: Post-print, accepted manuscript ecc. (versione accettata dall'editore)
Dimensione 107.59 kB
Formato Adobe PDF
107.59 kB Adobe PDF Visualizza/Apri
19bis-bonasera-adaptive_search-JDA15.pdf

accesso aperto

Tipologia: Publisher's version/PDF
Dimensione 210.72 kB
Formato Adobe PDF
210.72 kB Adobe PDF Visualizza/Apri
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2434/773479
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 5
  • ???jsp.display-item.citation.isi??? 5
social impact