Assignment 01
Assignment 01
a) L = { w | w starts and ends with different symbol, having even length strings when
starts with a or odd length strings when starts with b} where, ∑ = {a,b}
b) L = { w | w starts with “ab”, contains “cca” as a substring and ends with “aba”}
where, ∑ = {a,b,c}
a) L= {w | w starts with “12” or “32” and contains “222” or “111” or “333” and ends
with “31” or “23”} | Σ = {1,2,3}
b) L= {w | w double “1” is followed by triple “0” and starts with “0”} | Σ = {0,1}
c) L= {w | w third symbol from the right end is always “a” and the second symbol is
either “b” or “c”} | Σ = {a,b,c}
d) L= contains „xx’ or „yx‟ or „zz‟ and ends with „yz‟ or „y‟ | ∑ = {x,y,z}
Page 1 of 2
3. Consider the following NFA, and show with the help of NFA-tree whether the string aabbbbaa 2
is accepted or not.
Page 2 of 2