All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · December 2022 (Shift 2)

What is the safest order while simplifying Context Free Grammar? ∈

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. Elimination of -productions, Unit productions, and then Useless symbols & productions. ∈

Explanation

Remove ε-productions first (they can create unit productions), then unit productions (they can create useless symbols), then useless symbols.

More Theory of Computation and Compilers questions