paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Rewriting with Acyclic Queries: Mind Your Head

无环查询的重写:注意头部(Mind Your Head)
LMCS vol.Volume 19, Issue 42023匹配度 1/10 · 该论文研究数据库理论中的合取查询重写与无环视图重写复杂度,属于逻辑与数据库理论,与用户关注的静态分析、LLM/Agent、浮点程序分析和贝叶斯程序分析没有直接交集。虽然涉及形式化方法,但不面向程序分析或 PL/AI 交叉场景。引用 2 inbox
Gaetano Geck, Jens Keppeler, Thomas Schwentick, Christopher Spinrath
crossref: 2026-09-10

AI 速览

一句话:证明若合取查询 Q 存在重写,则当 Q 无环时也存在无环重写,并厘清无环视图重写问题的可处理边界。

论文研究合取查询的视图重写问题:给定合取查询 Q 与视图集 V,判定是否存在定义在 V 上且与 Q 等价的合取查询 Q'。作者聚焦查询、视图和/或目标重写的无环性及更受限情形,证明若 Q 无环,则只要存在重写就存在无环重写;对 free-connex 无环、hierarchical、q-hierarchical 查询有类似结论。复杂度方面,论文划出可处理与(可能)难解的边界:有界元数下,即使 Q 与视图均无环或 hierarchical,无环重写仍 NP 难;但当视图为 free-connex 无环(体无环,加入头部为额外原子后仍无环)时问题可处理。

问题
判定给定合取查询 Q 在视图集 V 上是否存在等价的合取重写 Q',并研究无环等受限情形下的存在性与复杂度。
方法
通过逻辑/查询等价与无环性(free-connex、hierarchical、q-hierarchical)的结构分析,比较存在任意重写与存在受限重写;用归约和算法刻画复杂度边界。
评估
理论证明与复杂度分析:给出无环重写的存在性定理、NP 难归约,以及 free-connex 无环视图下的可处理算法。
原文摘要(Abstract)

The paper studies the rewriting problem, that is, the decision problem whether, for a given conjunctive query $Q$ and a set $\mathcal{V}$ of views, there is a conjunctive query $Q'$ over $\mathcal{V}$ that is equivalent to $Q$, for cases where the query, the views, and/or the desired rewriting are acyclic or even more restricted. It shows that, if $Q$ itself is acyclic, an acyclic rewriting exists if there is any rewriting. An analogous statement also holds for free-connex acyclic, hierarchical, and q-hierarchical queries. Regarding the complexity of the rewriting problem, the paper identifies a border between tractable and (presumably) intractable variants of the rewriting problem: for schemas of bounded arity, the acyclic rewriting problem is NP-hard, even if both $Q$ and the views in $\mathcal{V}$ are acyclic or hierarchical. However, it becomes tractable if the views are free-connex acyclic (i.e., in a nutshell, their body is (i) acyclic and (ii) remains acyclic if their head is added as an additional atom).

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2177,
  title = {Rewriting with Acyclic Queries: Mind Your Head},
  author = {Gaetano Geck and Jens Keppeler and Thomas Schwentick and Christopher Spinrath},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 19, Issue 4},
  year = {2023},
  doi = {10.46298/lmcs-19(4:17)2023}
}