PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
June 1, 1990ACM Transactions on Database Systems506 citationsOpen Access

A linear-time probabilistic counting algorithm for database applications

KWKyu-Young WhangIBM (United States)BVBrad T. Vander-ZandenCornell UniversityHTHoward M. TaylorUniversity of Leeds

Key Points

Key points are not available for this paper at this time.

Abstract

We present a probabilistic algorithm for counting the number of unique values in the presence of duplicates. This algorithm has O ( q ) time complexity, where q is the number of values including duplicates, and produces an estimation with an arbitrary accuracy prespecified by the user using only a small amount of space. Traditionally, accurate counts of unique values were obtained by sorting, which has O ( q log q ) time complexity. Our technique, called linear counting , is based on hashing. We present a comprehensive theoretical and experimental analysis of linear counting. The analysis reveals an interesting result: A load factor (number of unique values/hash table size) much larger than 1.0 (e.g., 12) can be used for accurate estimation (e.g., 1% of error). We present this technique with two important applications to database problems: namely, (1) obtaining the column cardinality (the number of unique values in a column of a relation) and (2) obtaining the join selectivity (the number of unique values in the join column resulting from an unconditional join divided by the number of unique join column values in the relation to he joined). These two parameters are important statistics that are used in relational query optimization and physical database design.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Whang et al. (1990) studied this question.

synapsesocial.com/papers/69d952b000ab073a27836117https://doi.org/10.1145/78922.78925
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Proceedings of the 27th International Conference on Very Large Data Bases2001 · 845 citations
  2. 2Urn models and their application1977 · 705 citations
  3. 3An Introduction to the Theory of Statistics1973 · 1,468 citations
  4. 4An Introduction to Probability Theory and Its Applications.1967 · 6,201 citations
  5. 5Access path selection in a relational database management system1979 · 2,184 citations