Discrete Applied Mathematics
Journal of the ACM (JACM)
Foundations of Databases: The Logical Level
Foundations of Databases: The Logical Level
Holistic twig joins: optimal XML pattern matching
Proceedings of the 2002 ACM SIGMOD international conference on Management of data
Computers and Intractability: A Guide to the Theory of NP-Completeness
Computers and Intractability: A Guide to the Theory of NP-Completeness
Efficient algorithms for processing XPath queries
ACM Transactions on Database Systems (TODS)
Parameterized Complexity Theory (Texts in Theoretical Computer Science. An EATCS Series)
Parameterized Complexity Theory (Texts in Theoretical Computer Science. An EATCS Series)
Conjunctive queries over trees
Journal of the ACM (JACM)
Processing queries on tree-structured data efficiently
Proceedings of the twenty-fifth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems
Efficient evaluation of n-ary conjunctive queries over trees and graphs
WIDM '06 Proceedings of the 8th annual ACM international workshop on Web information and data management
Polynomial time fragments of XPath with variables
Proceedings of the twenty-sixth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems
Algorithms for acyclic database schemes
VLDB '81 Proceedings of the seventh international conference on Very Large Data Bases - Volume 7
Linear delay enumeration and monadic second-order logic
Discrete Applied Mathematics
MSO queries on tree decomposable structures are computable with linear delay
CSL'06 Proceedings of the 20th international conference on Computer Science Logic
Survey: Colouring, constraint satisfaction, and complexity
Computer Science Review
On acyclic conjunctive queries and constant delay enumeration
CSL'07/EACSL'07 Proceedings of the 21st international conference, and Proceedings of the 16th annuall conference on Computer Science Logic
The dichotomy of list homomorphisms for digraphs
Proceedings of the twenty-second annual ACM-SIAM symposium on Discrete Algorithms
Enumerating with constant delay the answers to a query
Proceedings of the 16th International Conference on Database Theory
Hi-index | 0.00 |
We investigate efficient enumeration algorithms for conjunctive queries for databases over binary relations that satisfy the X property. Treelike relations such as XPath axes or grids are natural examples of such relations. We first show that the result of an n-ary conjunctive query Q over an X structure S can be enumerated with a delay in O(n ċ |S| ċ |Q|) between two consecutive n-tuples. Then, we consider acyclic conjunctive queries and show that such queries admit an enumeration algorithm with delay O(|Q| ċ |D|) and a preprocessing in O(|Q| ċ |S|) where D is the domain of S. The delay can even be improved to O(n ċ |D|) with a slightly more expensive preprocessing step. As an application of our method, we also show that any n-ary XPath acyclic conjunctive query Q over an unranked tree t can be enumerated with a preprocessing and delay O(|Q| ċ |t|). In the second part of the paper, we consider conjunctive queries with possible inequalities (≠) between variables. In this case, we show that query evaluation is NP-hard and, unless P = NP, these queries do not admit enumeration algorithms with a combined polynomial time delay. However, we also show that hardness relies only on the number l of variables that appear in inequalities. We propose efficient enumeration procedures for acyclic and general conjunctive queries whose delay is exponential in l but polynomial (even quasi-linear) in |Q| and |S|.