Question
Let be Context Free Grammars (CFGs) and be a regular expression. For a grammar , let denote the language generated by .
Which ONE among the following questions is decidable?
Official answer and solution
- Official answer
- D
- From
- Official GATE 2025 answer key
Solution
Recall that emptiness, finiteness, and membership are decidable for CFGs, whereas equivalence, disjointness, and universality () are undecidable.
- Emptiness of a CFG (?) is decidable: We can determine in polynomial time whether the start symbol of can derive any terminal string by iteratively marking all generating non-terminals.
- Equivalence (), intersection emptiness (), and equality to a regular language (, which includes universality ) are all undecidable for CFGs.
Final answer
Option (D)
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2025 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 25 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.