edited by
1,113 views
0 votes
0 votes

Consider the following statements with respect to the language $L = \{ a^n b^n \mid n \geq 0 \}$

$S_1 : L^2$ is a context free language

$S_2 : L^k$ is context free language for any given $k \geq 1$

$S_3 :  \overline{L}$ and $L^\ast$ are context free languages

Which one of the following is correct?

  1. only $S_1$ and $S_2$
  2. only $S_1$ and $S_3$
  3. only $S_2$ and $S_3$
  4. $S_1$, $S_2$ and $S_3$
edited by

2 Answers

0 votes
0 votes
Regular Grammar is Closed under Union, Intersection, Kleen Closure and complement. Context free grammar is closed under Union and Kleen Closure.

This L being a regular grammar it’s closed under all 4. Hence all three statements are correct.

(A regular grammar will always be context free)

Hence option D.
0 votes
0 votes
L={anbn∣n≥0}L={anbn∣n≥0}

The given Language is Context free language and CFL are closed under Union, Concatenation, and kleen closure,

S1 :  $L^2$ is a context free language, here  $L^2$ can be writtern as

$L^2$ = L.L and CSL is closed under concatenation so  $L^2$ is a CFL

 

S2:$L^k$ context free language for any given k≥1, $L^k$ can be writtern as L.L.L…..k times and CFL are closed under concatenation so $L^k$ is CFL

S3: L¯  and  $L^∗$ are context free languages

Context free language are not closed under complementation for complement of L may be CFL or CSL.

here complement of L is CFL,

and CFL are closed under kleen closure (*) so it is CFL.

so correct ans is D.

Related questions

1 votes
1 votes
2 answers
1
4 votes
4 votes
6 answers
3
soujanyareddy13 asked May 12, 2021
1,922 views
The Boolean expression $AB+A \overline{B}+\overline{A}C+AC$ is unaffected by the value of the Boolean variable _________.$A$$B$$C$$A, B$ and $C$