retagged by
661 views
3 votes
3 votes
Let P be a regular language and Q be a context free language such that Q ⊂ P.

Which of the following is always regular ?

(A) P ∩ Q

(B) P-Q

(C) Σ*    - P

(D) Σ*  - Q
retagged by

1 Answer

Best answer
7 votes
7 votes
Option C. As Regular languages are closed under complement

A. $P \cap Q$ won't be regular, if $P = \Sigma^*$ and $Q$ is a CFL but not regular.

B. $P-Q$ won't be regular when $P = \Sigma^*$ and $Q$ is a CFL as this will be $\bar Q$ and CFL complement need not even be CFL.

D. This is CFL complement and this need not even be CFL.
selected by

Related questions

5 votes
5 votes
2 answers
1
0 votes
0 votes
1 answer
3
Shefali asked Aug 14, 2015
1,573 views
(a) If $R$ is regular and $N$ is non-regular, then there exists $R+N$, which is regular.(b) If $R$ is regular and $N$ is non-regular, then there exists $R+N$, which is no...
0 votes
0 votes
1 answer
4
M_Umair_Khan42900 asked Dec 29, 2022
791 views
Show that the following pairs of regular expressions define the same language over the alphabet I = [a, b].s(a) p(pp)*( A + p)q + q and p*q(b) A +0(0+1)* + (0+1)* 00(0+1)...