Abstract
In this paper we investigate the complexity of query containment problem for tree patterns (which express a fragment of XPath) with arbitrary arithmetic comparisons. We assume that attributes take values from a totally ordered domain and allow constraints that involve arithmetic comparisons. We show that the containment problem is Π2P-complete in the general case, but remains co-NP complete for tree patterns with left semi-interval (<, ≤, =) or right semi-interval (>, ≥, =) attribute constraints.
Original language | English |
---|---|
Pages (from-to) | 754-760 |
Number of pages | 7 |
Journal | Information Processing Letters |
Volume | 111 |
Issue number | 15 |
DOIs | |
State | Published - 15 Aug 2011 |
Bibliographical note
Funding Information:E-mail addresses: [email protected] (F.N. Afrati), [email protected] (S. Cohen), [email protected] (G. Kuper). 1 Sara Cohen was partially supported by the Israel Science Foundation (Grant 143/09).
Keywords
- Arithmetic comparisons
- Databases
- Query containment
- Tree patterns
- XPath queries