4,674 views
2 votes
2 votes
A->aB/bA/b

B->aC/bB

C->aA/bC/a

 

If the above regular grammar is converted into DFA then how many final states will be there?

According to me there should be 2 final states: A and C

But the resource from where I am reading it says only one final state will be there which will be A.

Kindly explain.

2 Answers

Best answer
4 votes
4 votes

With the help of grammar we can make a NFA . then we create a minimal dfa then we get number of final state.

selected by
–1 votes
–1 votes

Make a DFA

then you got the answer

only A will be final state

Related questions

1 votes
1 votes
1 answer
1
sushmita asked Sep 16, 2018
693 views
In converting right linear regular grammar to DFA how to determine the final states?Can anyone tell the procedure?
0 votes
0 votes
1 answer
2
1 votes
1 votes
1 answer
3
Abbas Ahmad asked Nov 30, 2018
413 views
If a grammar G is both left linear as well as right linear then,what should be the case a) G is always not regularb) G may or may not be regularc) something else
1 votes
1 votes
1 answer
4
sripo asked Oct 13, 2018
1,273 views
For the given GrammarS->aA|bBA->bC|aSB->aC|bSC->aB|bA Construct DFA I am getting confused in understanding how to take the final state.