Which ONE among the following questions is decidable?
Correct : d
The correct answer is Option D - Is L(G1) = ∅
This question tests knowledge of which problems about context-free grammars are decidable and which are not. Let''s go through each option.
Option A - Is L(G1) = L(G2)? Undecidable. The equivalence problem for two CFGs is a well-known undecidable problem. There is no general algorithm that can determine whether two CFGs generate the same language.
Option B - Is L(G1) ∩ L(G2) = ∅? Undecidable. CFLs are not closed under intersection, and determining whether the intersection of two CFLs is empty is undecidable. It reduces to undecidable problems like Post''s Correspondence Problem.
Option C - Is L(G1) = L(R)? Undecidable. Checking whether a CFL is equal to a given regular language is undecidable in general, even though the regular language itself is simpler.
Option D - Is L(G1) = ∅? Decidable. The emptiness problem for CFGs is decidable. We check which non-terminals in G1 can eventually derive a string of terminals. If the start symbol S cannot derive any terminal string, L(G1) = ∅. This reachability-based algorithm always terminates. Correct.
Similar Questions
Total Unique Visitors