Consider two grammars πΊ1 and πΊ2 with the production rules given below: πΊ1:β¦
GATE Β· 2025 Β· CS Β· Set 2 Β· Computer Science & IT
Consider two grammars πΊ1 and πΊ2 with the production rules given below:
Β Β Β Β πΊ1: π β ππ πΈ π‘βππ π | ππ πΈ π‘βππ π πππ π π | π
Β Β Β Β Β Β Β Β Β Β πΈ β π
Β Β Β Β πΊ2: π β ππ πΈ π‘βππ π | π
Β Β Β Β Β Β Β Β Β Β Β π β ππ πΈ π‘βππ π πππ π π | π
Β Β Β Β Β Β Β Β Β Β Β πΈ βΒ π
where ππ,π‘βππ,πππ π, π, π, π are the terminals. Which of the following option(s) is/are CORRECT?
- A.
πΊ1 is not πΏπΏ(1) and πΊ2 is πΏπΏ(1).
- B.
πΊ1 is πΏπΏ(1) and πΊ2 is not πΏπΏ(1).
- C.
πΊ1 and πΊ2 are not πΏπΏ(1).
- D.
πΊ1 and πΊ2 are ambiguous.
Attempted by 142 students.
Sign up free to check your answer
Sign up freeLoading lessonβ¦