2,092 views
7 7 votes

Let $L=\left \{ w\in\{0,1\}^* | \text{number of occurances  of }(110)=\text{number of occurances  of}(011) \right \}$

What is $L$?


I think $L$ is regular .

Regular expression is -:

$L=\left \{ 0^{*}+1^{*}+\left ( \left ( \varepsilon +0+1 \right )  \left ( \varepsilon +0+1 \right ) \right ) + 0^{*}\left ( 0110 \right )^*0^{*}+1^* \left ( 11011 \right )^{*}1^{*}  \right \}$

2 Answers

1 1 vote

I stand to be corrected but here is what i think

L1 : Set of all strings where number of 110 is atleast as much as number of 011 is regular

L2 : Set of all strings where number of 011 is atleast as much as number of 110 is regular(I am almost sure this is the case but this is the part where i am not very confident)

L3 = L1 $\bigcap$ L2 : Set of all string where number of 011 equals number of 110 will be regular as regular languages are closed under intersection

Ref: https://gateoverflow.in/1995/gate2014-2-36 to see why L1 and L2 are regular.

• edited by
Position:
Show:

Related questions

176 176 votes
9 answers 9 answers
44.3k
44.3k views
go_editor asked Sep 28, 2014
44,285 views
Let $L_1=\{w\in\{0,1\}^*\mid w$ $\text{ has at least as many occurrences of }$ $(110)'\text{s as }$ $(011)'\text{s} \}$. Let $L_2=\{w \in\{0,1\}^*\ \mid w$ $ \text{ has a...
6 6 votes
2 2 answers
773
773 views
Chhotu asked Nov 22, 2017
773 views
Refer check selected answer comments of https://gateoverflow.in/1995/gate2014-2-36.
75 75 votes
4 answers 4 answers
25.0k
25.0k views
Arjun asked Feb 18, 2021
25,042 views
​​​​​​Consider the following two statements about regular languages:$S_1$: Every infinite regular language contains an undecidable language as a subset.$S_2$: Every finit...
0 0 votes
1 1 answer
335
335 views
admin asked Oct 10, 2024
335 views
 Let us consider the language $\left\{\epsilon, a, a^{2}, \ldots, a^{10}\right\}$, where $\epsilon$ denotes the empty string, and $a^{n}$ denotes $\underbrace{a a \cdots ...