arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1412.3869cs.DB
收藏

用不等式证明合取定理

Answering Conjunctive Queries with Inequalities

Paraschos Koutris, Tova Milo, Sudeepa Roy, Dan Suciu

摘要:

本文研究了用不等式回答合取查询的复杂性。特别是,我们感兴趣的是比较复杂的查询和不平等。我们的工作的主要贡献是一种新的组合技术,使我们能够使用任何选择-项目-连接查询计划为一个给定的CQ没有不平等回答CQ的不平等,在运行时间的一个额外的因素,只取决于查询。关键思想是定义一个新的投影算子,它保留了映射到投影输出中的每个元组的输入元组集合的小表示(与数据库的大小无关);该表示用于评估查询中的所有不等式。其次,我们推广了Papadimitriou-Yannakakis [17]的一个结果,并给出了一个基于颜色编码技术[4]的替代算法,通过使用不含不等式的CQ的算法来计算含不等式的CQ。第三,我们调查的结构的查询图,不等式图,和增强的查询图与不等式,并表明,即使查询和不等式图有界树宽,增强图不仅可以有一个无界树宽,但也可以是NP-难评估。此外,我们说明类的查询和不等式的增强图有无界树宽,但CQ与不等式可以在多时间进行评估。最后,我们给出了允许一类CQ具有关于任何不等式模式的多时间组合复杂度的必要性质和充分性质。我们还说明了类的查询,我们的查询计划为基础的技术优于本文中讨论的替代方法。

英文摘要:

In this paper, we study the complexity of answering conjunctive queries (CQ) with inequalities). In particular, we are interested in comparing the complexity of the query with and without inequalities. The main contribution of our work is a novel combinatorial technique that enables us to use any Select-Project-Join query plan for a given CQ without inequalities in answering the CQ with inequalities, with an additional factor in running time that only depends on the query. The key idea is to define a new projection operator, which keeps a small representation (independent of the size of the database) of the set of input tuples that map to each tuple in the output of the projection; this representation is used to evaluate all the inequalities in the query. Second, we generalize a result by Papadimitriou-Yannakakis [17] and give an alternative algorithm based on the color-coding technique [4] to evaluate a CQ with inequalities by using an algorithm for the CQ without inequalities. Third, we investigate the structure of the query graph, inequality graph, and the augmented query graph with inequalities, and show that even if the query and the inequality graphs have bounded treewidth, the augmented graph not only can have an unbounded treewidth but can also be NP-hard to evaluate. Further, we illustrate classes of queries and inequalities where the augmented graphs have unbounded treewidth, but the CQ with inequalities can be evaluated in poly-time. Finally, we give necessary properties and sufficient properties that allow a class of CQs to have poly-time combined complexity with respect to any inequality pattern. We also illustrate classes of queries where our query-plan-based technique outperforms the alternative approaches discussed in the paper.

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

↑