We revisit the classical algorithms for searching over sorted sets and introduce a new algorithm, called adaptive search, that combines the good features of Interpolation search and those of Binary search. W.r.t. Insertion sort, only a constant number of extra comparisons is introduced. Yet, under several relevant input data distributions our algorithm shows average case cost 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. This result compares well with the traditional result of Santoro and Sidney Interpolation-Binary Search and the recent approach of Demaine et al. on searching non-independent data.

Flexible interpolated-binary search over sorted sets / B. Bonasera, F. Pagano, A. Provetti. ((Intervento presentato al convegno Italian Conference on Theoretical Computer Science (ICTCS) tenutosi a Cremona nel 2009.

Flexible interpolated-binary search over sorted sets

F. Pagano
Secondo
;
A. Provetti
Ultimo
2009

Abstract

We revisit the classical algorithms for searching over sorted sets and introduce a new algorithm, called adaptive search, that combines the good features of Interpolation search and those of Binary search. W.r.t. Insertion sort, only a constant number of extra comparisons is introduced. Yet, under several relevant input data distributions our algorithm shows average case cost 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. This result compares well with the traditional result of Santoro and Sidney Interpolation-Binary Search and the recent approach of Demaine et al. on searching non-independent data.
set-2009
sorting ; sorted-sets
Settore INF/01 - Informatica
Politecnico di Milano
Flexible interpolated-binary search over sorted sets / B. Bonasera, F. Pagano, A. Provetti. ((Intervento presentato al convegno Italian Conference on Theoretical Computer Science (ICTCS) tenutosi a Cremona nel 2009.
Conference Object
File in questo prodotto:
File Dimensione Formato  
ictcs2009.pdf

accesso aperto

Tipologia: Publisher's version/PDF
Dimensione 106.2 kB
Formato Adobe PDF
106.2 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/148238
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact