Skip to content

UGC NET CS 2019Theory of Computation and Compilers › Regular Language ModelsVerified

UGC NET CS 2019 PYQ: Consider $\sum=\{w, x\}$ and $T=\{x, y, z\}$. Define homomorphism $h$ by: $$h(x)=xzy$$ $$h(w)=zxyy$$ If $L$…

Consider $\sum=\{w, x\}$ and $T=\{x, y, z\}$. Define homomorphism $h$ by:

$$h(x)=xzy$$

$$h(w)=zxyy$$

If $L$ is the regular language denoted by $r=(w+x^*)(ww)^*$, then the regular language $h(L)$ is given by

  1. A
    $(z\:x\:yy+x\:z\:y)(z\:x\:yy)$
  2. B
    $\left(zxyy+(xzy)^*\right)(zxyy\:zxyy)*$
    Correct answer
  3. C
    $(zxyy+xzy)(zxyy)^*$
  4. D
    $\left(zxyy+(xzy)^*\right)(zxyy\:zxyy)$

Answer

(B) $\left(zxyy+(xzy)^*\right)(zxyy\:zxyy)*$

Approach

Apply the homomorphism to a regular expression by substituting inside each operator.

Reviewed by UGC IQ Editorial Team.