What is the safest order while simplifying Context Free Grammar?

This question was previously asked in
UGC NET Computer Science (Paper 2) 11 March 2023 Official Paper
View all UGC NET Papers >
  1. Elimination of ε-productions, Unit productions and then Useless symbols & productions.
  2. Elimination of useless symbols & productions, ε-productions and then Unit productions.
  3. Elimination of Unit productions, ε-productions and then Useless symbols and productions.
  4. Elimination of ε-productions, Useless symbols and productions and then Unit productions.

Answer (Detailed Solution Below)

Option 1 : Elimination of ε-productions, Unit productions and then Useless symbols & productions.
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
8.8 K Users
50 Questions 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

The correct answer is Elimination of ε-productions, Unit productions and then Useless symbols & productions.

Key Points

  • The order for simplifying a context-free grammar (CFG) is:
    • Elimination of ε-productions.
    • Elimination of unit productions.
    • Elimination of useless symbols & productions.
  • The reasoning behind this order is:
    • First, eliminate ε-productions: ε-productions can potentially introduce new unit productions into the grammar, so it’s usually better to eliminate these first.
    • Second, eliminate unit productions: The removal of unit productions could potentially make a previously useful production into a useless one, so it's better to handle unit productions before dealing with useless ones.
    • Third, eliminate useless symbols and productions: This is typically done last, as the previous elimination steps could potentially create new useless symbols or productions that need to be eliminated.

Therefore, the safest order according to the options provided would be: Elimination of ε-productions, Unit productions, and then Useless symbols & productions. So, your first option is the preferred one.

Latest UGC NET Updates

Last updated on Jun 6, 2025

-> The UGC NET Exam Schedule 2025 for June has been released on its official website.

-> The UGC NET Application Correction Window 2025 is available from 14th May to 15th May 2025.

-> The UGC NET 2025 online application form submission closed on 12th May 2025.

-> The June 2025 Exam will be conducted from 21st June to 30th June 2025

-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.

-> The exam is conducted bi-annually - in June and December cycles.

-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions. 

-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.

More Context Free Languages Questions

More Context Free Languages and Pushdown Automata Questions

Get Free Access Now
Hot Links: teen patti gold online teen patti all games teen patti master apk download online teen patti