TOA Assignemnt 1 GC
TOA Assignemnt 1 GC
Please carefully read the following instructions before attempting the assignment.
It should be clear that your assignment would not get any credit if:
You should consult the recommended books to clarify your concepts as handouts are not
sufficient.
Any other formats like scan images, PDF, ZIP, RAR, PPT, BMP, etc. will not be accepted.
i. Identify the language “L” accepted by the following regular expression a*ba*b(a+b)*.
Also define the recursive definition of that language.
ii. Write a R.E for the following language over the alphabet L = {a,b} such that it
accepts all the strings in which the letter “b” is never tripled.
iii. Construct a R.E defining each of the following Language over the alphabet ∑ = {x, y}
a. All words end in 3 consecutive “y”.
b. All words having at least one “x”.
iv. Provide the R.E defined over the ∑ = {0, 1} for the string belonging to the following
language
a. All strings having zeros in multiples of three.
b. All strings that do not start with double zeros.
c. All string starting with zero and having no consecutive ones.
v. Consider the following R.E (a +b +c)*(aa +bb +cc)(a +b +c)*
What will be the minimum length of the string that can be generated by the above
R.E? Also write all the possible minimum length strings.
vi. Consider the following alphabet: ∑ = {w, x, y, z}; how many numbers of strings of
length 4 can be generated from the above alphabet?
i. Construct a DFA theta start with “xy” & ends with “yx” over the ∑={x,y}
ii. Construct a R.E for the given language defined over ∑ ={a, b, c}; the language
should start with “b” and ends with “a” & “c” occurs only once in a string as a 3rd
letter. Also construct the FA.
iii. Give the regular expression over ∑ ={a,b} for the language all the words having “b”
as a 2nd letter. Also draw the FA of that R.E.
iv. Construct a FA which recognizes the set of all strings defined over ∑= {0, 1} ending
with the suffix “10”. Also draw transition table for that language.