Deprecated: Implicit conversion from float-string "1568944608.706" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1568944608.706" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1568944608.706" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1568944608.706" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1568944608.706" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1568948463.941" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1568948463.941" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1568948463.941" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1568948463.941" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1568948463.941" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1568948589.245" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1568948589.245" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1568948589.245" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1568948589.245" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1568948589.245" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1574146354.525" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1574146354.525" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1574146354.525" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1574146354.525" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1574146354.525" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1578052885.391" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1578052885.391" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1578052885.391" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1578052885.391" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1578052885.391" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1594213117.293" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1594213117.293" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1594213117.293" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1594213117.293" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1594213117.293" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
Theory of Computation: TIFR CSE 2014 | Part B | Question: 13
edited by
3,606 views
28 votes
28 votes

Let $L$ be a given context-free language over the alphabet $\left\{a, b\right\}$. Construct $L_{1},L_{2}$ as follows. Let $L_{1}= L - \left\{xyx\mid x, y \in \left\{a, b\right\}^*\right\}$, and $L_{2} = L \cdot L$. Then,

  1. Both $L_{1}$ and $L_{2}$ are regular.
  2. Both $L_{1}$ and $L_{2}$ are context free but not necessarily regular.
  3. $L_{1}$ is regular and $L_{2}$ is context free.
  4. $L_{1}$ and $L_{2}$ both may not be context free.
  5. $L_{1}$ is regular but $L_{2}$ may not be context free.
edited by

2 Answers

Best answer
54 votes
54 votes

$L$ is a context free language over $\{a,b\}$
$L_1 = L - \{xyx \mid x,y \in \{a,b\}^* \}$    

      $= L - \{ \text{all strings over} \{a,b\} \}$    [ Note: all strings can be generated from y by putting $x= \epsilon$]

      $= L - (a+b)^* = \{\}$ , empty set.    [Note : $L_1 - L_2 = \{ \text{string in $L_1$ but not in L2 }\}$ ]

So , $L_1$ is a Regular Language. 

$L$ is a context free language over $\{a,b\}$ 

$L_2 = L \cdot L$
Context free languages are closed under Concatenation. 

So, $L_2$ is Context Free Language.

Option C is correct.

edited by
9 votes
9 votes

L1 =  CFL - (x+y)* = ∅  Which is Regular.

L2 = CFL . CFL = CFL

Since CFL Is  Closed Under Concatination.

C Is Answer.

edited by
Answer:

Related questions

7.6k
views
2 answers
25 votes
makhdoom ghaya asked Nov 20, 2015
7,627 views
Which the following is FALSE?Complement of a recursive language is recursive.A language recognized by a non-deterministic Turing machine can also be recognized by a deter...
5.0k
views
3 answers
22 votes
makhdoom ghaya asked Nov 20, 2015
4,956 views
Consider the following three statements:Intersection of infinitely many regular languages must be regular.Every subset of a regular language is regular.If $L$ is regular ...
1.5k
views
1 answers
4 votes
makhdoom ghaya asked Nov 14, 2015
1,519 views
Let $L$ be a line on the two dimensional plane. $L'$s intercepts with the $X$ and $Y$ axes are respectively $a$ and $b$. After rotating the co-ordinate system (and leavin...
3.3k
views
4 answers
40 votes
makhdoom ghaya asked Nov 20, 2015
3,305 views
Consider the following game. There is a list of distinct numbers. At any round, a player arbitrarily chooses two numbers $a, b$ from the list and generates a new number $...