4,412 views
0 0 votes

Consider the given dfa

What is the regular expression of the given dfa?

I am getting :- a(ba)*bb + a(ba)*a + bb

Is it correct or not?

1 Answer

0 0 votes
At the initial state, we can either scan an 'a' or scan a 'b' . So we have two paths to follow :

If we scan an 'a', RE will be a(ba)*(a+bb)

If we scan a 'b' RE will be b(ab)*(b+aa)

So final RE = a(ba)*(a+bb) + b(ab)*(b+aa)
Position:
Show:

Related questions

1 1 vote
2 2 answers
1.4k
1.4k views
vishal8492 asked Dec 6, 2016
1,413 views
Having hard time , to understand why (A) isn't the answer ? Looking at DFA it looks , 2* is good starting state ; then there are two paths 0 first path good enough ; for ...
0 0 votes
0 0 answers
337
337 views
3 3 votes
3 3 answers
5.2k
5.2k views
iarnav asked Aug 18, 2017
5,212 views
Whenever there are 2 final states, I don't get how to solve it, kindly explain once and for all in a detailed manner! I'll owe you a lot.