The grammar ‘G1’ S → 0S0 | 1S1 | 0 | 1 | ε and the grammar ‘G2’ is S → aS |…
PYQ UGC NET 2012
The grammar ‘G1’
S → 0S0 | 1S1 | 0 | 1 | ε and the grammar ‘G2’ is S → aS | aSb | X, X → Xa | a.
Which is the correct statement ?
- A.
G1 is ambiguous, G2 is unambiguous
- B.
G1 is unambiguous, G2 is ambiguous
- C.
Both G1 and G2 are ambiguous
- D.
Both G1 and G2 are unambiguous
Attempted by 19 students.
Sign up free to check your answer
Sign up freeLoading lesson…

