paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Direct Access for Conjunctive Queries with Negations

带否定的合取查询的直接访问
LMCS vol.Volume 22, Issue 12026匹配度 1/10 · 该论文研究数据库理论中合取查询(含负原子)的直接访问可处理性与电路表示,属于逻辑与查询复杂度方向,与用户关注的 PL/AI、LLM/Agent、浮点程序分析、贝叶斯程序分析等核心方向没有直接关联。引用 10 inbox
Florent Capelli, Nofar Carmeli, Oliver Irwin, Sylvain Salvati
crossref: 2026-09-10

AI 速览

一句话:将合取查询直接访问的可处理性结果推广到含负原子的情形,并用电路表示答案集。

给定合取查询 Q 与数据库 D,直接访问指按某答案序返回第 k 个答案。该问题组合复杂度下一般 #P-难,但许多查询结构可在多项式预处理后用多对数时间实现字典序直接访问;已有工作仅刻画了正查询的可处理类。本文将其推广到允许负原子的带符号合取查询。方法基于一类可表示关系数据的电路:先证明该电路支持可处理直接访问,再按查询结构给出表示答案集的电路规模上界。结合二者,恢复正合取查询已知可处理类,并推广统一负合取查询结果,证明 β-acyclic 负合取查询与有界 nest set width 负合取查询均可处理。

问题
研究带负原子的合取查询在数据库上的答案直接访问问题:给定索引返回第 k 个答案,何时可在多项式时间预处理后以 polylog 时间直接访问。
方法
引入一类可表示关系数据的电路,证明该电路支持多项式预处理后的可处理直接访问,并依据查询结构给出表示答案集所需电路规模的上界。
评估
理论复杂度分析与证明:恢复正合取查询的已知可处理类,并推广统一负合取查询的结果,证明 β-acyclic 与有界 nest set width 负合取查询具有可处理直接访问。
原文摘要(Abstract)

Given a conjunctive query $Q$ and a database $D$, a direct access to the answers of $Q$ over $D$ is the operation of returning, given an index $k$, the $k$-th answer for some order on its answers. While this problem is $\#\mathcal{P}$-hard in general with respect to combined complexity, many conjunctive queries have an underlying structure that allows for a direct access to their answers for some lexicographical ordering that takes polylogarithmic time in the size of the database after a polynomial time precomputation. Previous work has precisely characterised the tractable classes and given fine-grained lower bounds on the precomputation time needed depending on the structure of the query. In this paper, we generalise these tractability results to the case of signed conjunctive queries, that is, conjunctive queries that may contain negative atoms. Our technique is based on a class of circuits that can represent relational data. We first show that this class supports tractable direct access after a polynomial time preprocessing. We then give bounds on the size of the circuit needed to represent the answer set of signed conjunctive queries depending on their structure. Both results combined together allow us to prove the tractability of direct access for a large class of conjunctive queries. On the one hand, we recover the known tractable classes from the literature in the case of positive conjunctive queries. On the other hand, we generalise and unify known tractability results about negative conjunctive queries -- that is, queries having only negated atoms. In particular, we show that the class of $β$-acyclic negative conjunctive queries and the class of bounded nest set width negative conjunctive queries admit tractable direct access.

链接与引用

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

BibTeX
@article{CapelliI24,
  title = {Direct Access for Conjunctive Queries with Negations},
  author = {Florent Capelli and Nofar Carmeli and Oliver Irwin and Sylvain Salvati},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 22, Issue 1},
  year = {2026},
  doi = {10.46298/lmcs-22(1:24)2026}
}