Pairwise-Independent Affine-Hash Support-Size Estimator #
This module defines the zero-hitting probability affineHashHitProb R j T of a uniformly random
j-bit affine hash function on a finite set T ⊆ BitString R and proves that summing this
probability over j = 0, ..., R estimates ⌊log₂ |T|⌋ within [-1, +3].
Main definitions #
Cslib.Probability.affineHashHitProb: exact probability that a uniformly randomj-bit affine hash sends some element ofT ⊆ BitString Rto0^j.
Main results #
Cslib.Probability.affineHashHitProb_emptyCslib.Probability.affineHashHitSum_bounds:⌊log₂ #T⌋ - 1 ≤ ∑_{j=0}^R Pr[0 ∈ h_j(T)] ≤ ⌊log₂ #T⌋ + 3for every nonemptyT ⊆ BitString R.
: Pairwise-Independent Affine-Hash Support-Size Estimator #
affineHashHitProb R j T is 0 when T = ∅.
theorem Cslib.Probability.affineHashHitSum_bounds (R : ℕ) {T : Finset (BitString R)} (hT : T.Nonempty) :
Affine-hash support-size estimator: for every nonempty T ⊆ BitString R,
⌊log₂ #T⌋ - 1 ≤ ∑_{j=0}^R Pr[0 ∈ affineHash_j(T)] ≤ ⌊log₂ #T⌋ + 3.