On the complexity of tree pattern containment with arithmetic comparisons

  • Authors:
  • Foto N. Afrati;Sara Cohen;Gabriel Kuper

  • Affiliations:
  • Department of Electrical and Computing Engineering, National Technical University of Athens (NTUA), 15773 Athens, Greece;Department of Computer Science and Engineering, Hebrew University of Jerusalem, Jerusalem, Israel;Dipartimento di Ingegneria e Scienza dellInformazione Via Sommarive, 14 I-38123 Povo, Trento, Italy

  • Venue:
  • Information Processing Letters
  • Year:
  • 2011

Quantified Score

Hi-index 0.89

Visualization

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 @P"2^P-complete in the general case, but remains co-NP complete for tree patterns with left semi-interval (, =, =) attribute constraints.