Consistency of injective tree patterns - Inria - Institut national de recherche en sciences et technologies du numérique
Communication Dans Un Congrès Année : 2014

Consistency of injective tree patterns

Claire David
Nadime Francis
Filip Murlak
  • Fonction : Auteur
  • PersonId : 962357

Résumé

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.
Fichier principal
Vignette du fichier
25.pdf (196.5 Ko) Télécharger le fichier
Origine Fichiers éditeurs autorisés sur une archive ouverte
Loading...

Dates et versions

hal-01094596 , version 1 (12-12-2014)
hal-01094596 , version 2 (08-01-2015)

Identifiants

  • HAL Id : hal-01094596 , version 2

Citer

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⟩
181 Consultations
107 Téléchargements

Partager

More