arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.04249cs.DBcs.ITmath.IT
收藏

用于悲观基数估计的双灵巧度序列界

Ambidextrous Degree Sequence Bounds for Pessimistic Cardinality Estimation

National Taiwan University(国立台湾大学)

Yu-Ting Lin, Hsin-Po Wang

AI总结:

针对悲观基数估计问题,在现有灵巧框架基础上提出计数爪形对的双灵巧度序列界,理论上不弱于旧界,实验中高估倍数更低,在com-Youtube数据集上的好友三元组计数任务中显著更紧。

摘要:

在大型数据库系统中,为连接查询的基数确定上界是一项被称为**悲观基数估计**的关键任务。近期,Abo Khamis、Nakos、Olteanu和Suciu将相关工作统一为如下的灵巧(dexterous)框架:步骤1:设$(X_1, \dotsc, X_n)$为连接的随机行,将$H(X_1, \dotsc, X_n)$等同于连接基数的对数;步骤2:利用香农型不等式(如$H(X, Y, Z) \le H(X) + H(Y|X) + H(Z|Y)$)为$H(X_1, \dotsc, X_n)$确定上界;步骤3:利用关系底层图的度序列的$p$-范数,为$H(X_i) + p H(X_j | X_i)$确定上界。\n\n尽管步骤3中的旧界计数底层图中的“爪形$\in$”,我们提出了**双灵巧(ambidextrous)**界,计数“爪形对${\ni}\\\\!{-}\\\\!{\in}$”。新界在理论上不会更松,且在实验中更紧:当旧界的高估倍数为$x$时,新界的高估倍数为$x^{3/4}$。以在$\texttt{com-Youtube}$数据集上计数好友三元组为例,最优灵巧界为$1.2 \cdot 10^9$,最优双灵巧界为$5.1 \cdot 10^8$,而实际基数为$1.8 \cdot 10^7$。

英文摘要:

In a large database system, upper-bounding the cardinality of a join query is a crucial task called $\textit{pessimistic cardinality estimation}$. Recently, Abo Khamis, Nakos, Olteanu, and Suciu unified related works into the following dexterous framework. Step 1: Let $(X_1, \dotsc, X_n)$ be a random row of the join, equating $H(X_1, \dotsc, X_n)$ to the log of the join cardinality. Step 2: Upper-bound $H(X_1, \dotsc, X_n)$ using Shannon-type inequalities such as $H(X, Y, Z) \le H(X) + H(Y|X) + H(Z|Y)$. Step 3: Upper-bound $H(X_i) + p H(X_j | X_i)$ using the $p$-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 $\textit{ambidextrous}$ bounds that count "claw pairs ${\ni}\!{-}\!{\in}$". The new bounds are provably not looser and empirically tighter: they overestimate by $x^{3/4}$ times when the old bounds overestimate by $x$ times. An example is counting friend triples in the $\texttt{com-Youtube}$ dataset, the best dexterous bound is $1.2 \cdot 10^9$, the best ambidextrous bound is $5.1 \cdot 10^8$, and the actual cardinality is $1.8 \cdot 10^7$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑