831 views
0 votes
0 votes
A)Is it useful to draw FA  if we need to tell the language of the following grammar...?

B)What is the language of the following grammar..?

C) What will be the final state Of FA and what is the criteria to find out final state.if a given a regular grammar.?

 

S→aB|bA
A→aS|bAA|a
B→bS|aBB|b

1 Answer

0 votes
0 votes
A)if a grammar is left linear or right linear grammar then we can drow a dfa .
But here grammar is not left or right linear grammar . So we cant drow DFA.

B)L={ab,ba,abab,aabb,baba......}
Language gives equal no of a's and equal no of b's .

C) it is a CFL but not regular . Then we can not drow FINITE AUTOMETA. we can drow PDA for this.
edited by

Related questions

0 votes
0 votes
0 answers
1
iarnav asked Jan 30, 2018
204 views
L = anbm / n,m>=1What type pf Language is this? Also, please tell are n,m are independent or dependent i.e can we have like n=2 and m=3 or both n,m have to have same valu...
1 votes
1 votes
1 answer
2
Abbas Ahmad asked Nov 30, 2018
417 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
0 votes
0 votes
1 answer
3