346 views
0 votes
0 votes

If L1 = {a^nb^nc^md^m | n,m>=0}

L2 = {a^nb^n | n>=0}

L3 = {c^md^m | m>=0}

Then L1 – L2.L3(concatenation) is?

  1. Regular
  2. CSL
  3. CFL
  4. REL(recursive enumerable)

1 Answer

Best answer
2 votes
2 votes

Given,

L1 = {a^n b^n c^m d^m | n, m>=0} = {ɛ, ab, cd, abcd, aabb, ccdd,…..}

L2 = {a^n b^n | n>=0} = {ɛ, ab, aabb, aaabbb, …..}

L3 = {c^m d^m | m>=0} = {ɛ, cd, ccdd, cccddd, …..}

 

Now, L2.L3 = {ɛ, ab, aabb, aaabbb, …..} . {ɛ, cd, ccdd, cccddd, …..}

 = {ɛ, ab, cd, abcd, aabb, ccdd, aabbcd, aabbccdd ….}

see, L2.L3 contain all the element which is present in L1

so, L1 – L2.L3 = {} (empty set) which is regular

As L1 – L2.L3 is regular so its CFL, CSL, REL

Hence all option is correct

selected by

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
3 answers
2
rasto mapp asked Sep 2, 2017
382 views
Regular expression always generates a language.Is it true?Why?
3 votes
3 votes
1 answer
3
Deepthi_ts asked Apr 17, 2017
4,191 views
Consider regular expression r, where r = (11 + 111)* over Ʃ = {0, 1}. Number of states in minimal NFA and DFA respectively are:ANFA – 3, DFA – 4BNFA – 3, DFA – 3...
1 votes
1 votes
2 answers
4
Deepthi_ts asked Apr 17, 2017
3,032 views
Suppose M1 and M2 are two TM’s such that L(M1) = L(M2). ThenAOn every input on which M1 doesn’t halt, M2 doesn’t halt too.BOn every i/p on which M1 halts, M2 halts ...