Ambidextrous Degree Sequence Bounds for Pessimistic Cardinality Estimation
Abstract
In a large database system, upper-bounding the cardinality of a join query is a crucial task called pessimistic cardinality estimation. Recently, Abo Khamis, Nakos, Olteanu, and Suciu unified related works into the following dexterous framework. Step 1: Let (X1, …c, Xn) be a random row of the join, equating H(X1, …c, Xn) to the log of the join cardinality. Step 2: Upper-bound H(X1, …c, Xn) using Shannon-type inequalities such as H(X, Y, Z) H(X) + H(Y|X) + H(Z|Y). Step 3: Upper-bound H(Xi) + p H(Xj | Xi) using the p-norm of the degree sequence of the underlying graph of a relation. While old bound in step 3 count "claws ∈" in the underlying graph, we proposed ambidextrous bounds that count "claw pairs \!-\!∈". The new bounds are provably not looser and empirically tighter: they overestimate by x3/4 times when the old bounds overestimate by x times. An example is counting friend triples in the com-Youtube dataset, the best dexterous bound is 1.2 · 109, the best ambidextrous bound is 5.1 · 108, and the actual cardinality is 1.8 · 107.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.