Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Nondeterministic finite automaton
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Example=== [[Image:NFAexample.svg|thumb|250px|The [[state diagram]] for ''M'']] Let <math>M</math> be a NFA-Ξ΅, with a binary alphabet, that determines if the input contains an even number of 0s or an even number of 1s. Note that 0 occurrences is an even number of occurrences as well. In formal notation, let <math display=block>M = (\{S_0, S_1, S_2, S_3, S_4\}, \{0, 1\}, \delta, S_0, \{S_1, S_3\})</math> where the transition relation <math>\delta</math> can be defined by this [[state transition table]]: {| class="wikitable" style="margin-left:auto;margin-right:auto; text-align:center;" ! {{diagonal split header|State|Input}} ! 0 ! 1 ! Ξ΅ |- ! ''S''<sub>0</sub> | {} | {} | {''S''<sub>1</sub>, ''S''<sub>3</sub>} |- ! ''S''<sub>1</sub> | {''S''<sub>2</sub>} | {''S''<sub>1</sub>} | {} |- ! ''S''<sub>2</sub> | {''S''<sub>1</sub>} | {''S''<sub>2</sub>} | {} |- ! ''S''<sub>3</sub> | {''S''<sub>3</sub>} | {''S''<sub>4</sub>} | {} |- ! ''S''<sub>4</sub> | {''S''<sub>4</sub>} | {''S''<sub>3</sub>} | {} |} <math>M</math> can be viewed as the union of two [[deterministic finite automaton|DFA]]s: one with states <math>\{S_1, S_2\}</math> and the other with states <math>\{S_3, S_4\}</math>. The language of <math>M</math> can be described by the [[regular language]] given by this [[regular expression]] <math>(1^{*}01^{*}01^{*})^{*} \cup (0^{*}10^{*}10^{*})^{*}</math>. We define <math>M</math> using Ξ΅-moves but <math>M</math> can be defined without using Ξ΅-moves.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)