525 views
0 votes
0 votes

Why is S2 not a correct option?

2 Answers

4 votes
4 votes
Yes, S2 is not correct cause if the language generated by it is bound to contain $\in$ then we cannot remove that. Doing so will alter the language definition.

So S2 is false.
3 votes
3 votes

Suppose we have a Grammar 

S $\rightarrow$ bA

A $\rightarrow$ aA|∊

set of strings,language, generated is { b, ba, baa, baaa,....}

if we remove null from it ( following the rules) 

we will get

S$\rightarrow$bA|b

A$\rightarrow$aA|a

set of strings ,language, derived will be remains same. 

But if we have Grammar 

S$\rightarrow$aS|         , set of strings derived is {,a,aa,aaa,......}

and we remove null from it , we will get 

S$\rightarrow$aS|a        , set of strings derives is {a,aa,aaa,......}

languages will differ. 

Yes,for S2 only if we are not getting , null in language , directly ,S$\rightarrow$∊ , or indirectly, S$\rightarrow$A, A$\rightarrow$∊ (for example)

Related questions