retagged by
598 views
2 votes
2 votes
Consider the following context-free language: $L_1=\left\{a^m b^n c^n \mid n, m \geq 0\right\}$. Which of the following choices of language $L_2$ is context-free and ensures that $L_1 \cap L_2$ is not a context-free language?
  1. $L_2=\left\{a^k b^{2 k} c^m \mid k \geq 0\right.$ and $\left.m \geq 0\right\}$
  2. $L_2=\left\{(a b c)^k \mid k \geq 0\right\}$
  3. $L_2=\left\{a^k b^m c^k \mid k \geq 0\right.$ and $\left.m \geq 0\right\}$
  4. $L_2=\left\{a^k b^{2 k} c^{2 k} \mid k \geq 0\right\}$
retagged by

1 Answer

3 votes
3 votes
Option A:

$L_2$ is CFL, and $L_1 \cap L_2 = \{ a^k b^{2k} c^{2k} | k \geq 0 \}$ is Not CFL.

Option C:
$$
\text {results in } L_1 \cap L_2=\left\{a^n b^n c^n \mid n \geq 0\right\}
$$
Which is Not CFL.

Option B:

The result will be $\{ \epsilon, abc \}$ which is a finite language, so, CFL.

Option D: Language $L_2$ itself is not CFL & the question asks for a CFL.
edited by
Answer:

Related questions

775
views
1 answers
8 votes
GO Classes asked Jan 21
775 views
Let $\text{D}$ be a DFA with $n$ states $\& \;\text{N}$ be an NFA with $n$ states. Which of the following is/are true?If $\text{D}$ accepts some ... $n-1$, then the language of $\mathrm{N}$ is infinite.
624
views
2 answers
3 votes
GO Classes asked Jan 21
624 views
Which of the following statements is/are false?Let $\text{A}$ and $\text{B}$ be sets of languages over some fixed alphabet $\Sigma$, with $\text{A} \subseteq \text{B}$. ... $\subseteq \mathrm{L} 1$, then $\mathrm{L} 2$ is decidable.)
563
views
1 answers
2 votes
GO Classes asked Jan 21
563 views
Consider the following grammar:$\begin{aligned}& S \rightarrow a S^{\prime} \\& S^{\prime} \rightarrow b S^{\prime} \mid \epsilon\end{aligned}$Which of the following is/are ... $bS'$a S^{\prime} b$bbS$
1.0k
views
1 answers
6 votes
GO Classes asked Jan 21
1,006 views
Let $A, B, C$ be events such that $P(A)=P(B)=P(C)=0.5, P(A \cap B)=0.3, P(A \cap C)=0$.Which of the following is/are true?$P(A \cup B)=0.75$P(A \cup C)=1$P(B \cap C)=0.23$P(B \cup C)=0.9$