Advanced TOC: Dfa, Nfa, TG, GTG
Advanced TOC: Dfa, Nfa, TG, GTG
The above transition diagram is an FA accepting the language of strings, defined over Σ = {a, b}, starting
with a. It may be noted that this language may be expressed by the regular expression a(a + b)*
DFA accept even length words
EVEN-EVEN
Nondeterministic Finite Automaton (NFA)
An NFA is a TG with a unique start state and a property of having single
letter as label of transitions.
An NFA is a collection of three things Finite many states with one initial
and some final states
Finite set of input letters, say, Σ = {a, b, c}
Finite set of transitions, showing where to move if a letter is input at
certain state (∧ is not a valid transition), there may be more than one
transition for certain letters and there may not be any transition for
certain letters.
It may be observed, from the definition of NFA, that the string is
supposed to be accepted, if there exists at least one successful path,
otherwise rejected.
Example
It is to be noted that the above NFA accepts the language consisting of a and ab.
It is to be noted that the above NFA accepts the language of strings, defined over Σ = {a, b},
containing aa.
Transition Graph
A Transition graph (TG), is a collection of the followings
Finite number of states, at least one of which is start state and some
(maybe none) final states.
Finite set of input letters (Σ) from which input strings are formed.
Finite set of transitions that show how to go from one state to another
based on reading specified substrings of input letters, possibly even the
null string (Λ).
Containing double a.