Counting in trees for free - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2004

Counting in trees for free

Résumé

In [22], it was shown that MSO logic for ordered unranked trees becomes undecidable if Presburger constraints are allowed at children of nodes. We now show that a decidable logic is obtained if we use a a modal fixpoint logic instead. We present an automata theoretic characterization of this logic by means of deterministic Pres-burger tree automata (PTA) and show how it can be used to express numerical document queries. Surprisingly, the complexity of satisfiability for the extended logic is asymptotically the same as for the original logic. The non-emptiness for PTAs is in general pspace-complete which is moderate given that it is already pspace-hard to test whether the complement of a regular expression is non-empty. We also identify a subclass of PTAs with a tractable non-emptiness problem. Further, to decide whether a tree t satisfies a formula $\phi$ is polynomial in the size of $\phi$ and linear in the size of t. A technical construction of independent interest is a linear time construction of a Presburger formula for the Parikh set of a finite automaton.
Fichier principal
Vignette du fichier
icalp04pres.pdf (244.08 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-00159525 , version 1 (03-07-2007)

Identifiants

  • HAL Id : hal-00159525 , version 1

Citer

Helmut Seidl, Thomas Schwentick, Anca Muscholl, Peter Habermehl. Counting in trees for free. 31st International Colloquium on Automata, Languages and Programming (ICALP'04), 2004, Turku, Finland. pp.1136-1149. ⟨hal-00159525⟩
143 Consultations
481 Téléchargements

Partager

Gmail Facebook X LinkedIn More