Fixed-Capacity Limits of Linearizable Mergeable Cardinality Sketches: Tight Bounds and CapPCSA
Abstract
Strictly mergeable cardinality sketches evaluate COUNT(DISTINCT) across arbitrary aggregation trees with states bit-identical to sequential union. Variable-length or overflow-prone designs (e.g., Apache CPC and multi-cell Fishmonger) approach Pettie and Wang's linearizable Shannon-entropy floor of 1.980. Yet fixed-width Parquet columns and bounded-slot frames require zero-overflow (delta = 0) fixed wire capacity, where prior fixed-size linearizable sketches suffer memory-variance products (MVPs) strictly above 3.00 on 64-bit universes. We close this gap with three contributions. First, we prove that deterministic fixed capacity raises the asymptotically tight linearizable limits to 2.45926 (+24.2% above 1.980) for inverse-Fisher MVP and 1.82043 (+11.8% above 1.62862) for state-change rate, alongside an implication-DAG criterion and linearizable top-collapse corollary. On matched 64-bit windows, a left-shifted integration window converges at O((ln ln d)/d) and certifies non-vacuous bounds 2.355-2.363. Second, we construct CapPCSA, a pooled-tail PCSA closure matching both limits asymptotically and certifying five 64-bit configurations with inverse-Fisher UB below 3.00 (+14.7%-+25.5% Exact / +14.9%-+26.9% Fast above matched lower bounds), paired with zero-allocation delta = 0 codecs (CapPCSA-Fast, 15.9-34.3 us at g = 2,048 on M5; RawEF). Across 16 real-hash phases, Fast achieves 2.79-2.83 mean MVP (cutting 23.6%-26.5% vs. ExaLogLog-28/32b). Dual-host and Parquet runs map the system trade-offs: CapPCSA leads fixed-wire catalog size and FLBA NONE/LZ4 storage, ties ULL-8b and CPC on 16-phase ZSTD MVP, and trades higher working RAM and small-n hashing cost for provable delta = 0. Third, we prove a continuous smoothed ExaLogLog relaxation diverges as (ln Lambda + ln ln Lambda)/I0 + O(1) for Lambda = log2 log2 U.
Create a lesson
Metadata
- Categories
- cs.DB, cs.DS, cs.IT, math.IT
- Comments
- 15 pages, 4 figures, 6 tables; includes supplemental proofs and parameter certificates in Appendices A-D
Related papers
The Selfish Models Property: Bounding the Complexity of Query Containment and Entailment Problems
Shared title terminologycs.DBHubie Chen
Bound to be Complete: Efficient Verification for SQL Equivalence via U-Expressions
Shared title terminologycs.DBHaoran Ding, Zhaoguo Wang, Zuming Jiang et al.
Bounded Treewidth Rulesets Are Not Finitely Controllable
Shared title terminologycs.DBPiotr Ostropolski-Nalewaja, Michaël Thomazo
Tight Width Minimisation of Self-Join-Free Quantified Conjunctive Queries
Shared title terminologycs.DBHubie Chen, Fabio Mogavero, Sam M. Thompson
Calibrated Early Termination with Bounded Optimality Gaps for Constrained Vector Search
Shared title terminologycs.DBXinyu Zhang, Jingze Li, Baihua Zheng et al.
Limitations of Interpretations in Semiring Semantics
Shared title terminologycs.DBGuillermo Badia, Phokion G. Kolaitis