edited by
4,030 views

4 Answers

1 votes
1 votes
Ans is C: four

1.  S=>aS

        =>aaS

        =>aaa

2. S=>Sa

       =>Saa

        =>aaa

3. S=>aS

       =>aSa

       =>aaa

4. S=>Sa

      =>aSa

      =>aaa
0 votes
0 votes

As it is a CFG we have no need to check if it is left linear or right linear or both. We can generate tree by all of these three combinations . So, number of different trees will be 3

0 votes
0 votes

formula for this is 

2 |W| -1

Answer:

Related questions

4 votes
4 votes
1 answer
1
go_editor asked Aug 11, 2016
6,418 views
Consider a unit square centered at origin. The coordinates at the square are translated by a factor $\biggr( \dfrac{1}{2}, 1 \biggl)$ and rotated by an angle of $90^{\cir...
3 votes
3 votes
1 answer
2
go_editor asked Aug 11, 2016
6,019 views
Which raster locations would be chosen by Bresenham's algorithm when scan converting a line from $(1,1)$ to $(8,5)$?$\begin{array}{|c|c|} \hline x & y \\ \hline 1 & 1 \\...
2 votes
2 votes
1 answer
3
go_editor asked Aug 11, 2016
2,317 views
Which of the following steps is/are not required for analog to digital conversion?SensingConversionAmplificationConditioningQuantizationa and bc and da, b and eNone of th...
2 votes
2 votes
1 answer
4
go_editor asked Aug 11, 2016
2,749 views
Which of the following is/are the principle components of a memory-tube display?Flooding gunCollectorPhosphorus grainsGround$\text{i and ii}$$\text{iii only}$$\text{iv on...