1,554 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

0 votes
0 votes
0 answers
2
0 votes
0 votes
2 answers
3
0 votes
0 votes
2 answers
4