301 views
0 votes
0 votes
L={0^p1^q | p=5-q} is this language is regular or not.

My doubt is

Since every finite language  is regular and we can see the all possible values of (p,q) will be (0,5),(1,4),(2,3),(3,2),(4,1),(5,0) so the language would be L={11111,01111,00111,00011,00001,00000}

So the language is regular. But somewhere i read that whenever any linear equation come with language then language is not regular.

Please clear my doubt

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1
0 votes
0 votes
2 answers
2
rohan.1737 asked Aug 17, 2018
728 views
Is there any way to check whether a language is regular or not without using Pumping lemma?
0 votes
0 votes
1 answer
3
srestha asked May 24, 2018
801 views
Is it regular?$\left \{ \left ( 0^{n} \right )^{m}|n<m,n,m\geq 1 \right \}$