1,119 views
2 votes
2 votes

I have a little doubt regarding the Language L.Any one please what L contain?

2 Answers

Best answer
4 votes
4 votes

Here, L1 = { anbmcn  | n,m>=0 }

         L2 = { anbn     | n >=0 }

L = L1 - L2

   = L1 intersection L2c .  // L2c => { anbm     | n,m >=0 and n !=m }

   =  anbmc- epsilon. | n,m >=0.

Here L is a DCFL.

Equivalent DPDA for L is,

selected by
2 votes
2 votes

First of all we know :

 Identifying the resultant language :

L- L2 means string is in L1  but not in L..Means this set will not contain the strings which have equal number of a's followed b's.So in short only those strings will contain which have either equal number of a's followed by c's and no of b's in between or any non zero number of b's..Thus we obtain the resultant language as {anbmcn|n >= 1,m >=0 } ∪ {bn | n >= 1} [as epsilon is a part of L2]  which is a DCFL..

This way we can also deduce that the language given in the question is a DCFL..Hence C) is the correct answer..

But this method requires correct identification reasoning ..Then only we can arrive at the correct answer..If we are not able to get the idea about what type of strings will be generated , it is better to go with the original method which is discussed earlier..

edited by

Related questions

0 votes
0 votes
2 answers
1
KISHALAY DAS asked Nov 15, 2016
362 views
1 votes
1 votes
1 answer
2
KISHALAY DAS asked Nov 14, 2016
173 views
0 votes
0 votes
1 answer
3
KISHALAY DAS asked Nov 14, 2016
362 views