0 0 votes I tried applying a method where we write equation as state with incoming transition on given dfa - q1 = $\epsilon$ + bq1+bq2 q2 = aq1+aq2 but then able to reach till this conclusion only: q2 = ab*+aq2+abq2b* How to solve further? Here q1 is a start state. Theory of Computation theory-of-computation regular-expression + – Swapnil Naik 1.7k views answer comment Share Follow Print See all 7 Comments 7 7 Comments reply Shaik Masthan commented Oct 24, 2018 reply Follow flag the way of writing eqn is wrong... the eqn R = Q+RP, ===> R = QP* when P is free from ϵ Q1 = ϵ + Q1 b + Q2 b ====> Q1 = ( ϵ + Q2 b ) b* Q2 = Q1.a + Q2.a = ( ϵ + Q2 b ) b* a + Q2 . a = b* a + Q2 . b . b* . a + Q2 . a = b* a + Q2 . ( b . b* . a + a ) = b* a + Q2 . ( b+ a + a ) = b* a + Q2 . ( b+ + ϵ ) a = b* a + Q2 . ( b* ) a . ∴ Q2 = b* a + Q2 . ( b* a ) ====> Q2 = b* a ( b* a )* only Q2 is the final state, RE = b* a ( b* a )* 2 2 replyShare Shaik Masthan commented Oct 24, 2018 reply Follow flag if it is multiple choice question, just check the each RE can deployed by the given FA or not? 0 0 replyShare Swapnil Naik commented Oct 24, 2018 reply Follow flag yeah that was the reason I wasn't able to take common Q2 outside. Thanks Shaik 0 0 replyShare Pawan Kumar 2 commented Nov 25, 2018 reply Follow flag Kindly Tell me where I went wrong . Thanks 0 0 replyShare Shaik Masthan commented Nov 26, 2018 reply Follow flag @Pawan Kumar 2 you got b* a ( a + $b^{+}$ a)* = b* a ( a + $b^{+}$ a)* = b* a ( ( ∈ + $b^{+}$ ) a )* = b* a ( $b^{*}$a )* Both are equivalent Note that, For a language may be more than one RE exist ! 2 2 replyShare Pawan Kumar 2 commented Nov 26, 2018 reply Follow flag Thanks for confirming Shaik Masthan brother 0 0 replyShare Ram Swaroop commented Dec 22, 2018 reply Follow flag That also given in Peter Linz book 0 0 replyShare Please log in or register to add a comment.
0 0 votes (b+aa*b)* DeadMann answered Oct 20, 2022 DeadMann comment Share Follow 0 reply Please log in or register to add a comment.