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.
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.
Investigate and Prove that the following closure properties hold for Turing machines Theorem 7: Both the...
Prove the following closure properties for the class NP. (a) Prove that the class NP is closed under union. (b) Prove that the class NP is closed under concatenation.
Q1: Which of the following claims are true?* 1 point The recognizable languages are closed under union and intersection The decidable lanquages are closed under union and intersection The class of undecidable languages contains the class of recognizable anguages For every language A, at least one of A or A*c is recognizable Other: This is a required question Q2: Which of the following languages are recognizable? (Select all that apply) 1 point EDFA-{ «A> 1 A is a DFA and...
Please also note that there might be multiple answers for each question. Q1: Which of the following claims are true?* 1 point The recognizable languages are closed under union and intersection The decidable languages are closed under union and intersection The class of undecidable languages contains the class of recognizable languages For every language A, at least one of A or A*c is recognizable Other: This is a required question Q2: Which of the following languages are recognizable? (Select all...
Closure properties of P and NP. (a) Is P closed under union, intersection, concatenation, complement and star? Just answer ”yes” or ”no” for each operation. (b) Is NP closed under union, intersection, concatenation, complement and star? Just answer ”yes” or "no" for each operation.
Explain the answer QUESTION 8 The classes of languages P and NP are closed under certain operations, and not closed under others, just like classes such as the regular languages or context-free languages have closure properties. Decide whether P and NP are closed under each of the following operations. 1. Union. 2. Intersection. 3. Intersection with a regular language. 4. Concatenation 5. Kleene closure (star). 6. Homomorphism. 7. Inverse homomorphism. Then, select from the list below the true statement. OP...
3. (20 pt.) Prove that the following language is not regular using the closure properties of regular languages. C = {0"1"|m,n0 and mon} Hint: find a regular language L such that CNL is not regular and use the closure properties of regular languages to show that this means that C is not regular.
2. Properties of the following: (a) Regular languages (b) Context-free languages (c) Regular expressions (d) Non-deterministic finite automaton (e) Turing-recognizable and Turing-decidable languages (f) A <m B and what we can then determine (g) A <p B and what we can then determine (h) NP-hard and NP-complete.
Turing machines, closure properties, decidability Let P(z) = coz" + ca"-! + . . . +4-12+ cn be a polynomial with a root at r = zo. Let Cmax be the largest absolute value of a . Show that 1. (a) rol S col (b) What can you conclude from (a) about the problem of deciding whether a given poly- (c) What can you conclude from (a) about the problem of deciding whether a given poly- (d) Apply the knowledge...
Questions from my recent quiz that I had problems with. Can anyone assist? Closure Properties of Regular Languages 1. **Show that if a language family is closed under union and complementation, it must also be closed under intersection 2. The symmetric difference of two sets S1 and S2 is defined as S_1 CircleMinus S_2 = {x: x elementof S_1 or x elementof S_2, but x is not in both S_1 and S_2) Show that the family of regular languages is...
Prove the following language is not regular (you may use pumping lemma and the closure of the class of regular languages under union, intersection, and complement.): (w | w ∈ {0,1}* is not a palindrome} Please show work/explain. Thanks.