Deterministic Finite Automata
A deterministic finite automaton is a 5-tuple
, a finite set of states , a finite alphabet , the transition function , the start state , the accept states
Nondeterministic Finite Automata
Define
A nondeterminstic finite automaton is a 5-tuple
, a finite set of states , a finite alphabet , the transition function the start state the accept states
Given a string
Every NFA has an equivalent DFA over the states
Regular Expressions
A language is regular if it is recognized by some DFA
Given languages
- union
- concatenation
- star
Regular languages are closed under these operations.
A regular expression
A language is regular if it can be expressed by a regular expression.
Generalized Nondeterministic Finite Automata
A generalized nondeterministic finite automata is a 5-tuple
is a finite set of states is a finite alphabet is a transition function, and is the set of all regular expressions over is the start state is the accept state
A GNFA accepts a string
Define a procedure
- Let
be the number of states of - If
, then there is a start and end state connected by an arrow. Return the regex of this arrow - If
, pick any such that and let be a GNFA where , and for all , , - Compute and return
Pumping Lemma
If
- for
,
The proof for this uses the pidgeon hole principle to show that for a DFA with
This tool is used to show that languages are not regular.