in the theory of computation, a generalized nondeterministic finite automaton (gnfa), also known as expression automaton or generalized nondeterministic finite state machine is a variation of nfa where each transition is labeled with any regular expression. the gnfa reads blocks of symbols from the input which constitute a string as defined by the regular expression on the transition. there are several differences between a standard finite state machine and a generalized nondeterministic finite state machine. a gnfa must have only one start state and one accept state, and these cannot be the same state, whereas a nfa or dfa both may have several accept states, and the start state can be an accept state. a gnfa must have only one transition between any two states, whereas a nfa or dfa both allow for numerous transitions between states. in a gnfa, a state has a single transition to every state in the machine, although often it is a convention to ignore the transitions that are labelled with the empty set when drawing generalized nondeterministic finite state machines. ==formal definition== a gnfa can be defined as a 5-tuple, (s, Î£, t, s, a), consisting of * a finite set of states (s); * a finite set called the alphabet (Î£); * a transition function (t : (s &#x2216; {a}) &times; (s &#x2216; {s}) â r); * a start state (s â s); * an accept state (a â s); where r is the collection of all regular expressions over the alphabet Î£. the transition function takes as its argument a pair of two states and outputs a regular expression (the label of the transition). this differs from other finite state machines, which take as input a single state and an input from the alphabet (or the empty string in the case of nondeterministic finite state machines) and outputs the next state (or the set of possible states in the case of nondeterministic finite state machines). a dfa or nfa can easily be converted into a gnfa and then the gnfa can be easily converted into a regular expression by repeatedly collapsing parts of it to single edges until s = {s, a}. similarly, gnfas can be reduced to nfas by changing regular expression operators into new edges until each edge is labelled with a regular expression matching a single string of length at most 1. nfas, in turn, can be reduced to dfas using the powerset construction. this shows that gnfas recognize the same set of formal languages as dfas and nfas. ==references== * yo-sub han and derick wood. "the generalization of generalized automata: expression automata." in: 9th international conference on implementation and application of automata, ciaa 2004, kingston, canada, july 22â24, 2004, revised selected papers, lncs 3317,
Automata_theory