arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.11129cs.DB
收藏

无环联合正则路径查询并不比相应的联合查询更难

Acyclic Conjunctive Regular Path Queries are no Harder than Corresponding Conjunctive Queries

RelationalAI(关系人工智能);University of Zurich(苏黎世大学);OTH Regensburg(雷根斯堡应用科技大学);University of Washington(华盛顿大学)

Mahmoud Abo Khamis, Alexandru-Mihai Hurjui, Ahmet Kara, Dan Olteanu, Dan Suciu

AI总结:

本文提出了一种输出敏感算法,用于评估无环联合正则路径查询(CRPQ),其复杂度与输入大小、输出大小及查询的'free-connex分数超树宽度'有关。该算法改进了现有无环CRPQ的输出敏感算法,并表明无环CRPQ的复杂度与相应联合查询(CQ)相同。

摘要:

我们提出了一种输出敏感算法来评估无环联合正则路径查询(CRPQ)。其复杂度以输入大小、输出大小以及查询的一个已知参数'free-connex分数超树宽度'来表示。我们的算法改进了最近提出的无环CRPQ的输出敏感算法。更值得注意的是,对于给定的无环CRPQ Q,我们的算法复杂度与相应的联合查询(CQ)的最优输出敏感复杂度相同,即该CQ的结构与CRPQ Q相同,只是将每个RPQ替换为二元原子或两个二元原子的连接。这表明,无法在不改进无环CQ的输出敏感评估状态之下,进一步改进无环CRPQ的复杂度。我们的结果令人惊讶,因为RPQ以及由此延伸的CRPQ等同于递归Datalog程序,这些程序在复杂性分析方面通常理解有限。然而,我们的结果表明,无环CRPQ的递归特性在输出敏感分析方面并不增加额外的复杂度,至少在无环CRPQ的情况下是如此。

英文摘要:

We present an output-sensitive algorithm for evaluating an acyclic Conjunctive Regular Path Query (CRPQ). Its complexity is written in terms of the input size, the output size, and a well-known parameter of the query that is called the "free-connex fractional hypertree width". Our algorithm improves upon the complexity of the recently introduced output-sensitive algorithm for acyclic CRPQs. More notably, the complexity of our algorithm for a given acyclic CRPQ Q matches the best known output-sensitive complexity for the "corresponding" conjunctive query (CQ), that is the CQ that has the same structure as the CRPQ Q except that each RPQ is replaced with a binary atom (or a join of two binary atoms). This implies that it is not possible to improve upon our complexity for acyclic CRPQs without improving the state-of-the-art on output-sensitive evaluation for acyclic CQs. Our result is surprising because RPQs, and by extension CRPQs, are equivalent to recursive Datalog programs, which are generally poorly understood from a complexity standpoint. Yet, our result implies that the recursion aspect of acyclic CRPQs does not add any extra complexity on top of the corresponding (non-recursive) CQs, at least as far as output-sensitive analysis is concerned.

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

↑