Tree Automata
Geetam Chawla Stanly Samuel
ATC Seminar 2018
Tree Automata Geetam Chawla Stanly Samuel ATC Seminar 2018 Intro - - PowerPoint PPT Presentation
Tree Automata Geetam Chawla Stanly Samuel ATC Seminar 2018 Intro DTA Pumping Lemma Overview Tree-regular languages Some interesting results. NTA NTA vs DTA Introduction: Automata on words vs automata on
Geetam Chawla Stanly Samuel
ATC Seminar 2018
Tree-regular languages
results.
Automata over finite words: (Finite Automata)FA->DFA->NFA Generalizing Finite automata: Automata over infinite words: (Buchi Automata)BA->NBA->DBA Automata over (finite) trees: (Tree Automata)TA->DTA->NTA->↓NTA-> ↓DTA
Definition A ranked alphabet is a non-empty finite set Σ of symbols, where every symbol a is assigned a finite set rk(a) ⊆ N (the set of all ranks or arities of a). Σi :={ a ∈ Σ | i ∈ rk(a)} Σ = Σ0∪···∪Σm (where m= max{ rk(a) | a ∈ Σ}) Note that the Σi need not be disjoint.
Let Σ = Σ0 ∪ . . . ∪ Σn be a ranked alphabet. The set TΣ of trees (or terms) over Σ is defined inductively by:
A deterministic tree automaton (DTA) is a tuple A = ( Q, Σ , δ, F ) where
× Σi )→Q is a transition function.
number of states of a tree automaton recognizing T ) the following holds: If the height of t ∈ T is ≥ n , then there are two nodes on a path of t that can split t₀ in three pieces t₀, s1 , s2 , such that an iteration (arbitrarily often) of s1 ≠ c results in trees that also belong to T . In short notation: t = t₀ ◦ s1 ◦ s2 with t₀ ◦ (s1)ⁱ ◦ s2 ∈ T for every i ≥ 0.
T1 ◦ T2. A requirement: T2 must be “special”. I.e. T2 has a special node “c” whose rank = {0} C acts as a marker where we can “insert” T1. It implies second operand must contain exactly one c otherwise the operation is undefined. Corollary: Not commutative
A Nondeterministic Tree Automaton (NTA) is a tuple A = ( Q, Σ, ∆, F ) where
By convention Q0 × Σ0 × Q = Σ0 × Q. A run of A on a tree t ∈ TΣ is a mapping ρ : domt → Q such that
(ρ(u1), . . . , ρ (ui), valt(u), ρ(u)) ∈ ∆. An NTA A accepts a tree t ∈ TΣ if for some run ρ of A on t, ρ(ϵ) ∈ F . The tree-language recognized by A is T(A) = {t ∈ TΣ |A accepts t}.
1) If G is a CFG, then T(G) viz. the set of all derivation trees is tree regular. 2) Not every regular tree language can be represented as a language T(G) for some CFG G.
A Nondeterministic Tree Automaton (NTA) is a tuple A = ( Q, Σ , ∆ , F ) where
A run of A on a tree t ∈ TΣ is a mapping ρ : domt → Q such that
(ρ(u), valt(u), ρ(u1), . . . , ρ (ui)) ∈ ∆. An NTA A accepts a tree t ∈ TΣ iff there exists a run on t.
A Top down Deterministic Tree Automaton (↓DTA) is a tuple A = ( Q, Σ , ∆ , F ) is a special ↓NTA that has:
A Top down Deterministic Tree Automaton (↓DTA) is a tuple A = ( Q, Σ , ∆ , F ) is a special ↓NTA that has:
↓DTA is strictly less powerful than ↓NTA. E.g.