On the complexity of database queries (extended abstract)
On the complexity of database queries (extended abstract)
复制标题
DOI:
10.1145/263661.263664
复制
发表时间:
1997-05
期刊:
影响因子:
--
通讯作者:
C. Papadimitriou;M. Yannakakis
中科院分区:
文献类型:
--
作者:
C. Papadimitriou;M. Yannakakis
We revisit the issue of the complexity of database queries, in the light of the recent parametric refinement of complexity theory. We show that, if the query size (or the number of variables in the query) is considered as a parameter, then the relational calculus and its fragments (conjunctive queries, positive queries) are classified at appropriate levels of the so-called W hierarchy of Downey and Fellows. These results strongly suggest that the query size is inherently in the exponent of the data complexity of any query evaluation algorithm, with the implication becoming stronger as the expressibility of the query language increases. For recursive languages (fixpoint logic, Datalog) this is provably the case [14]. On the positive side, we show that this exponential dependence can be avoided for the extension of acyclic queries with # (but not <) inequalities.