Cardinality Estimation

Given a multiset of (possibly hashed) values, estimate the number of distinct elements of the multiset. Of interest is minimizing storage usage.

Parameters

  • NN: number of values in multiset
  • nn: cardinality of multiset (not known)

Related Problems


Filters

Computational Model

Randomization

Approximation

Algorithms Table

Displaying 5 of 5 algorithms

See more
HyperLogLog++2014O(N)O(N)O(ϵ2log(logn))+logn)O(\epsilon^{-2}\log(\log n))+\log n)
HyperLogLog algorithm2007O(N)O(N)O(ϵ2log(logn))+logn)O(\epsilon^{-2}\log(\log n))+\log n)
LogLog algorithm2003O(N)O(N)O(loglogn)O(\log \log n)
Flajolet–Martin algorithm1984O(N)O(N)O(logn)O(\log n)
Naive solution1940O(N)O(N)O(n)O(n)

Reductions Table

Insuffient Data to display table

Other relevant algorithms

Insuffient Data to display table