edited by
293 views
0 votes
0 votes

Let $\Sigma = \{0,1\}$. Let $C_{1}$ be the language of all strings that contain a $1$ in their middle third. Let $C_{2}$ be the language of all strings that contain two $1s$ in their middle third.So $C_{1} = \{xyz \mid x,z\in \Sigma^{\ast}\: \text{and} \: y \in \Sigma^{\ast} 1 \Sigma^{\ast}, \text{where} \mid x \mid = \mid z \mid\: \geq\: \mid y \mid \}$ and $C_{2} = \{xyz \mid x,z\in \Sigma^{\ast}\:\text{and} \:y \in \Sigma^{\ast} 1 \Sigma^{\ast}1 \Sigma^{\ast}, \text{where} \mid x \mid = \mid z \mid\: \geq\: \mid y \mid  \}$.

  1. Show that $C_{1}$ is a CFL.
  2. Show that $C_{2}$ is not a CFL.
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
0 answers
2
0 votes
0 votes
1 answer
3
admin asked Oct 12, 2019
1,372 views
We defined the rotational closure of language $A$ to be $RC(A) = \{yx \mid xy \in A\}$.Show that the class of CFLs is closed under rotational closure.
1 votes
1 votes
0 answers
4