276 views
0 votes
0 votes
What will be the DFA for wxw^r where w belongs to (a,b)^+ and x belongs to (a,b)^+

1 Answer

Best answer
1 votes
1 votes

let string be $ baabab$

$WxW^{r}$ can be considered as  ba ab ab  $i.e. here$ $W$ ∈ $ba$ $x$ ∈ $ab$    OR

                                                        b aaba b $i.e. here$ $W’$ ∈ $b$ $x’$ ∈ $aaba$

$i.e.$ $start$ $and$ $ends$ $with$ “$a$” $or$ “$b$”

therefore, $L$ = { $a(a+b)^{+}a$ $\cup$  $b(a+b)^{+}b$ }

CROSSCHECK: try “bababa”, it should not be satisfy  and “bababb” should satisfy

selected by

Related questions

0 votes
0 votes
0 answers
2
54Y4N asked Oct 9, 2023
234 views
A 1 kilometer long CSMA/CD (not 802.3) has a propagation speed of 200m/ìsec. Repeaters are not allowed in this system Data frames are 256 bits long, including 32 bits of...
0 votes
0 votes
0 answers
3
aanchaln asked Oct 31, 2021
170 views
JOINS, TUPLE CALCULUS
0 votes
0 votes
0 answers
4
aanchaln asked Oct 28, 2021
320 views
QUESTION – 10i THINK THE ANSWER SHOULD HAVE THE DIVISION AND CARTESIAN PRODUCT BOTH. BUT THE OPTIONS DON’T INCLUDE BOTH SO I WANTED TO TKNOW IF I MISSED SOMETHING. i ...