962 views
0 votes
0 votes

if this is regular and its Regular expression can be written as [(0+1)*0(0+1)*0]+ [(0+1)*1(0+1)*1] then it will also include those strings where first Wsecond Ware different. I am not getting this somebody please clear this doubt.

2 Answers

Best answer
2 votes
2 votes

RE = (0 + 1)+ 0  (0 + 1)+ 0  +   (0 + 1)+ 1  (0 + 1)+ 1

here w2 is either 0  or 1. It can be any other string also, but in all such strings this condition also gets satisfied as a string can start with either 0 or 1 only.

selected by
1 votes
1 votes

w1 w2 w3 all are independent but there in one string matching of w2 with itself so it should be done by LBA so its CSL language hence recursive

d) option answer .

Related questions

0 votes
0 votes
1 answer
2
practicalmetal asked Mar 25, 2023
380 views
The solution to $X = r +Xs$ by Arden’s Lemma when s has ϵa) an infinite number of solutionsb) a finite number of solutionsc) is always uniqued) none
0 votes
0 votes
3 answers
3
HenryAsks21 asked Mar 4, 2022
1,494 views
For the following question if True show why, and if it’s False show why.)Question: For any language A1, A2, if $A1 \cup A2$ is regular, then A1 and A2 are regular langu...
1 votes
1 votes
1 answer
4
atulcse asked Jan 28, 2022
488 views
Which of the following languages is/are regular?