Professional Documents
Culture Documents
Lecture 5
Lecture 5
Finite Automata
DFA
Finite Automata
2
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
Definition
• Consider the Language L , defined over Σ = {a, b} of all
non empty strings.
3
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
EVEN-EVEN
Consider the EVEN-EVEN language, defined over Σ = {a,
b}.
4
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
Note
Consider the Language L , defined over Σ = {a, b} of all strings
including Λ
5
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
Equivalent FA
6
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
Transition Diagrams
• Consider the language L of strings, defined over Σ={a, b}, ending in a
7
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
Note !
• Consider the following FA, defined over Σ = {a, b}
It is to be noted that the above FA does not accept any string, even it
does not accept the null string; as there is no path starting from initial
state and ending in final state.
8
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
9
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
10
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
11
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
12
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
13
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
14
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
15
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
16
UIIT, PMAS-Arid Agriculture University, Rawalpindi
Lecture 05: Theory of Automata:2011
Transition Table
• The transition list can be summarized in a table
format in which each row is the name of one of
the states, and each column is a letter of the
input alphabet.
• For example, the transition table for the FA
above is
17
UIIT, PMAS-Arid Agriculture University, Rawalpindi