arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.06764cs.DBcs.CC
收藏

寻找缺失答案修复的复杂性

The Complexity of Finding Missing Answer Repairs

University of Pennsylvania(宾夕法尼亚大学)

Jesse Comer, Val Tannen

AI总结:

研究了在查询答案中缺失元组时数据库修复的复杂性,证明了在不同查询条件下修复问题的计算难度,包括 NP 难度和多项式时间可解的子类。

摘要:

我们研究了在查询答案中缺失元组的情况下识别数据库修复的问题。我们证明,当查询作为输入的一部分时,即联合复杂性设置下,确定是否存在修复是否可以在多项式时间内完成,等同于对于允许弱形式投影和选择的查询类别的可满足性问题。然后我们识别出由允许的 relational algebra 操作定义的 unions of conjunctive queries with negated atoms 的子类,对于这些子类,最小修复问题可以在多项式时间内解决。相反,我们证明当允许投影和连接时,该问题是 NP 难的,且通过严格减少,其近似难度为 set cover-hard。此外,我们证明寻找 unions of conjunctive queries(允许 negated atoms)的最小修复大小是 OptP[log(n)]-难的,而使用 O(n²) 次 NP 或acle 调用可以计算最小修复。允许递归时,所有这些变体的联合复杂性显著增加,具有 EXP 下界。然而,从数据复杂性角度来看,我们证明所有可表达为 semi-positive datalog 程序的查询的最小修复可以在多项式时间内确定。

英文摘要:

We investigate the problem of identifying database repairs for missing tuples in query answers. We show that when the query is part of the input - the combined complexity setting - determining whether or not a repair exists is polynomial-time is equivalent to the satisfiability problem for classes of queries admitting a weak form of projection and selection. We then identify the sub-classes of unions of conjunctive queries with negated atoms, defined by the relational algebra operations permitted to appear in the query, for which the minimal repair problem can be solved in polynomial time. In contrast, we show that the problem is NP-hard, as well as set cover-hard to approximate via strict reductions, whenever both projection and join are permitted in the input query. Additionally, we show that finding the size of a minimal repair for unions of conjunctive queries (with negated atoms permitted) is OptP[log(n)]-complete, while computing a minimal repair is possible with O($n^2$) queries to an NP oracle. With recursion permitted, the combined complexity of all of these variants increases significantly, with an EXP lower bound. However, from the data complexity perspective, we show that minimal repairs can be identified in polynomial time for all queries expressible as semi-positive datalog programs.

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

↑