arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.15425cs.DB
收藏

具有大小限制的Datalog

Size Bound-Adorned Datalog

EPFL(洛桑联邦理工学院);TU Wien(维也纳工业大学);Nanyang Technological University(南洋理工大学)

Christian Fattebert, Zhekai Jiang, Christoph Koch, Reinhard Pichler, Qichen Wang

AI总结:

本文提出EDB受限的Datalog框架,用于推导Datalog递归查询中间结果大小的上界及渐进行为。通过构建带有上界约束的规则,定义宽度度量,从而为每个IDB谓词提供多项式规模的上界,并推导出固定参数可 tractable 的复杂度界。

摘要:

我们引入EDB-bounded datalog,一种用于推导Datalog递归查询中间结果大小上界及渐进行为的框架。我们提出一个算法,给定任意Datalog程序,构造一个EDB-bounded Datalog程序,其中每个规则都带有(非递归)conjunctive查询作为上界。通过这些装饰,我们定义基于(整数或分数)边覆盖宽度的宽度概念。通过装饰和宽度度量,我们为每个IDB谓词获得最坏情况的大小上界,这些上界与输入数据规模成多项式关系,给定固定程序结构。此外,通过这些大小上界,我们还推导出固定参数可 tractable 的整个程序评估渐进行为。此外,通过适应我们的框架,我们获得一个半决策过程,可将大多数实际的bounded程序高效地重写为非递归等价程序。

英文摘要:

We introduce EDB-bounded datalog, a framework for deriving upper bounds on intermediate result sizes and the asymptotic complexity of recursive queries in datalog. We present an algorithm that, given an arbitrary datalog program, constructs an EDB-bounded datalog program in which every rule is adorned with a (non-recursive) conjunctive query that subsumes the result of the rule, thus acting as an upper bound. From such adornments, we define a notion of width based on (integral or fractional) edge-cover widths. Through the adornments and the width measure, we obtain, for every IDB predicate, worst-case upper bounds on their sizes, which are polynomial in the input data size, given a fixed program structure. Furthermore, with these size bounds, we also derive fixed-parameter tractable, output-sensitive asymptotic complexity bounds for evaluating the entire program. Additionally, by adapting our framework, we obtain a semi-decision procedure for datalog boundedness that efficiently rewrites most practical bounded programs into non-recursive equivalent programs.

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

↑