再论非循环合取查询的复杂性
The complexity of acyclic conjunctive queries revisited
摘要:
本文考虑一元函数上的一阶逻辑,研究了由这类公式描述的合取查询求值问题的复杂性。一个自然的概念,这种语言的查询非循环性的介绍,我们研究了大量的变种或概括的非循环查询问题的复杂性在这种情况下(布尔或不布尔,有或没有不等式,比较等)。我们的主要结果表明,所有这些问题都是\textit{fixed-parameter linear},即它们可以在时间$f(|Q|).|\textbf{db}|.|Q(\textbf{db})|$进行评估,其中$|Q|$是查询$Q$的大小,$|\textbf{db}|$是数据库大小,$|Q(\textbf{db})|$是输出的大小,$f$是一些函数,其值取决于查询问题的特定变体(在某些情况下,$f$是身份函数)。我们的结果有两种结果。首先,它们可以很容易地转换为关系(即,古典)设置。以前已知的一些查询问题的界限进行了改进,然后展示新的易处理的情况下。其中,作为一个直接的推论,我们改进了\~ \cite{PapadimitriouY-99}的结果表明,任何(关系)非循环的合取查询不等式可以评估的时间$f(|Q|).|\textbf{db}|.|Q(\textbf{db})|$。我们的方法的第二个后果是,它提供了一个非常自然的描述方法的复杂性,众所周知的算法问题。一些例子(如非循环子图问题,多维匹配等)被认为是其复杂性的新见解。
英文摘要:
In this paper, we consider first-order logic over unary functions and study the complexity of the evaluation problem for conjunctive queries described by such kind of formulas. A natural notion of query acyclicity for this language is introduced and we study the complexity of a large number of variants or generalizations of acyclic query problems in that context (Boolean or not Boolean, with or without inequalities, comparisons, etc...). Our main results show that all those problems are \textit{fixed-parameter linear} i.e. they can be evaluated in time $f(|Q|).|\textbf{db}|.|Q(\textbf{db})|$ where $|Q|$ is the size of the query $Q$, $|\textbf{db}|$ the database size, $|Q(\textbf{db})|$ is the size of the output and $f$ is some function whose value depends on the specific variant of the query problem (in some cases, $f$ is the identity function). Our results have two kinds of consequences. First, they can be easily translated in the relational (i.e., classical) setting. Previously known bounds for some query problems are improved and new tractable cases are then exhibited. Among others, as an immediate corollary, we improve a result of \~\cite{PapadimitriouY-99} by showing that any (relational) acyclic conjunctive query with inequalities can be evaluated in time $f(|Q|).|\textbf{db}|.|Q(\textbf{db})|$. A second consequence of our method is that it provides a very natural descriptive approach to the complexity of well-known algorithmic problems. A number of examples (such as acyclic subgraph problems, multidimensional matching, etc...) are considered for which new insights of their complexity are given.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。