Exercise01 DFA
Exercise01 DFA
Manipur University
Assignment No. 1
Ex1. Give DFA’s accepting the following strings over the alphabet {0,1}:
iii) The set of all strings with exactly three consecutive 0’s.
iv) The set of all strings of even length and ending with 10.
v) The set of all strings containing even no of 0’s and odd no of 1’s.
Ex2. Give DFA’s accepting the following strings over the alphabet {0,1}:
i) The set of all strings such that the number of 0’s is even and the number of 1’s is
a multiple of 3.
iii) The set of all strings that begin with 01 and ends with 11.
iv) The set of all string when interpreted as a binary integer is divisible by 3.
Ex3. Give DFA’s accepting the following strings over the alphabet {0,1,2,3,4,5,6,7,8,9}:
e.g. 132 and 690 are accepted because they are divisible by 3 but 134 not accepted
ii) The set of all string when interpreted as a decimal integer is divisible by 5.
Ex4. Give DFA’s accepting strings over the alphabet {a-z,A-Z,0-9,_} which are
Input alphabet, set of states, start state, set of final states, transition function.
iii) Explain the concept of extended transition function and the language accepted by a DFA.