Assignment 1 Toc
Assignment 1 Toc
10 marks questions
1. a) Find the regular expression corresponding to the following figure :
4. Find the regular expression for the following Language and draw transition diagram
for DFAthat accept the language.
i. Set of all strings over {a, b} with three consecutive b’s.
ii. Set of all strings over {0, 1} with even length.
iii. Set of all strings over {0, 1} begin with 00 and end with 11.
iv. Set of strings over {0, 1} begin and end with 00 or 11.
v. Set of all strings with an even number of a’s followed by an
odd number ofb’s.
vi. Set of all strings over {0, 1} has no pair of consecutive zeros.
vii. Set of all strings over {0, 1} has at least two zeros.
viii. Set of all strings over {0, 1} has at least one pair of consecutive zeros.
ix. Set of all strings over {0, 1} contain 1100 or 1010 as substring
c) Prove ᴧ +1*(011)*(1*(011)*)*=(1+011)*.
6. a) Prove that ( a * ab + ba )* a* = ( a + ab + ba )*
b) Show that L = {wp / p is prime }is not regular.
6.
7. The regular expression for the language recognized by the finite state automaton of
thefollowing figure is
8. Let ∑={0,1}, L=∑* and R={0n 1nsuch that n>0}.Are the languages L and R regular?
9. Let L ∑* where ∑={a,b}. Now check whether
(a) L={x x has an equal number of a’s and b’s} is regular
(b) L={an bn│n≥1} is regular
(c) L={x│x has more a’s than b’s} is regular
(d) L={am bn │m≥,n≥1} is regular
10. Given that A is regular and (A 𝖴 B) is regular, does it follow that B is necessarily
regular?Justify your answer.
11. The regular expression for the language recognized by the finite state
automaton of thefollowing figure is
12. Let ∑={0,1}, L=∑* and R={0n 1nsuch that n>0}.Are the languages L and R regular?
14. Given that A is regular and (A 𝖴 B) is regular, does it follow that B is necessarily
regular?Justify your answer.