• retagged by
1,430 views
1 1 vote
Is L={0, 011, 011000, 0110001111, ....} a regular language?

I know that the language should follow some regular pattern and we should be able to construct a regex for it in order to say it a RL. Morever it shouldnt require any kind of extra memory to store the counts.

BUT, in this given language, I can see a regular pattern, but I am not able to construct a regex. And I think that prevois count should be remembered by the m/c.. So it should be NRL. But my book says its a RL. I am not getting how??

 

P.S. I wud be thankful if somebody suggests a quick method to identify given set to be RL or NRL based on pattern.

Thanks in advance :)

2 Answers

1 1 vote
try to write its corresponding regular expression .

regular expression for this language is-0((11)*(000+00)*)*
1 1 vote
Did NOT looks like a regular language. Instead of analysing the exact pattern and positions of 1's and 0's in the strings of the language, try to count the number of 0's and 1's. You will notice that, if the number of 0's in any string of this language is i^2, then the number of 1's have to be either (i^2 + i) or (i^2 - i). I don't think that this dependency can be preserved by any regular language. Even it does not seems like a Context Free Language to me.
Position:
Show:

Related questions

0 0 votes
0 0 answers
1.8k
1.8k views
sripo asked Oct 16, 2018
1,772 views
There are two sources on YouTube giving different answers for the same expression.I am confused.Is the given expressionswxwr | w,x $\in$(0,1)+ I think this is regular b...
1 1 vote
2 2 answers
636
636 views
aftab0711 asked Aug 11, 2024
636 views
Which of the following languages is/are regular?
0 0 votes
1 1 answer
1.2k
1.2k views
M_Umair_Khan42900 asked Dec 29, 2022
1,245 views
Show that the following pairs of regular expressions define the same language over the alphabet I = [a, b].s(a) p(pp)*( A + p)q + q and p*q(b) A +0(0+1)* + (0+1)* 00(0+1)...
0 0 votes
1 1 answer
996
996 views
Gurdeep Saini asked Dec 31, 2018
996 views
Stare true and falseIs this regular ? now if it is not regular then i want to change in the question in place of (a+b)+ if it is (a+b)* then ??