2,666 views
2 2 votes

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

2 Answers

Best answer
4 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 }

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

Here L is a DCFL.

Equivalent DPDA for L is,

• selected by
2 2 votes

First of all we know :

 Identifying the resultant language :

L1 - L2 means string is in L1  but not in L2 ..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
Position:
Show:

Related questions

0 0 votes
2 answers 2 answers
713
713 views
KISHALAY DAS asked Nov 15, 2016
713 views
1 1 vote
1 answers 1 answer
359
359 views
KISHALAY DAS asked Nov 14, 2016
359 views
0 0 votes
1 answers 1 answer
898
898 views
KISHALAY DAS asked Nov 14, 2016
898 views
3 3 votes
0 0 answers
507
507 views
KISHALAY DAS asked Nov 13, 2016
507 views
Consider the following statements:S1 : Relative mode is the addressing mode which can be used to write code in which reallocation is done at run time.S2 : Indirect addres...