retagged by
644 views

2 Answers

3 votes
3 votes
Yes this is a regular language. Actually $X$ plays a very important role here. Since $X \in {(0 + 1)}^+$ , it consumes all the middle string as $X$.

For example check this,

Let String is = $011 00 110$

Above it is clear that W = $011$ and X = $00$

But the question is why we are taking X = $00$ only. We can take all the middle symbol in $X$ string.

So Regular Expression will becomes $ 0.(0+1)^+ . 0 + 1 . (0+1)^+ . 1 $

Ultimately it becomes, A language which start and end with same symbol.

If you can write Regular expression then it's regular languages. Hence Regular language.
1 votes
1 votes

WXWR is regular as X∈(0+1)+ ,middle sub string can be merged and RE will be a (a+b)+ a U b (a+b)+ b

NB: If X ∉ (0+1)+ then WXWR    is not regular. we need a PDA to recognize it. hence Context free

Related questions

0 votes
0 votes
1 answer
3
KiranWatts asked Jan 16, 2017
491 views
I am finding very difficulty to find out regular expression for given regular language. Kindly explain me the entire procedure to get the correct answer in minimum tume.T...
0 votes
0 votes
2 answers
4
khushtak asked Jan 12, 2016
560 views
L={wxwr∣ w,x∈(a,b)*}Is this language regular language?Plz give transition diagram or table?