edited by
1,391 views
6 votes
6 votes

Given a regular grammar $G_1$ and a context free grammar $G_2$, the problem of deciding if $L(G_1)$ is a proper subset of $L(G_2)$ is:

  1. Decidable
  2. Undecidable but semi-decidable
  3. Not even semi-decidable
  4. Indeterminable
edited by

2 Answers

Best answer
9 votes
9 votes

G1: Regular Grammar and G2:Context Free Grammar
Suppose L1= L(G1)   and L2 = L(G2)

Take another language such that
L= L1 - L2,  if L is empty language then L1 is proper subset of L2
L= L1 - L2
L= L1 ∩  L2c
L2 is CFL which is not closed under complement hence complement of L2 will be CSL
L=Regular ∩ CSL = CSL

And CSL is not closed under emptiness property,

L(R) ⊆ L(G)  is undecidable and for any DCFG L(R) ⊆ L(G) is decidable as given in this list 

http://gatecse.in/grammar-decidable-and-undecidable-problems/

so this problem is undecidable but semi-decidable  which makes option B correct. 

selected by
0 votes
0 votes

In the question, it is given that a regular grammar G1 and a context free grammar G2, we have to decide  if  a language generated by regular grammar is a proper subset of a language generated by context free grammar .

L(R) ⊆ L(G)  is undecidable and for any DCFG L(R) ⊆ L(G) is decidable as given in this list 

http://gatecse.in/grammar-decidable-and-undecidable-problems/

so this problem is undecidable but semi-decidable  which makes option B correct. 

edited by
Answer:

Related questions

342
views
1 answers
0 votes
Bikram asked Nov 26, 2016
342 views
$G1$ and $G2$ are regular grammars and the language generated by any grammar $G$ is represented by $L(G)$. In this case, $L(G1) \cap L(G2) = \phi$ is a/an:Decidable problemUndecidable problemCannot ascertainNone
249
views
1 answers
0 votes
Bikram asked Nov 26, 2016
249 views
Recursive Enumerable Languages are NOT closed under :UnionIntersectionComplementHomomorphism
243
views
1 answers
0 votes
Bikram asked Nov 26, 2016
243 views
If $S$ and $T$ are languages over $\Sigma =\{a,b\}$ represented by the regular expressions $(a+b^*)^*$ and $(a+b)^*$ respectively, then which of the following options is CORRECT?$S \subset T$T \subset S$S = T$S \cap T = \emptyset$
758
views
1 answers
1 votes
Bikram asked Nov 26, 2016
758 views
$L1$ and $L2$ are regular languages. $L3$ is CFL and $L4$ is a recursive enumerable language. $L5$ is the reversal of $L4$ ... input alphabet, then $L6$ is a:Regular LanguageCFLRecursive Enumerable LanguageNon Recursive Enumerable Language