in Theory of Computation retagged by
335 views
2 votes
2 votes

For the deterministic finite automaton $M$ with state set $\{0,1,2\}$, alphabet of input symbols $\{a, b\}$, initial state $0 ,$ accepting states 1 and 2 , and next-state function
$$(0, a) \mapsto 2, \quad(1, a) \mapsto 1, \quad(2, a) \mapsto 0,\\
(0, b) \mapsto 1, \quad(1, b) \mapsto 0, \quad(2, b) \mapsto 2$$.
Which of the following is correct regular expression $r$ such that $\mathrm{L}(\mathrm{M})=\mathrm{L}(\mathrm{r})$ :

  1. $b a^{\ast }+a b^{\ast }$
  2. $\left(b a^{\ast } b+a b^{\ast } a\right)^{\ast }(b+a)$
  3. $\left(b a^{\ast } b+a b^{\ast } a\right)^{\ast }\left(b a^{\ast }+a b^{\ast }\right)$
  4. None of the above
in Theory of Computation retagged by
335 views

2 Answers

4 votes
4 votes
Construct the DFA diagram and the set of strings that come to state $0$ is $\left(b a^{\ast } b+a b^{\ast } a\right)^{\ast }$ and then we have the final regular expression as union of regular expression corresponding to state $1$ and $2$ which is $\left(b a^{\ast } b+a b^{\ast } a\right)^{\ast }\left(b a^{\ast }+a b^{\ast }\right)$
2 votes
2 votes

just draw like this from question itself , no need for Arden’s theorem,it’s quite complex method….

 

Answer:

Related questions