arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.17664cs.DB
收藏

线性 Datalogo 在稳定半环上的收敛速率研究

On the Convergence Rate of Linear Datalogo over Stable Semirings

Sungjin Im, Benjamin Moseley, Hung Ngo, Kirk Pruhs

AI总结:

本文研究线性 Datalogo 程序在 p-稳定半环上的朴素求值收敛速率,证明了其收敛速率上界为 O(pn³),并在半环元素数为 L 时进一步改进为 O(pn log L),显著优化了小规模半环下的收敛性能。

摘要:

Datalogo 是 Datalog 的一种扩展,其程序不再局限于标准布尔半环上的合取查询并集,而是可以表示任意交换偏序预半环上的和积查询集合。Datalogo 比 Datalog 更强大,因为它额外的代数结构支持带聚合的递归。同时,Datalogo 保留了 Datalog 在语法和语义上的简洁性:Datalogo 具有声明式最小不动点语义。最小不动点可以通过朴素求值算法找到,该算法反复应用直接后果算子,直到不再发生变化为止。文献[Khamis0PSW22]中已经证明,当底层半环是 p-稳定的时,任何 Datalogo 程序在该半环上的朴素求值都会在有限步内收敛。然而,关于收敛速率的上界在基础 IDB 原子数量 n 上是指数级的。本文针对在实践中相当常见的线性 Datalogo 程序,建立了朴素算法收敛速率的多项式上界。特别地,本文的主要结果是:在任何 p-稳定半环下,线性 Datalogo 程序的收敛速率为 O(pn³)。接下来,我们以半环中元素的数量为参数研究线性 Datalogo 程序的收敛速率。当 L 表示元素数量时,我们证明收敛速率的上界为 O(pn log L)。对于较小的 L,这显著改善了收敛速率。

英文摘要:

Datalogo is an extension of Datalog, where instead of a program being a collection of union of conjunctive queries over the standard Boolean semiring, a program may now be a collection of sum-product queries over an arbitrary commutative partially ordered pre-semiring. Datalogo is more powerful than Datalog in that its additional algebraic structure alows for supporting recursion with aggregation. At the same time, Datalogo retains the syntactic and semantic simplicity of Datalog: Datalogo has declarative least fixpoint semantics. The least fixpoint can be found via the naïve evaluation algorithm that repeatedly applies the immediate consequence operator until no further change is possible. It was shown in~\cite{Khamis0PSW22} that, when the underlying semiring is $p$-stable, then the naïve evaluation of any Datalogo program over the semiring converges in a finite number of steps. However, the upper bounds on the rate of convergence were exponential in the number $n$ of ground IDB atoms. This paper establishes polynomial upper bounds on the convergence rate of the naïve algorithm on {\bf linear} Datalogo programs, which is quite common in practice. In particular, the main result of this paper is that the convergence rate of linear Datalogo programs under any $p$-stable semiring is $O(pn^3)$. Next, we study the convergence rate in terms of the number of elements in the semiring for linear Datalogo programs. When $L$ is the number of elements, we show that the convergence rate is bounded by $O(pn \log L)$. This significantly improves the convergence rate for small $L$.

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

↑