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
- A$(z\:x\:yy+x\:z\:y)(z\:x\:yy)$
- B$\left(zxyy+(xzy)^*\right)(zxyy\:zxyy)*$Correct answer
- C$(zxyy+xzy)(zxyy)^*$
- 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.