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 \}$ Theory of Computation theory-of-computation regular-language normal + – sourav. 2.1k views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply Angkit commented Oct 9, 2017 i moved by Angkit Oct 9, 2017 reply Follow flag See, number of (110)=number of (011) if x=110 and y=001 or number of (x)=number of (y) .// Here it is 1 comparision,so we need a stack to do it. So, it cannot be regular secondly, Regular expression is -: L={0∗+1∗+ ((ε+0+1)(ε+0+1))+0∗(0110)∗0∗ +1∗(11011)∗1∗} is not correct {ε + 1 +( ( 1) ( 0 ) + ε + ε } = 110 i.e (number of (110) !=number of (011) i.e : 110 or ... we can generate many strings which are not in original L 0 0 replyShare srestha commented Dec 18, 2017 reply Follow flag @sourav it is not accepting 11011011 2 2 replyShare Please log in or register to add a comment.
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. Manit answered Sep 10, 2019 • edited Sep 10, 2019 by Manit Manit comment Share Follow See 1 comment 1 1 comment reply akshaymg99 commented Dec 9, 2019 reply Follow flag What will be the regular expression for L3 ? 0 0 replyShare Please log in or register to add a comment.
–1 –1 vote L is regular because there are finite automata exist ofr this language. Raj Kumar 7 answered Jan 26, 2018 Raj Kumar 7 comment Share Follow See 1 comment 1 1 comment reply Tushar Garg commented Mar 3, 2018 i edited by Tushar Garg Dec 23, 2019 reply Follow flag Yes l is regular. 0 0 replyShare Please log in or register to add a comment.