PANDAExpress: 一种更简单且更快的PANDA算法
PANDAExpress: a Simpler and Faster PANDA Algorithm
AI总结:
本文提出PANDAExpress算法,通过改进的分区方案消除PANDA的时间复杂度中的polylog(N)因子,实现更高效且通用的查询处理。
摘要:
PANDA是一种强大的通用算法,用于回答连接查询(CQs)和离散逻辑规则(DDRs)给定输入度约束。在特殊情况下,当度约束是基数约束且查询为布尔时,PANDA的运行时间约为$\tilde O (N^{subw})$,其中$N$是输入大小,$subw$是查询的子模宽,这一概念由Daniel Marx(JACM 2013)引入。当专门针对某些子图模式查找问题时,$\tilde O(N^{subw})$的运行时间与最优可能的运行时间相匹配,模一些细粒度复杂性中的猜想(Bringmann和Gorbachev(STOC 25))。PANDA框架更加通用,因为它处理任意的度约束,这些约束捕捉了关系数据库管理系统中常用的统计和完整性约束,它适用于带有自由变量的查询,以及CQs和DDRs。PANDA的关键弱点是$\tilde O(\cdot)$符号中隐藏的$polylog(N)$因子较大。这使得PANDA完全不实际,并落后于专门化算法所能实现的水平。本文通过两个新思想解决了这一弱点。首先,我们证明了一个新的概率不等式,该不等式在任意度约束下上限界DDRs的输出大小。其次,这个不等式的证明直接导致了一种名为PANDAExpress的新算法,该算法比PANDA更简单且更快。PANDAExpress的新特点是使用任意超平面切割代替PANDA中使用的轴平行超平面。这些超平面是根据数据偏斜统计动态构建的,这些统计在算法执行过程中被仔细跟踪。结果,PANDAExpress去除了PANDA运行时间中的$polylog(N)$因子,与复杂专门化算法的运行时间相匹配,同时保留了其所有通用性和威力。
英文摘要:
PANDA is a powerful generic algorithm for answering conjunctive queries (CQs) and disjunctive datalog rules (DDRs) given input degree constraints. In the special case where degree constraints are cardinality constraints and the query is Boolean, PANDA runs in $\tilde O (N^{subw})$-time, where $N$ is the input size, and $subw$ is the submodular width of the query, a notion introduced by Daniel Marx (JACM 2013). When specialized to certain classes of sub-graph pattern finding problems, the $\tilde O(N^{subw})$ runtime matches the optimal runtime possible, modulo some conjectures in fine-grained complexity (Bringmann and Gorbachev (STOC 25)). The PANDA framework is much more general, as it handles arbitrary input degree constraints, which capture common statistics and integrity constraints used in relational database management systems, it works for queries with free variables, and for both CQs and DDRs. The key weakness of PANDA is the large $polylog(N)$-factor hidden in the $\tilde O(\cdot)$ notation. This makes PANDA completely impractical, and fall short of what is achievable with specialized algorithms. This paper resolves this weakness with two novel ideas. First, we prove a new probabilistic inequality that upper-bounds the output size of DDRs under arbitrary degree constraints. Second, the proof of this inequality directly leads to a new algorithm named PANDAExpress that is both simpler and faster than PANDA. The novel feature of PANDAExpress is a new partitioning scheme that uses arbitrary hyperplane cuts instead of axis-parallel hyperplanes used in PANDA. These hyperplanes are dynamically constructed based on data-skewness statistics carefully tracked throughout the algorithm's execution. As a result, PANDAExpress removes the $polylog(N)$-factor from the runtime of PANDA, matching the runtimes of intricate specialized algorithms, while retaining all its generality and power.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。