fbpx
Wikipedia

Alternating finite automaton

In automata theory, an alternating finite automaton (AFA) is a nondeterministic finite automaton whose transitions are divided into existential and universal transitions. For example, let A be an alternating automaton.

  • For an existential transition , A nondeterministically chooses to switch the state to either or , reading a. Thus, behaving like a regular nondeterministic finite automaton.
  • For a universal transition , A moves to and , reading a, simulating the behavior of a parallel machine.

Note that due to the universal quantification a run is represented by a run tree. A accepts a word w, if there exists a run tree on w such that every path ends in an accepting state.

A basic theorem states that any AFA is equivalent to a deterministic finite automaton (DFA), hence AFAs accept exactly the regular languages.

An alternative model which is frequently used is the one where Boolean combinations are in disjunctive normal form so that, e.g., would represent . The state tt (true) is represented by in this case and ff (false) by . This representation is usually more efficient.

Alternating finite automata can be extended to accept trees in the same way as tree automata, yielding alternating tree automata.

Formal definition edit

An alternating finite automaton (AFA) is a 5-tuple,  , where

  •   is a finite set of states;
  •   is a finite set of input symbols;
  •   is the initial (start) state;
  •   is a set of accepting (final) states;
  •   is the transition function.

For each string  , we define the acceptance function   by induction on the length of  :

  •   if  , and   otherwise;
  •  .

The automaton accepts a string   if and only if  .

This model was introduced by Chandra, Kozen and Stockmeyer.[1]

State complexity edit

Even though AFA can accept exactly the regular languages, they are different from other types of finite automata in the succinctness of description, measured by the number of their states.

Chandra et al.[1] proved that converting an  -state AFA to an equivalent DFA requires   states in the worst case, though a DFA for the reverse language can be constructued with only   states. Another construction by Fellah, Jürgensen and Yu.[2] converts an AFA with   states to a nondeterministic finite automaton (NFA) with up to   states by performing a similar kind of powerset construction as used for the transformation of an NFA to a DFA.

Computational complexity edit

The membership problem asks, given an AFA   and a word  , whether   accepts  . This problem is P-complete.[3] This is true even on a singleton alphabet, i.e., when the automaton accepts a unary language.

The non-emptiness problem (is the language of an input AFA non-empty?), the universality problem (is the complement of the language of an input AFA empty?), and the equivalence problem (do two input AFAs recognize the same language) are PSPACE-complete for AFAs[3]: Theorems 23, 24, 25 .

References edit

  1. ^ a b Chandra, Ashok K.; Kozen, Dexter C.; Stockmeyer, Larry J. (1981). "Alternation". Journal of the ACM. 28 (1): 114–133. doi:10.1145/322234.322243. ISSN 0004-5411.
  2. ^ Fellah, A.; Jürgensen, H.; Yu, S. (1990). "Constructions for alternating finite automata∗". International Journal of Computer Mathematics. 35 (1–4): 117–132. doi:10.1080/00207169008803893. ISSN 0020-7160.
  3. ^ a b Theorem 19 of Holzer, Markus; Kutrib, Martin (2011-03-01). "Descriptional and computational complexity of finite automata—A survey". Information and Computation. 209 (3): 456–470. doi:10.1016/j.ic.2010.11.013. ISSN 0890-5401.

alternating, finite, automaton, automata, theory, alternating, finite, automaton, nondeterministic, finite, automaton, whose, transitions, divided, into, existential, universal, transitions, example, alternating, automaton, existential, transition, displaystyl. In automata theory an alternating finite automaton AFA is a nondeterministic finite automaton whose transitions are divided into existential and universal transitions For example let A be an alternating automaton For an existential transition q a q 1 q 2 displaystyle q a q 1 vee q 2 A nondeterministically chooses to switch the state to either q 1 displaystyle q 1 or q 2 displaystyle q 2 reading a Thus behaving like a regular nondeterministic finite automaton For a universal transition q a q 1 q 2 displaystyle q a q 1 wedge q 2 A moves to q 1 displaystyle q 1 and q 2 displaystyle q 2 reading a simulating the behavior of a parallel machine Note that due to the universal quantification a run is represented by a run tree A accepts a word w if there exists a run tree on w such that every path ends in an accepting state A basic theorem states that any AFA is equivalent to a deterministic finite automaton DFA hence AFAs accept exactly the regular languages An alternative model which is frequently used is the one where Boolean combinations are in disjunctive normal form so that e g q 1 q 2 q 3 displaystyle q 1 q 2 q 3 would represent q 1 q 2 q 3 displaystyle q 1 vee q 2 wedge q 3 The state tt true is represented by displaystyle emptyset in this case and ff false by displaystyle emptyset This representation is usually more efficient Alternating finite automata can be extended to accept trees in the same way as tree automata yielding alternating tree automata Contents 1 Formal definition 2 State complexity 3 Computational complexity 4 ReferencesFormal definition editAn alternating finite automaton AFA is a 5 tuple Q S q 0 F d displaystyle Q Sigma q 0 F delta nbsp where Q displaystyle Q nbsp is a finite set of states S displaystyle Sigma nbsp is a finite set of input symbols q 0 Q displaystyle q 0 in Q nbsp is the initial start state F Q displaystyle F subseteq Q nbsp is a set of accepting final states d Q S 0 1 Q 0 1 displaystyle delta colon Q times Sigma times 0 1 Q to 0 1 nbsp is the transition function For each string w S displaystyle w in Sigma nbsp we define the acceptance function A w Q 0 1 displaystyle A w colon Q to 0 1 nbsp by induction on the length of w displaystyle w nbsp A ϵ q 1 displaystyle A epsilon q 1 nbsp if q F displaystyle q in F nbsp and A ϵ q 0 displaystyle A epsilon q 0 nbsp otherwise A a w q d q a A w displaystyle A aw q delta q a A w nbsp The automaton accepts a string w S displaystyle w in Sigma nbsp if and only if A w q 0 1 displaystyle A w q 0 1 nbsp This model was introduced by Chandra Kozen and Stockmeyer 1 State complexity editMain article State complexity Even though AFA can accept exactly the regular languages they are different from other types of finite automata in the succinctness of description measured by the number of their states Chandra et al 1 proved that converting an n displaystyle n nbsp state AFA to an equivalent DFA requires 2 2 n displaystyle 2 2 n nbsp states in the worst case though a DFA for the reverse language can be constructued with only 2 n displaystyle 2 n nbsp states Another construction by Fellah Jurgensen and Yu 2 converts an AFA with n displaystyle n nbsp states to a nondeterministic finite automaton NFA with up to 2 n displaystyle 2 n nbsp states by performing a similar kind of powerset construction as used for the transformation of an NFA to a DFA Computational complexity editThe membership problem asks given an AFA A displaystyle A nbsp and a word w displaystyle w nbsp whether A displaystyle A nbsp accepts w displaystyle w nbsp This problem is P complete 3 This is true even on a singleton alphabet i e when the automaton accepts a unary language The non emptiness problem is the language of an input AFA non empty the universality problem is the complement of the language of an input AFA empty and the equivalence problem do two input AFAs recognize the same language are PSPACE complete for AFAs 3 Theorems 23 24 25 References edit a b Chandra Ashok K Kozen Dexter C Stockmeyer Larry J 1981 Alternation Journal of the ACM 28 1 114 133 doi 10 1145 322234 322243 ISSN 0004 5411 Fellah A Jurgensen H Yu S 1990 Constructions for alternating finite automata International Journal of Computer Mathematics 35 1 4 117 132 doi 10 1080 00207169008803893 ISSN 0020 7160 a b Theorem 19 of Holzer Markus Kutrib Martin 2011 03 01 Descriptional and computational complexity of finite automata A survey Information and Computation 209 3 456 470 doi 10 1016 j ic 2010 11 013 ISSN 0890 5401 Pippenger Nicholas 1997 Theories of Computability Cambridge University Press ISBN 978 0 521 55380 3 Retrieved from https en wikipedia org w index php title Alternating finite automaton amp oldid 1186338606, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.