420 views
1 votes
1 votes
Wxw / w belogs to (a, b) ^*, and x belongs to (a, b) ^+

Regular?

Csl?

2 Answers

0 votes
0 votes

i think   ...this is a regular language....

and 

RE=a(a+b)+a + b(a+b)+b +(a+b)+

0 votes
0 votes
No this is NOT a regular expression.

this expression is "wxw" meaning it should start with w and end with w. So even if we were to consume symbols of w by 'x' we may have a different symbol at the end.

Consider the example : abbbc b abbbc (divided as w x w)

if x consumes bbbc of either side of w then it leaves a and c at both ends. But we want to have the ends same.

Related questions

2 votes
2 votes
1 answer
1
VS asked Jan 24, 2018
583 views
L={ xy | x,y$\epsilon$ (a+b)*, na(x) = nb(y) }
1 votes
1 votes
0 answers
2
gari asked Jan 1, 2018
616 views
Identify the language. apbqcrds | p+r=q+s
1 votes
1 votes
0 answers
4
set2018 asked Dec 8, 2017
364 views
Let L = {ambnbkdl⎪(n+k = odd) only if m = l; m, n, k, l 0}. Which of the following is true about L?1)L is CFL but not DCFL2)L is regular but not CFL3)L is DCFL but not...