arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.14063cs.DBcs.DS
收藏

Datalogo程序迭代求值的多项式时间收敛性

Polynomial Time Convergence of the Iterative Evaluation of Datalogo Programs

Sungjin Im, Benjamin Moseley, Hung Q. Ngo, Kirk Pruhs

AI总结:

本文证明Datalogo程序在p-稳定半环上的自然迭代求值可在多项式次迭代内收敛,将此前指数级上界改进为多项式上界,并给出了依赖于半环元素数和乘积项数的具体复杂度表达式。

摘要:

Datalogo是Datalog的一种扩展,允许在任意交换半环上进行聚合和递归。与Datalog一样,Datalogo程序可以通过自然迭代算法进行求值,直到达到不动点。然而与Datalog不同的是,某些Datalogo程序在某些半环上的自然迭代求值可能不收敛。已知能够保证Datalogo程序迭代求值收敛的交换半环恰好是稳定半环[7]。此前,在p-稳定半环上收敛所需迭代次数的最佳上界为$\sum_{i=1}^n (p+2)^i = Θ(p^n)$步,其中n(本质上)是输出规模。我们证明,事实上,Datalogo程序在p-稳定半环上的自然迭代求值在多项式次迭代内收敛。特别地,我们的上界为$O( σp n^2( n^2 \lg λ+ \lg σ))$,其中σ是输入数据库或Datalogo程序中出现的半环元素个数,λ是Datalogo程序中任意乘积所含项的最大数量。

英文摘要:

Datalogo is an extension of Datalog that allows for aggregation and recursion over an arbitrary commutative semiring. Like Datalog, Datalogo programs can be evaluated via the natural iterative algorithm until a fixed point is reached. However unlike Datalog, the natural iterative evaluation of some Datalogo programs over some semirings may not converge. It is known that the commutative semirings for which the iterative evaluation of Datalogo programs is guaranteed to converge are exactly those semirings that are stable [7]. Previously, the best known upper bound on the number of iterations until convergence over $p$-stable semirings is $\sum_{i=1}^n (p+2)^i = Θ(p^n)$ steps, where $n$ is (essentially) the output size. We establish that, in fact, the natural iterative evaluation of a Datalogoprogram over a $p$-stable semiring converges within a polynomial number of iterations. In particular our upper bound is $O( σp n^2( n^2 \lg λ+ \lg σ))$ where $σ$ is the number of elements in the semiring present in either the input databases or the Datalogo program, and $λ$ is the maximum number of terms in any product in the Datalogo program.

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

↑