计算机科学 > 数据库
[提交于 2026年11月30日]
标题:Fixed-Capacity Limits of Linearizable Mergeable Cardinality Sketches: Tight Bounds and CapPCSA
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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)/I_0 + O(1) for Lambda = log_2 log_2 U.
提交历史
来自:Bowen Jiang[v1] 2026年11月30日 星期一 11:06:09 UTC (231 KB)