arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1606.01206cs.DBcs.LO
收藏

合取查询逆向工程问题的复杂性

The complexity of reverse engineering problems for conjunctive queries

Pablo Barcelo, Miguel Romero

摘要:

合取查询(CQ)的逆向工程问题,例如按示例查询(QBE)或可定义性,采用一组用户示例并将其转换为解释性CQ。尽管它们很重要,但这些问题的复杂性高得令人望而却步(coNEXPTIME-完全)。我们隔离他们的两个主要来源的复杂性,并提出放宽他们,降低复杂性,同时有意义的理论解释。第一个放松是基于使用存在卵石游戏近似同态测试的想法。我们表明,这特征QBE/可定义的CQ树宽$k$,同时降低复杂性EXPTIME。作为一个副产品,我们得到的复杂性的QBE/可定义性问题的CQ的树宽$k$是EXPTIME完全的每个$k \geq 1$。第二个放松是基于“去重化”直积的思想,它表征了CQ的并集的QBE/可定义性,并降低了coNP的复杂性。这两个松弛的组合产生了QBE的易处理性,并以树宽至多为$k$的CQ的并集来表征它。我们还研究了这些问题的复杂性,图数据库上的合取规则路径查询,显示它们并不比CQ更困难。

英文摘要:

Reverse engineering problems for conjunctive queries (CQs), such as query by example (QBE) or definability, take a set of user examples and convert them into an explanatory CQ. Despite their importance, the complexity of these problems is prohibitively high (coNEXPTIME-complete). We isolate their two main sources of complexity and propose relaxations of them that reduce the complexity while having meaningful theoretical interpretations. The first relaxation is based on the idea of using existential pebble games for approximating homomorphism tests. We show that this characterizes QBE/definability for CQs up to treewidth $k$, while reducing the complexity to EXPTIME. As a side result, we obtain that the complexity of the QBE/definability problems for CQs of treewidth $k$ is EXPTIME-complete for each $k \geq 1$. The second relaxation is based on the idea of "desynchronizing" direct products, which characterizes QBE/definability for unions of CQs and reduces the complexity to coNP. The combination of these two relaxations yields tractability for QBE and characterizes it in terms of unions of CQs of treewidth at most $k$. We also study the complexity of these problems for conjunctive regular path queries over graph databases, showing them to be no more difficult than for CQs.

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

↑