retagged by
15,026 views

5 Answers

Best answer
41 41 votes

Correct Option: $C$


Given,                                       

  • $L_1-$ Regular Language (RL)         
  • $L_2-$ Context-Free Language (CFL)

$(A)$ $L_1 \cap L_2 \to$  CFL

Because intersection operation with regular languages is closed under CFLs.

Hence, True.

$(B)$ $L_1.L_2\to$   CFL

Every regular language is a CFL and  CFLs are closed under concatenation.

Hence, True.

$(C)$ $L_1-L_2$ $\equiv$ $L_1 \cap L_2 ^{c}$.

Suppose, let’s consider $L_1 = \Sigma^*$ and $L_2$ as any CFL and we get $L_1 \cap \overline{L_2} = \overline{L_2}.$

Since CFLs aren’t closed under complementation, this means $L_1 – L_2$ NEED NOT be a CFL!

Hence, False.

$(D)$ $L_1\cup L_2 \to$ CFL 

Since CFLs are closed under union operation and a regular language is also a CFL.

Hence, True.

Ref: Closure Property of Language Families

edited by
1 1 vote
Answer will be C.

Assume L1 to be (a+b)*

then L1 - L2 will be L2' that is Context Sensitive.
0 0 votes
  • A) CFL intersection with Regular language is CFL 
  • B) All Regular languages are CFL, CFLs are closed under concatenation
  • D) CFLs are closed under union
  • C) CFLs are not closed under set difference

Option C) is correct 

0 0 votes
JUST TAKE THE REGULAR LANGUAGE TO BE SIGMA STAR THEN L1 - L2 IS SIMPLY L2 COMPLEMENT

SO, L2 COMPLEMENT IS COMPLEMENT OF CFL AND IT IS NOT CLOSED AS WE KNOW
Answer:
Position:
Show:

Related questions

31 31 votes
4 answers 4 answers
16.2k
16.2k views
Arjun asked Feb 18, 2021
16,217 views
Let $\langle M \rangle$ denote an encoding of an automaton $M$. Suppose that $\Sigma = \{0,1\}$. Which of the following languages is/are $\text{NOT}$ recursive?$L= \{ \la...
26 26 votes
5 answers 5 answers
10.3k
10.3k views
Arjun asked Feb 18, 2021
10,264 views
Consider the following language:$$L= \{ w \in \{0,1\}^* \mid w \text{ ends with the substring } 011 \}$$Which one of the following deterministic finite automata accepts $...
36 36 votes
6 answers 6 answers
20.8k
20.8k views
Arjun asked Feb 18, 2021
20,834 views
For a Turing machine $M$, $\langle M \rangle$ denotes an encoding of $M$. Consider the following two languages.$$\begin{array}{ll} L_1 = \{ \langle M \rangle \mid M \text...
68 68 votes
2 answers 2 answers
23.3k
23.3k views
Arjun asked Feb 18, 2021
23,339 views
In a pushdown automaton $P=(Q, \Sigma, \Gamma, \delta, q_0, F)$, a transition of the form,where $p,q \in Q$, $a \in \Sigma \cup \{ \epsilon \}$, and $X,Y \in \Gamma \cup...