Skip to Main content Skip to Navigation
New interface
Conference papers

Consistency of injective tree patterns

Claire David 1 Nadime Francis 2 Filip Murlak 3 
2 DAHU - Verification in databases
LSV - Laboratoire Spécification et Vérification [Cachan], Inria Saclay - Ile de France
Abstract : Testing if an incomplete description of an XML document is consistent, that is, if it describes a real document conforming to the imposed schema, amounts to deciding if a given tree pattern can be matched injectively into a tree accepted by a fixed automaton. This problem can be solved in polynomial time for patterns that use the child relation and the sibling order, but do not use the descendant relation. For general patterns the problem is in NP, but no lower bound has been known so far. We show that the problem is NP-complete already for patterns using only child and descendant relations. The source of hardness turns out to be the interplay between these relations: for patterns using only descendant we give a polynomial algorithm. We also show that the algorithm can be adapted to patterns using descendant and following-sibling, but combining descendant and next-sibling leads to intractability.
Document type :
Conference papers
Complete list of metadata

Cited literature [15 references]  Display  Hide  Download
Contributor : Nadime Francis Connect in order to contact the contributor
Submitted on : Thursday, January 8, 2015 - 2:04:22 PM
Last modification on : Friday, September 16, 2022 - 2:02:20 PM
Long-term archiving on: : Thursday, April 9, 2015 - 10:36:29 AM


Publisher files allowed on an open archive


  • HAL Id : hal-01094596, version 2


Claire David, Nadime Francis, Filip Murlak. Consistency of injective tree patterns. Foundations of Software Technology and Theoretical Computer Science, Dec 2014, New Dehli, India. ⟨hal-01094596v2⟩



Record views


Files downloads