retagged by
673 views
4 votes
4 votes

is this a regular Language?

L=(a+b)*  | where No of (a)-no of(b) <=10

retagged by

4 Answers

1 votes
1 votes

Not regular.. It can be written as 

{L=(a+b)* | where No of (a)-10 <= no of(b)}

We need to count no of a's so we need stack.

But it is CFL.

0 votes
0 votes

It is non regualr language becoz to satisfy condition there are infinite values 

If a^nb^m/ n-m<=10 in this case dpda can be used but wt if we have counting comparison without order  as these cases are also present in above laguage 

So answer should be cfl .

0 votes
0 votes
No, it is not regular. Counting the number of $a$'s and $b$'s require to remember their encounters somehow. We need a stack for this. A deterministic PDA can do this. Hence the language is DCFL (accepted by DPDA).
0 votes
0 votes
Clearly,the given language is not regular b'coz there is comparison.Since we have to keep track of no. of a's to compare it with no. of b's ,here we need some memory element like stack.Thus language is clearly dcfl ,bcoz the pda that can accept the language is  deterministic.Since we have only 'a' and  'b'. in alphabet.

Related questions

449
views
1 answers
0 votes
KISHALAY DAS asked Nov 2, 2016
449 views
64
views
1 answers
0 votes
navaneethsaj asked Jun 26
64 views
Is this language regular or not?xww^R | x,w E (a,b)*
95
views
0 answers
0 votes
Vignesh859 asked May 8
95 views
I have a doubt in ardens theorem problem A=Ba+AbB=Aa+BbAssume B is final state Hence By ardens theorem A becomes A=Bab* .Hence B=Aa+Bb => Bab*a+BbTherefore B=B(ab*a+b) is the ... B=B(ab*a+b)) what to do?Here S=B,T=ab*a+b, Then what is R? 
228
views
2 answers
0 votes
programmer1218 asked Apr 11
228 views
Can anyone explain how we can write this regular language for the following diagram ?(in depth)