1,649 views
0 votes
0 votes
Is this language regular? If yes, how?

L = {wxwR | x, w ϵ {0, 1}*}

wR is reverse of string w.

Thank you!

2 Answers

Best answer
0 votes
0 votes

the above language is equivalent to " strings starting and ending with same symbol"

-------------------------------------------------------------------------------------------------------------------------------------

let w = 110 and x = 1

then wr = 011.

so string becomes 110 1 011.

we can rewrite this string as

1 10101 1

=> w = 1 and wr = 1  and x = 10101

and regular expression is 1(0+1)*1 + 0(0+1)*0.

we can create a FA for it => language is regular.

selected by
1 votes
1 votes
The language is regular , since x is (0 + 1)* you have given the power to x to generate all string now w = (0 + 1)* means w can be epsilon also this means epsilon can also be generated by putting w = epsilon in the wxwr we get x which is (0 + 1)*  that means given language generates all the strings so its regular
reshown by

Related questions

714
views
1 answers
0 votes
sripo asked Jan 1, 2019
714 views
Can anyone explain how S2 is false,I did not understand their logic.
500
views
0 answers
0 votes
Sambhrant Maurya asked Oct 14, 2018
500 views
Which is the equivalent Regular Expression for the following: "Strings in which every group of 3 symbols should contain atleast 1 a."a)[(a+b) (a+b)a]*b) [(a+b) (a+b)a]* [(a+b)(a+b)a]*c)[(ϵ + b + bb)a]* [ ϵ+ b + bb]d) (abb)* (bab)b* (bba)*
593
views
2 answers
0 votes
Sambhrant Maurya asked Oct 1, 2018
593 views
Why is WXWR a regular language but XWWR is not? (X,W ϵ (0,1)+)
651
views
2 answers
0 votes
Sambhrant Maurya asked Oct 1, 2018
651 views
Why is ambn / m,n>=1 a regular language but anbn / n>=1 not?