Assignment Unit 1 Automata
Assignment Unit 1 Automata
Q8. Define non-deterministic finite automata. How does it differ from deterministic finite automat?
Q9. Convert following NFA to equivalent DFA and hence minimize the number of states in the DFA.
Q10. Let M1 and M2 be the FA recognizing the languages L1 and L2 respectively. Draw finite automata
which recognize the language L2 – L1.
Q11. Construct a DFA that accepts the strings which contains the alphabets pattern 0ll (∑ = {0, 1}).
Q12. For the given stale diagram of a NFA. Convert it to an equivalent DFA.
Q15. Give DFA accepting the following languages over the alphabet {O, 1} -
(i) The set of all strings with three consecutive zeros.
(ii) The set of all strings such that every block of 05 consecutive symbols contains at least two
zeros.
Q16. Construct DFA equivalent to the NFA-({p,q,r,s },{O,l},§,p,{s}), where § is given by
Q22. Design NFA to recognize the following sets of strings abc, abd and aacd. Assume the alphabet is
{a, b, c, d}.
Q23. Let ∑ = {a, b}. for each of the following languages over ∑, construct DFA.
(i) All string that exactly contain one ‘a’
(ii) All string beginning with ‘ab’
(iii) All string that contain either the sub string ‘aaa’ or ‘ bbb ‘.
Q24.
Q25. Draw NDFA with specified number of states to accept the following languages
(i) All strings that contain the substring 0|01. ( 5 states)
(ii) All strings such that the third symbol from the right end is a ‘0’. (4 states)
Q26. Draw DFA for the following language over {0, 1}.
(i) All string with even number of 0’s and even number of 1’s.
(ii) All strings of length at most five.
Q27. Minimize the given DFA.