English

Ambidextrous Degree Sequence Bounds for Pessimistic Cardinality Estimation

Databases 2025-10-07 v1 Information Theory math.IT

Abstract

In a large database system, upper-bounding the cardinality of a join query is a crucial task called pessimistic cardinality estimation\textit{pessimistic cardinality estimation}. Recently, Abo Khamis, Nakos, Olteanu, and Suciu unified related works into the following dexterous framework. Step 1: Let (X1,,Xn)(X_1, \dotsc, X_n) be a random row of the join, equating H(X1,,Xn)H(X_1, \dotsc, X_n) to the log of the join cardinality. Step 2: Upper-bound H(X1,,Xn)H(X_1, \dotsc, X_n) using Shannon-type inequalities such as H(X,Y,Z)H(X)+H(YX)+H(ZY)H(X, Y, Z) \le H(X) + H(Y|X) + H(Z|Y). Step 3: Upper-bound H(Xi)+pH(XjXi)H(X_i) + p H(X_j | X_i) using the pp-norm of the degree sequence of the underlying graph of a relation. While old bound in step 3 count "claws \in" in the underlying graph, we proposed ambidextrous\textit{ambidextrous} bounds that count "claw pairs  ⁣ ⁣{\ni}\!{-}\!{\in}". The new bounds are provably not looser and empirically tighter: they overestimate by x3/4x^{3/4} times when the old bounds overestimate by xx times. An example is counting friend triples in the com-Youtube\texttt{com-Youtube} dataset, the best dexterous bound is 1.21091.2 \cdot 10^9, the best ambidextrous bound is 5.11085.1 \cdot 10^8, and the actual cardinality is 1.81071.8 \cdot 10^7.

Cite

@article{arxiv.2510.04249,
  title  = {Ambidextrous Degree Sequence Bounds for Pessimistic Cardinality Estimation},
  author = {Yu-Ting Lin and Hsin-Po Wang},
  journal= {arXiv preprint arXiv:2510.04249},
  year   = {2025}
}

Comments

25 pages, 16 figures

R2 v1 2026-07-01T06:18:01.791Z