Tree walking automaton

Tree walking automaton

A tree walking automaton (TWA) is a type of finite automaton that deals with tree structures rather than strings.

The following article deals with tree walking automata. For a different notion of tree automaton, closely related to regular tree languages, see branching automaton.

Definition

All trees are assumed to be binary, with labels from a fixed alphabet Sigma.

Informally, a tree walking automaton A (TWA) is a finite state device which walks over the tree in a sequential manner. At each moment A visits node v in state q. Depending on the state q, the label of the node v, and whether the node is the root, a left child, a right child or a leaf, A changes its state from q to q' and moves to the parent of v or its left or right child. A TWA accepts a tree if it enters an accepting state, and rejects if its enters a rejecting state or makes an infinite loop. As with string automata, a TWA may be deterministic or nondeterministic.

More formally, a (nondeterministic) tree walking automaton over alphabet Sigma is a tuple:A=(Q, Sigma, I, F, R, delta)

where Q is a finite set of states, I, F, R subset Q are the sets of respectively initial, accepting and rejecting states, and delta is the transition relation: delta subset (Q imes { root, left, right,leaf } imes Sigma imes { up, left, right } imes Q).

Example

A simple example of a tree walking automaton is a TWA that performs depth-first search (DFS) on the input tree. The automaton A has 3 states, Q = /{ q_{0}, q_{left}, q_{right} /}. A begins in the root in state q_{0} and descends to the left subtree. Then it processes the tree recursively. Whenever A enters a node v in state q_{left}, it means that the left subtree of v has just been processed, so it proceeds to the right subtree of v. If A enters a node v in state q_{right}, it means that the whole subtree with root v has been processed and A walks to the parent of v and changes its state to q_{left} or q_{right}, depending on whether v is a left or right child.

The resulting automaton is the following:

Properties

Unlike branching automata, tree walking automata are difficult to analyze and even simple properties are nontrivial to prove. The following list summarizes known facts and open problems related to TWA:
*deterministic TWA are strictly weaker than nondeterministic ones (DTWA subsetneq TWA)
*deterministic TWA are closed under complementation; it is not known whether the same holds for nondeterministic ones
*the set of languages recognized by TWA is strictly contained in regular tree languages (TWA subsetneq REG), i.e. there exists a regular language which is not recognized by any tree walking automaton

ee also

*Pebble automata, an extension of tree walking automata

External links

* [http://www.mimuw.edu.pl/~bojan/papers/twasurvey.pdf A brief survey of tree walking automata]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Tree automaton — A tree automaton is a type of state machine. Tree automata deal with tree structures, rather than the strings of more conventional state machines. The following article deals with branching tree automata, which correspond to regular languages of… …   Wikipedia

  • Pebble automaton — A pebble automaton is an extension of tree walking automata which allows the automaton to use a finite amount of pebbles , used for marking tree node. The result is a model stronger than ordinary tree walking automata, but still strictly weaker… …   Wikipedia

  • History of robots — The history of robots date at least as far back as the ancient legends.Robotics in AntiquityLikely fictional, the Iliad illustrates the concept of robotics by stating that the god Hephaestus made talking mechanical handmaidens out of gold. cite… …   Wikipedia

  • List of characters in the Camp Half-Blood series — This is a list of characters in the Percy Jackson the Olympians series and in the The Heroes of Olympus series. Contents 1 Main characters 1.1 Perseus Jackson 1.2 Annabeth Chase …   Wikipedia

  • literature — /lit euhr euh cheuhr, choor , li treuh /, n. 1. writings in which expression and form, in connection with ideas of permanent and universal interest, are characteristic or essential features, as poetry, novels, history, biography, and essays. 2.… …   Universalium

  • Petri net — A Petri net (also known as a place/transition net or P/T net) is one of several mathematical modeling languages for the description of distributed systems. A Petri net is a directed bipartite graph, in which the nodes represent transitions (i.e.… …   Wikipedia

  • Niagara Frontier Transportation Authority — NFTA redirects here. For Nondeterministic Finite Tree Automaton, see Tree automaton. For the North American trade agreement, see NAFTA. Niagara Frontier Transportation Authority Slogan Serving Buffalo Niagara Founded 1967 …   Wikipedia

  • List of mathematics articles (B) — NOTOC B B spline B* algebra B* search algorithm B,C,K,W system BA model Ba space Babuška Lax Milgram theorem Baby Monster group Baby step giant step Babylonian mathematics Babylonian numerals Bach tensor Bach s algorithm Bachmann–Howard ordinal… …   Wikipedia

  • Gene Wolfe — (* 7. Mai 1931 in Brooklyn) ist ein US amerikanischer Science Fiction und Fantasy Autor. Gene Wolfe ist bekannt für seine an Vladimir Nabokov und Jorge Luis Borges geschulte dichte und anspielungsreiche Prosa. Sein Novellen Zyklus „Der fünfte… …   Deutsch Wikipedia

  • Europe, history of — Introduction       history of European peoples and cultures from prehistoric times to the present. Europe is a more ambiguous term than most geographic expressions. Its etymology is doubtful, as is the physical extent of the area it designates.… …   Universalium

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”