The complexity of XPath query evaluation and XML typing - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Journal Articles Journal of the ACM (JACM) Year : 2005

The complexity of XPath query evaluation and XML typing


We study the complexity of two central XML processing problems. The first is XPath 1.0 query processing, which has been shown to be in PTime in previous work. We prove that both the data complexity and the query complexity of XPath 1.0 fall into lower (highly parallelizable) complexity classes, while the combined complexity is PTime-hard. Subsequently, we study the sources of this hardness and identify a large and practically important fragment of XPath 1.0 for which the combined complexity is LogCFL-complete and, therefore, in the highly parallelizable complexity class NC2. The second problem is the complexity of validating XML documents against various typing schemes like Document Type Definitions (DTDs), XML Schema Definitions (XSDs), and tree automata, both with respect to data and to combined complexity. For data complexity, we prove that validation is in LogSpace and depends crucially on how XML data is represented. For the combined complexity, we show that the complexity ranges from LogSpace to LogCFL, depending on the typing scheme.
Fichier principal
Vignette du fichier
gkps.pdf (529.21 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-02886548 , version 1 (01-07-2020)



Georg Gottlob, Christoph Koch, Reinhard Pichler, Luc Segoufin. The complexity of XPath query evaluation and XML typing. Journal of the ACM (JACM), 2005, 52 (2), pp.284-335. ⟨10.1145/1059513.1059520⟩. ⟨hal-02886548⟩
30 View
100 Download



Gmail Facebook X LinkedIn More