1,393 views
0 0 votes

is the language regular or not ?

$\Sigma={0,1,2,3,4}$ 

L={ w $ \varepsilon \Sigma $* ||w|0mod 2=0,|w|0=|w|2= |w|4}

 if not how will it be proven by pumping lemma?

1 Answer

0 0 votes

We can describe the given language as a set of all strings over alphabet having EQUAL and EVEN numbers of 0's,2's and 4's.

Let DFA for the given language has K states.

Take X= 02k22k42k which belongs to L.(as 2k will be the even number and the number of 0's=number of 2's =number of 4's).

Now however you divide the string into u,v,w "pumping part" will always contain all 0's only as K<2K.

So after dividing X into u,v and w, if we pump 'v' part for, 'm' times we will get AT LEAST 'm' additional 0's.

but, 02k+m22k42k ∉ L as the number of 0's > number of 2's and 4's.

Hence language is not regular.

 

According to me, L is a CSL.

@arjun sir please check whether the proof is correct or not.

 

 

 

Position:
Show:

Related questions

1 1 vote
1 1 answer
50
50 views
GO Classes asked Sep 18
50 views
Let $B=\{0^n\#0^{2n}\#0^{3n}\mid n\ge0\}$.Which statements are correct for proving $B$ is not CFL using the pumping lemma?Choose $s=0^p\#0^{2p}\#0^{3p}$, where $p$ is the...
1 1 vote
1 1 answer
63
63 views
GO Classes asked Sep 16
63 views
To prove $L=\{a^n b^n\mid n\ge0\}$ is not regular using the pumping lemma, choose $w=a^p b^p$, where $p$ is the pumping length. Which statements are correct?Since $|xy|\l...