根树查询上主键的一致性查询回答
Consistent Query Answering for Primary Keys on Rooted Tree Queries
AI总结:
本文针对根树查询类研究主键约束下一致性查询回答的数据复杂度,证明每个根树查询的 CERTAINTY(q) 必属 FO、NL-hard∩LFP 或 coNP-complete 三类之一且可在多项式时间内判定,并将分类扩展到具有简单主键的更大查询类。
摘要:
我们研究在可能违反主键约束的数据库上一致性查询回答(CQA)的数据复杂度。修复是满足主键约束的数据库的最大子集。对于布尔查询 q,问题 CERTAINTY(q) 以数据库为输入,并询问是否每个修复都满足 q。当 q 是无自连接的布尔合取查询,或(不一定无自连接的)布尔路径查询时,CERTAINTY(q) 的计算复杂度已经被确定。本文通过考虑根树查询类,向所有布尔合取查询的一般分类又迈进了一步。特别地,我们证明对于每个根树查询 q,CERTAINTY(q) 属于 FO、NL-hard ∩ LFP 或 coNP-complete 三类之一,并且给定 q 时可在多项式时间内判定属于哪一种情况。我们还将分类扩展到具有简单主键的更大查询类。我们的分类标准依赖于查询同态,而我们的多项式时间不动点算法基于对上下文无关文法(CFG)的新颖使用。
英文摘要:
We study the data complexity of consistent query answering (CQA) on databases that may violate the primary key constraints. A repair is a maximal subset of the database satisfying the primary key constraints. For a Boolean query q, the problem CERTAINTY(q) takes a database as input, and asks whether or not each repair satisfies q. The computational complexity of CERTAINTY(q) has been established whenever q is a self-join-free Boolean conjunctive query, or a (not necessarily self-join-free) Boolean path query. In this paper, we take one more step towards a general classification for all Boolean conjunctive queries by considering the class of rooted tree queries. In particular, we show that for every rooted tree query q, CERTAINTY(q) is in FO, NL-hard $\cap$ LFP, or coNP-complete, and it is decidable (in polynomial time), given q, which of the three cases applies. We also extend our classification to larger classes of queries with simple primary keys. Our classification criteria rely on query homomorphisms and our polynomial-time fixpoint algorithm is based on a novel use of context-free grammar (CFG).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。