Probabilistic SimHash query-failure step in angular distance #
This module formalizes the SimHash LSH exponent bound ρ ≤ 1 / c and probabilistic
candidate-collision / query-failure step on unbucketed point-set filtering in angular distance
(after [Cha02] and [IM98]; not a bucketed sublinear approximate near-neighbour
data structure, tracked in #3361).
SimHash is (θ, c θ, 1 - θ / π, 1 - c θ / π)-sensitive for angular distance on nonzero vectors
(Cslib.Probability.isLocalitySensitive_simHash_subtype). Concavity of log yields ρ ≤ 1 / c
(Cslib.DataStructure.NearNeighbor.rho_simHash_le), table count
L < n ^ (1 / c) / (1 - θ / π) + 1 (numTables_simHash_lt), and unbucketed query failure at most
e⁻¹ + 1 / 3 (measureReal_query_simHash_eq_none_le). Word-RAM hash buckets, Gaussian seed
storage, and sublinear O(n ^ (1 / c)) query running time remain open in #3361.
Main results #
Cslib.DataStructure.NearNeighbor.rho_simHash_le: parameter-exponent stepρ(1 - θ / π, 1 - c θ / π) ≤ 1 / c.Cslib.DataStructure.NearNeighbor.measureReal_query_simHash_eq_none_le: probabilistic query-failure step≤ e⁻¹ + 1 / 3on unbucketedcandidatesfor SimHash.Cslib.DataStructure.NearNeighbor.numTables_simHash_lt: table-count boundL < n ^ (1 / c) / (1 - θ / π) + 1.
References #
Probabilistic query-failure step for SimHash on unbucketed point-set filtering in angular
distance (after [Cha02] and [IM98]; not a bucketed sublinear near-neighbour data
structure, #3361). On nonzero vectors of E with 0 < θ, 1 < c, c θ < π, p₁ = 1 - θ / π,
p₂ = 1 - c θ / π, k = numHashes n p₂, L = numTables n p₁ p₂, and T = 3 L, if some x₀ ∈ P
makes angle at most θ with q, query returns none with probability at most e⁻¹ + 1 / 3; any
returned vector has angle below c θ with q (query_eq_some).