Tutorial - DFA NFA
Tutorial - DFA NFA
Tutorial-
0 1 ε
->q0 { q1 } { q1 } { q2}
*q1 { q 0, q2 } { q1 } { q2 }
q2 - { q1 } -
5. (a) Construct a NFA that accepts all strings of 0’s and 1’s such that the second symbol
from the right end is a 1.
(b) Convert this NFA into equivalent DFA.
6. (a) Design a DFA to accept all strings of a’s and b’s such that the strings are of the form (abb)n :
n>=1
(b) Design a DFA to accept all ternary strings(base 3) strings divisible by 4.
7. (a) Differentiate between DFA,NFA and ε- NFA.
(b) Write the extended Transition function of NFA.