0 0 votes What will be the DFA for wxw^r where w belongs to (a,b)^+ and x belongs to (a,b)^+ Theory of Computation theory-of-computation finite-automata + – Luci3671 731 views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply Kabir5454 commented Nov 11, 2022 reply Follow flag $a(a+b)^{+}a +b(a+b)^{+}b$ correct me if i am wrong . 1 1 replyShare abhinowKatore commented Nov 11, 2022 reply Follow flag yes, it is correct! 0 0 replyShare Please log in or register to add a comment.
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 abhinowKatore answered Nov 11, 2022 • selected Nov 11, 2022 by Luci3671 abhinowKatore comment Share Follow See all 2 Comments 2 2 Comments reply Luci3671 commented Nov 11, 2022 reply Follow flag Do i have to derive the dfa by using examples fitting the ques description? 0 0 replyShare abhinowKatore commented Nov 11, 2022 reply Follow flag sometimes you have to! 0 0 replyShare Please log in or register to add a comment.