in Theory of Computation
4,938 views
1 vote
1 vote
Construct a DFA that accepts a language generated by a grammar

S->abA

A->baB

B->aA|bb

Find tha DFA and regular expression
in Theory of Computation
4.9k views

2 Answers

1 vote
1 vote
Since there is no null production, so we cannot determine the final state.. This grammar looks incomplete.
edited by

6 Comments

pic is not DFA

it is NFA
0
0
corrected... thnkss for pointing out..
0
0
no the regular expression was ok
abba(aba)*bb
But as in every state it was not accepting a and b both
that is why it was not DFA, it was a NFA
Now, if u add a reject state in that diagram, then it will be DFA
1
1
where to add a reject state in that transition diagram ... Please show..
0
0
yes i noticed that mistake..actually we need null production for final state and it was absent in this grammer so i edited my answer..although we can draw dfa using regex..adding a dead state and pointing all missing transitions to dead will do our job..
0
0
0 votes
0 votes

we can drow NFA  from the given grammar.

Related questions