In this paper we treat the static dictionary problem, very well known in computer science. It consists in storing a set S of m elements in the range [1 ... n] so that membership queries on S's elements can be handled in O(1) time. It can be approached as a table compression problem in which a size n table has m ones and the other elements are zeros. We focus our attention on sparse case (m much less than n). We use a simple algorithm to solve the problem and make an average-case analysis of the total space required when the input derives from uniform probability distribution. We also find some conditions able to minimize storage requirements. We then propose and analyze a new algorithm able to reduce storage requirements drastically to O(m(4/3)).

Average case analysis for a simple compression algorithm / D. MERLINI; R. SPRUGNOLI; M. VERRI;. - In: ALGORITHMICA. - ISSN 0178-4617. - STAMPA. - 22:(1998), pp. 585-599. [10.1007/PL00009242]

Average case analysis for a simple compression algorithm

MERLINI, DONATELLA;SPRUGNOLI, RENZO;VERRI, MARIA CECILIA
1998

Abstract

In this paper we treat the static dictionary problem, very well known in computer science. It consists in storing a set S of m elements in the range [1 ... n] so that membership queries on S's elements can be handled in O(1) time. It can be approached as a table compression problem in which a size n table has m ones and the other elements are zeros. We focus our attention on sparse case (m much less than n). We use a simple algorithm to solve the problem and make an average-case analysis of the total space required when the input derives from uniform probability distribution. We also find some conditions able to minimize storage requirements. We then propose and analyze a new algorithm able to reduce storage requirements drastically to O(m(4/3)).
1998
22
585
599
D. MERLINI; R. SPRUGNOLI; M. VERRI;
File in questo prodotto:
File Dimensione Formato  
r5.pdf

Accesso chiuso

Tipologia: Versione finale referata (Postprint, Accepted manuscript)
Licenza: Tutti i diritti riservati
Dimensione 283.53 kB
Formato Adobe PDF
283.53 kB Adobe PDF   Richiedi una copia

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

Utilizza questo identificatore per citare o creare un link a questa risorsa: https://hdl.handle.net/2158/308778
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 1
  • ???jsp.display-item.citation.isi??? 1
social impact