PDSA
latest
  • Quickstart
  • Cardinality
    • Linear Counter
    • Probabilistic Counter
    • HyperLogLog
  • Frequency
  • Membership
  • Rank
PDSA
  • Docs »
  • Cardinality
  • Edit on GitHub

CardinalityΒΆ

The cardinality is the number of distinct elements in a set.

Calculating the exact cardinality of a multiset requires an amount of memory proportional to the cardinality, which is impractical for very large data sets.

  • Linear Counter
    • Build a counter
    • Index element into the counter
    • Size of the counter in bytes
    • Length of the counter
    • Count of unique elements in the counter
  • Probabilistic Counter
    • Build a counter
    • Index element into the counter
    • Size of the counter in bytes
    • Length of the counter
    • Count of unique elements in the counter
  • HyperLogLog
    • Build a counter
    • Index element into the counter
    • Size of the counter in bytes
    • Length of the counter
    • Count of unique elements in the counter
Next Previous

© Copyright 2020 Andrii Gakhov Revision 0e1c58e5.

Built with Sphinx using a theme provided by Read the Docs.