If L1 and L2 are languages we have a new language
INTERLACE(L1, L2) = {w1v1w2v2 . . . wnvn | w1w2 . . . wn ∈ L1, v1v2 . . . vn ∈ L2}.
For example, if abc ∈ L1
and 123 ∈ L2
, then a1b2c3 ∈ INTERLACE(L1, L2)
How can I prove that the INTERLACE
is:
- decidable ?
- recognizable ?
I know how to show this language is regular. For decidable I am not so sure..
Here's what I think:
To show that the class of decidable languages is closed under operation
INTERLACE
need to show that if A and B are two decidable languages, then there is method to find ifINTERLACE
language is decidable. SupposeA
,B
decidable languages andM1
,M2
twoTM
who decide, respectively.
After I think I have to say how to construct the DFA that recognize the language?