computation-theoryturing-machinesformal-languagesdecidable

Prove whether this language is decidable and recognizable


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:

  1. decidable ?
  2. 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 if INTERLACE language is decidable. Suppose A, B decidable languages and M1, M2 two TM who decide, respectively.

After I think I have to say how to construct the DFA that recognize the language?


Solution

  • L1 and L2 decidable ==> INTERLACE(L1, L2) decidable

    Citation from Wikipedia:

    There are two equivalent major definitions for the concept of a recursive (also decidable) language:
    ...
    2. A recursive language is a formal language for which there exists a Turing machine that, when presented with any finite input string, halts and accepts if the string is in the language, and halts and rejects otherwise.

    Using this definition:

    One can easily prove that M is the decision algorithm for INTERLACE(L1, L2), thus, the language is decidable.

    L1 and L2 recognizable ==> INTERLACE(L1, L2) recognizable

    Citation from Wikipedia:

    There are three equivalent definitions of a recursively enumerable (also recognizable) language:
    ...
    3. A recursively enumerable language is a formal language for which there exists a Turing machine (or other computable function) that will halt and accept when presented with any string in the language as input but may either halt and reject or loop forever when presented with a string not in the language. Contrast this to recursive languages, which require that the Turing machine halts in all cases.

    The proof is very similar to the proof of the 'decidable' property.


    P.S. you were almost there, actually ;)