Skip to content

UGC NET CS 2020Theory of Computation and Compilers › Turing Machines (TM)Verified

UGC NET CS 2020 PYQ: Consider $L=L_1 \cap L_2$ where $L_1 = \{ 0^m 1^m 20^n 1^n \mid m,n \geq 0 \}$ $L_2 = \{0^m1^n2^k \mid m,n,k…

Consider $L=L_1 \cap L_2$ where

$L_1 = \{ 0^m 1^m 20^n 1^n \mid m,n \geq 0 \}$

$L_2 = \{0^m1^n2^k \mid m,n,k \geq 0 \}$

Then, the language $L$ is

  1. A
    Recursively enumerable but not context free
  2. B
    Regular
  3. C
    Context free but not regular
    Correct answer
  4. D
    Not recursive

Answer

(C) Context free but not regular

Approach

Intersect L1 with the regular order constraint of L2.

Reviewed by UGC IQ Editorial Team.