retagged by
6,064 views

1 Answer

2 votes
2 votes

THEORETICALY:

Since, given grammar is not in CNF we need to Convert CFG to CNF !

On conversion of CFG to CNF of the given grammar will change from 5 production to 10  productions.

Now we need to generate string W using these 10 CNF production. we would get 19 productions 

DIRECTLY:

Will be using as for CNF as per formula  #PRODUCTIONS=2*length of string-1  {where length of string is 10}

                                                                                     =19 PRODUCTIONS

edited by

Related questions

1 votes
1 votes
1 answer
2
shikharV asked Nov 19, 2015
411 views
Given answer: 1I am able to get 2 rightmost derivation of 'a+a'First:S - E + E - E + a - a + aSecond:S - E + E - E + a - a + aTotal derivation - 2
0 votes
0 votes
1 answer
3
0 votes
0 votes
1 answer
4
worst_engineer asked Jan 9, 2016
354 views
I did in this way :There is conflict , right ? As A - g. and B - g. both going to $ and g