All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · December 2019

Let Σ = {w, x} and T = {x, y, z}, with homomorphism h(x) = xzy and h(w) = zxyy. If L is denoted by r = (w + x*)(ww)*, then h(L) is denoted by

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. (zxyy + (xzy)*)(zxyyzxyy)*

Explanation

Apply h to each symbol of the expression: w → zxyy, x* → (xzy)*, (ww)* → (zxyyzxyy)*.

More Theory of Computation and Compilers questions