Professional Documents
Culture Documents
Deterministic Finite Automatadfa
Deterministic Finite Automatadfa
Deterministic Finite Automatadfa
A T U TO R IAL
BY
A N I M ESH CHAT U RVEDI
AT
I N DI A N I N STITU TE OF T ECHN OLOGY I N DOR E ( I I T - I)
Deterministic Finite Automata (DFA)
Representation of DFA
M1 = (Q, Σ, δ, q1, F ) where
Q = {q1, q2, q3}, Σ = {0, 1},
0 1
q1 q1 q2
the transition function δ is
q2 q3 q2
q3 q2 q2
Final state F = {q2}.
q1 is the start state, and F = {q2}.
Example: Testing Membership
01011
Next
symbol
0 0,1
1 1
A B C
Start 0
Current
state
4
Example: Testing Membership
01011
Next
symbol
0 0,1
1 1
A B C
Start 0
Current
state
5
Example: Testing Membership
01011
Next
symbol
0 0,1
1 1
A B C
Start 0
Current
state
6
Example: Testing Membership
01011
Next
symbol
0 0,1
1 1
A B C
Start 0
Current
state
7
Example: Testing Membership
01011
Next
symbol
0 0,1
1 1
A B C
Start 0
Current
state
8
Example: Testing Membership
01011
Next
symbol
0 0,1
1 1
A B C
Start 0
Current
state
9
11 1
0
0,1
1
0111 111 1
0 0
Missing arks
Computer Science GATE 2012
Find missing arks
Consider the set of strings on {0,1} in which, every substring of 3 symbols has at most two
zeros. For example, 001110 and 011001 are in the language, but 100010 is not. All strings of
length less than 3 are also in the language. Draw the missing arks to complete a partially
completed DFA given below
Missing arks
Computer Science GATE 2012
Up Next
A DFA represent a Regular Expression language
Deterministic finite automata (DFA) and Non-deterministic finite automata (NFA) have same
expressive power.
Deterministic and non-deterministic finite automata accept exactly the same set of languages.
DFA or NDFA has less expressive power than Deterministic push down automata (DPDA)