Question

Investigate and Prove that the following closure properties hold for Turing machines Theorem 7: Both the...

Investigate and Prove that the following closure properties hold for Turing machines

Theorem 7: Both the Turing-recognizable and Turing- decidable languages are closed under concatenation and star.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ans.1 Turing-recognizable languages are closed under concatenation and star. this statement is true.

Prove:

Concatenation : Let K and L be two Turing recognizable languages, and let MK and ML denote the Turing machines that recognize K and L respectively. We construct a non-deterministic Turing machine MKL that recognizes the language KL.

i. Non-deterministically cut input w into w1 and w2

ii. Run MK on w1. If it halts and rejects, reject.

iii. Run ML on w2. If it accepts, accept. If it halts and rejects, reject.

Note the difference between the Turing machines for recognizable and decidable languages. Here, we need to take care of the fact that the machines MK and ML need not halt.

Star : For a Turing recognizable language L, we construct a nondeterministic Turing machine ML that recognizes L. The idea is similar to the decidable case.

i. On input w, non-deterministically cut w into parts w1 w2···wn.

ii. Run ML on wi for all i. If ML accepts all of them, accept. If ML halts and rejects for any i, reject.

If there is a way to cut w into strings w1 w2···wn such that each wi ∈ L, then there is a computation path in ML that accepts w in a finite number of steps.

Turing-decidable languages are closed under concatenation and star. this statement is true.

Prove:

Concatenation: Let K, L be decidable languages. The concatenation of languages K and L is the language KL = {xy|x ∈ K and y ∈ L}. Since K and L are decidable languages, it follows that there exist Turing machines MK and ML that decide the languages K and L respectively. In order to prove that KL is decidable, we can construct a Turing machine that decides KL.

This machine, MKL can use the machines MK and ML to decide if a string is in KL or not. The machine can be constructed as follows :

Consider an input string w. We need to decide if w is of the form xy for x ∈ K and y ∈ L. If this is the case, there must be a position at which we can partition w into x and y. Since there are only finitely many ways to partition the string, we can try all possibilities and accept if there is such a partition and reject otherwise. We will describe a nondeterministic Turing machine since it is easier to describe.

i. On input w, non-deterministically partition w into strings xy.

ii. Input x to MK and y to y on ML.

iii. accept if both MK and ML accept, else reject.

If there is an accepting computation path, then we have found a successful split and the string is in KL. If all computation paths reject, then the string is not in KL. In either case, it is easy to see that the machine MKL halts. Thus, KL is decidable.

Star: For a language L, L = {x ∈ L∪ LL ∪ LLL ∪···}. i.e. all strings obtained by concatenating L with itself, and so on. To show that L is decidable, the idea is similar to the previous solution. We want to find cuts of the input string w, such that each of them is accepted by the Turing machine ML that decides L. Let ML be the machine that that decides L.

i. On input w : For each way to cut w into parts w1 w2···wn

ii. Run ML on wi for i = 1,···,n.

iii. If ML accepts each of the strings wi accept.

iv. If all cuts have been tried without success, reject.

Add a comment
Know the answer?
Add Answer to:
Investigate and Prove that the following closure properties hold for Turing machines Theorem 7: Both the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT