Exercise ‹16›:

Regular description for σ(L)\sigma(L) where L={w∈{a,b}∗∣∣w∣a∈2N}L=\{ w \in \{a,b\}^* \mid |w|_a\in 2\mathbb{N} \}
and σ\sigma is the transducer with states {0,1,2}\{0,1,2\}, initial state 00, and transitions
0→a ∣ aba1,  0→b ∣ bb2,  1→a ∣ b2,  1→b ∣ a0,  2→a ∣ a1,  2→b ∣ bbba00\xrightarrow{a\,|\,aba}1,\;0\xrightarrow{b\,|\,bb}2,\;1\xrightarrow{a\,|\,b}2,\;1\xrightarrow{b\,|\,a}0,\;2\xrightarrow{a\,|\,a}1,\;2\xrightarrow{b\,|\,bbba}0
Give a regular description for the image of the language L={w∈{a,b}∗∣∣w∣a∈2N}L=\{ w \in \{a,b\}^* \mid |w|_a\in 2\mathbb{N}\} through this transducer:


Such transducer can be alternatively formalized as the following set of rewrite rules:
0a→aba10b→bb21a→b21b→a02a→a12b→bbba0\begin{array}{l} 0a\to aba1\\ 0b\to bb2\\ 1a\to b2\\ 1b\to a0\\ 2a\to a1\\ 2b\to bbba0\end{array}
In this alternative setting, to rewrite a word w∈Lw\in L we would start the execution with the word 0w0w and proceed until obtaining a word of the form w′0w'0 or w′1w'1 or w′2w'2 (i.e., a word that cannot be rewritten any further), where w′w' would be the generated output.

In order to get more intuition on how this transducer works, consider the word baa∈Lbaa\in L and the following step-by-step execution: Since there is no more input, the execution terminates. Hence, the image of the word baa∈Lbaa\in L through the transducer is bbabbbab.
Authors: Guillem Godoy / Documentation:
To be able to submit you need to log in, register, or become a guest.