TOC_Notes-V2 (1)
TOC_Notes-V2 (1)
Classes of automata
1. Obtain a DFA to accept strings of a’s and b’s starting with the string ab.
Solution: Write M = (Q, Σ, δ, q0, F) and construct DFA transition table, take an example and
show for the acceptance of accepted string and rejected string. Refer the slides.
So, the DFA which accepts strings of a’s and b’s starting with the string ab is given by
M = ( Q, Σ, δ, q0, F) where
Σ = {a, b}
2. Draw a DFA to accept string of 0’s and 1’s ending with the string 011.
3. Obtain a DFA to accept strings of a’s and b’s having a sub string aa
4. Obtain a DFA to accept strings of a’s and b’s except those containing the substring aab.
5. Obtain DFAs to accept strings of a’s and b’s having exactly one a.
6. Obtain a DFA to accept strings of a’s and b’s having even number of a’s and b’s
7. Obtain a DFA to accept strings of a’s and b’s having odd number of a’s and even
number of b’s.
The machine to accept odd number of a’s and even number of b’s.
8. Obtain a DFA to accept strings of a’s and b’s having even number of a’s and odd
number of b’s.
The machine to accept even number of a’s and odd number of b’s.
9. Obtain a DFA to accept strings of a’s and b’s having odd number of a’s and odd number
of b’s.
The machine to accept odd number of a’s and odd number of b’s.
Regular language