Content deleted Content added
m Reverted edits by 69.81.14.78 to last version by 61.21.31.239 |
Unicodifying |
||
Line 3:
==Formal definition==
A GNFA can be defined as a [[n-tuple|5-tuple]], (''S'',
* a finite set of states (''S'')
* a finite set call the alphabet (
* a transition [[function (mathematics)|function]] (''T'' : (''S'' -{''a''}) × (''S'' - {''s''})
* a start state (''s''
* an accept state (''a''
where ''R'' is the collection of all [[regular expressions]] over the alphabet
A [[deterministic finite automaton|DFA]] or [[nondeterministic finite automaton|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 language]]s as DFAs and NFAs.
|