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

不完备数据库的计数问题

Counting Problems over Incomplete Databases

Marcelo Arenas, Pablo Barceló, Mikaël Monet

摘要:

我们研究了在不完整数据库的背景下出现的各种基本计数问题的复杂性,即,关系数据库,可以包含标记为空的未知值。具体地说,我们假设这些未知值的域是有限的,对于布尔查询$q$,我们考虑以下两个问题:给定一个不完整的数据库$D$作为输入,(a)返回满足$q$的$D$的完成数;或(b)返回或$D$的空值的赋值数,产生满足$q$的完成。当$q$是一个自连接-自由合取查询时,我们得到了这些问题的P-硬度和多项式时间可计算性之间的二分法,并研究了以下两个限制对复杂性的影响:(1)每个null在$D$(所谓的Codd表)中最多出现一次;(2)每个null的域是相同的。粗略地说,我们证明了计数完成比计数估值要困难得多(例如,虽然后者总是在#P中,但我们证明了前者在一些广泛认为的理论复杂性假设下不在#P中)。此外,我们发现(1)和(2)都降低了问题的复杂性。我们还研究了这些问题的近似性,并表明,虽然计数估值总是有一个完全多项式随机逼近方案,在大多数情况下计数完成不。最后,我们考虑更有表现力的查询语言和我们的问题与已知的复杂性类。

英文摘要:

We study the complexity of various fundamental counting problems that arise in the context of incomplete databases, i.e., relational databases that can contain unknown values in the form of labeled nulls. Specifically, we assume that the domains of these unknown values are finite and, for a Boolean query $q$, we consider the following two problems: given as input an incomplete database $D$, (a) return the number of completions of $D$ that satisfy $q$; or (b) return or the number of valuations of the nulls of $D$ yielding a completion that satisfies $q$. We obtain dichotomies between #P-hardness and polynomial-time computability for these problems when $q$ is a self-join--free conjunctive query, and study the impact on the complexity of the following two restrictions: (1) every null occurs at most once in $D$ (what is called Codd tables); and (2) the domain of each null is the same. Roughly speaking, we show that counting completions is much harder than counting valuations (for instance, while the latter is always in #P, we prove that the former is not in #P under some widely believed theoretical complexity assumption). Moreover, we find that both (1) and (2) reduce the complexity of our problems. We also study the approximability of these problems and show that, while counting valuations always has a fully polynomial randomized approximation scheme, in most cases counting completions does not. Finally, we consider more expressive query languages and situate our problems with respect to known complexity classes.

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

↑