731 views
0 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 1 vote

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
Position:
Show:

Related questions

0 0 votes
0 0 answers
760
760 views
54Y4N asked Oct 9, 2023
760 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 0 votes
1 1 answer
3.0k
3.0k views
Manish Chetwani asked Sep 15, 2017
2,956 views
Q : Let M= (Q, ∑, δ, S, F) and M’= (Q, ∑, δ, S, Q – F) where M accepts L and M’ accepts L1 and M is NFA, what could be the relation between L and L’ ?(a) L and L’ are com...
0 0 votes
0 0 answers
333
333 views
aanchaln asked Oct 31, 2021
333 views
JOINS, TUPLE CALCULUS
0 0 votes
0 0 answers
698
698 views
aanchaln asked Oct 28, 2021
698 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 JUST...