in Theory of Computation
1,277 views
1 vote
1 vote
For the given Grammar

S->aA|bB

A->bC|aS

B->aC|bS

C->aB|bA

 

Construct DFA I am getting confused in understanding how to take the final state.
in Theory of Computation
by
1.3k views

4 Comments

So is the question wrong cause it is supposed to check if grammar generates even number of a's or b's
0
0
Yes.

This is not the grammar generating even no. of a's and b's..it is not halting. :/
0
0
It is a test series question :)p  but I wanted to clarify for conceptual clarity.Super Thanks.
0
0

1 Answer

0 votes
0 votes
w:aaaabbbbaaaa

for any random string if the given grammar generate it,then we definitely can draw DFA,otherwise not.

and since the grammar doesnot have any terminating condition ,therefore,it is not possible.