Professional Documents
Culture Documents
Assignment #03: Theory of Automata
Assignment #03: Theory of Automata
Theory of Automata
5-C
(b) The language { w ∈ Ʃ* | w contains the substring 0101, i.e., w = x0101y for
some x, y ∈ Ʃ* } with five states.
(c) The language { w ∈ Ʃ* | w contains at least two 0’s, or exactly two 1’s} with
six states.
States ε-closure
1 1, 2
2 2
3 3
States a b
±1 1, 2, 3 -
-2 1, 2 -
3 2 2, 3
Conversion of NFA to DFA.
States a b
±1, 2 1, 2, 3 -
-1, 2, 3 1, 2, 3 2, 3
-2, 3 1, 2 2, 3