Skip to main content

Advertisement

Log in

Average-Case Analysis for a Simple Compression Algorithm

  • Published:
Algorithmica Aims and scope Submit manuscript

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 \(\ll\) 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 ) .

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Additional information

Received December 1, 1997; revised March 1, 1998.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Merlini, D., Sprugnoli, R. & Verri, M. Average-Case Analysis for a Simple Compression Algorithm. Algorithmica 22, 585–599 (1998). https://doi.org/10.1007/PL00009242

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/PL00009242