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

评估半环上的Datalog:一种基于grounding的方法

Evaluating Datalog over Semirings: A Grounding-based Approach

Hangdong Zhao, Shaleen Deep, Paraschos Koutris, Sudeepa Roy, Val Tannen

AI总结:

本研究提出一个两阶段框架,通过grounding和最小不动点求值,为自然有序半环上的Datalog程序确定最紧致的运行时间上界,并给出匹配的细粒度下界。

摘要:

Datalog是一种强大而优雅的语言,允许表达递归计算。尽管文献中已对Datalog求值进行了广泛研究,但迄今为止,关于Datalog程序能以多快速度被求值,仅知道宽松的上界。在这项工作中,我们提出以下问题:给定一个在自然有序半环$σ$上的Datalog程序,其最紧致的可能运行时间是多少?为此,我们的主要贡献是一个通用的两阶段框架,用于分析Datalog在$σ$上的数据复杂性:首先将程序grounding为等价的多元多项式方程组(即grounding),然后在$σ$上找到该grounding的最小不动点。我们提出了使用结构感知的查询求值技术来获得尽可能小的grounding的算法。接下来,针对两类半环引入了高效的不动点求值算法:(1)有限秩半环和(2)全序吸收半环。结合这两个阶段,我们获得了最先进的和新的算法结果。最后,我们用一个匹配的细粒度下界来补充我们的结果。

英文摘要:

Datalog is a powerful yet elegant language that allows expressing recursive computation. Although Datalog evaluation has been extensively studied in the literature, so far, only loose upper bounds are known on how fast a Datalog program can be evaluated. In this work, we ask the following question: given a Datalog program over a naturally-ordered semiring $σ$, what is the tightest possible runtime? To this end, our main contribution is a general two-phase framework for analyzing the data complexity of Datalog over $σ$: first ground the program into an equivalent system of polynomial equations (i.e. grounding) and then find the least fixpoint of the grounding over $σ$. We present algorithms that use structure-aware query evaluation techniques to obtain the smallest possible groundings. Next, efficient algorithms for fixpoint evaluation are introduced over two classes of semirings: (1) finite-rank semirings and (2) absorptive semirings of total order. Combining both phases, we obtain state-of-the-art and new algorithmic results. Finally, we complement our results with a matching fine-grained lower bound.

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

↑