Question

In: Computer Science

Undecidability .20 marks Let L1 = {M | M is a TM that halts on the...

Undecidability .20 marks

Let L1 = {M | M is a TM that halts on the empty tape leaving exactly two words on its tape in the form Bw1Bw2B} where B represents Blank like w1 w2 . (a) The problem of deciding whether an arbitrary Turing machine will accept an arbitrary input is undecidable. Prove formally using problem reduction, that given an arbitrary Turing machine M, the problem of deciding if M ∈ L1 is undecidable.

(b) Is L1 recursive, recursively enumerable, non-recursively enumerable, uncomputable? Justify your answer.

Solutions

Expert Solution

(a)

We will prove that L1 is undecidable by showing that L1 is Turing reducible from L where

L = {<M,w> | if TM M accepts w}

Suppose that L1 is decidable and hence there exist Turing machine T which on input M decides whether M ∈ L1 or not.

Let us understand how to create Turing machine for L .

Given input instance <M,w> of L, construct Turing machine M1 which on input x performs as follows:-

1. If x is non-blank then clear entire input from the tape, reject the input and halt.

2. If x is blank then perform below steps

.....2.1 copy string w onto the input tape

.....2.2 move the tape header at the beginning of the string w.

....2.3 TM M1 will now simulate as M on input w.

....2.4 If M1 reach at any state which is accepting state in M then write Bw1Bw2B on the input tape and halt otherwise clear the input from tape and halt.

Now if <M,w> ∈ L then this means M will accept w and hence TM M1 on blank input will write Bw1Bw2B into the tape and if <M,w> L then M1 will not leave any symbol on the tape.

Hence if TM T exist to decide L1 then we will be able to decide L but since L is undecidable, hence decidable TM T cannot exist for L1, hence L1 is undecidable.

(b) L1 is not recursive because recursive problem are always decidable.

However L1 is recursive enumerable because if TM M on blank input halts with leaving Bw1Bw2B onto the tape then this can be verified by some Turing machine T. Hence L1 is recursive enumerable but not recursive.

Please comment for any clarification.


Related Solutions

bond prices par value,    coupon r, Year TM, Yield TM, Price $1,000.000.          5%          20.        &nbsp
bond prices par value,    coupon r, Year TM, Yield TM, Price $1,000.000.          5%          20.            5%         ? $1,000.000.          9%          30.            6%         ? $5,000.000.          11%        25.            8%         ? $5,000.000.           6%          5.             12%        ? find the price for the bond in the following table:
Let L1 be the language of the binary representations of all positive integers divisible by 4....
Let L1 be the language of the binary representations of all positive integers divisible by 4. Let L2 be the language of the binary representations of all positive integers not divisible by 4. None of the elements of these languages have leading zeroes. a) Write a regular expression denoting L1. b) Write a regular expression denoting L2. c) a) Draw a state diagram (= deterministic finite state automaton) with as few states as possible which recognizes L1. This state diagram...
QUESTION 5 (20 Marks) M&M Manufacturing Co. supplies automotive parts in three outlets in Denver. The...
QUESTION 5 M&M Manufacturing Co. supplies automotive parts in three outlets in Denver. The inverse demand equations faced by each outlet are as follows: Outlet 1:          P = 150 – 2.50 Q1 Outlet 2:          P = 200 – 8.40 Q2 Outlet 3:          P = 450 – 0.75 Q3 If the firm charges $100 per unit, determine the quantity demanded by each outlet. Given the price, compute the own price elasticity for each outlet and identify which outlet is the...
(a) Let M be a Cr submanifold of Rn, and let f : M → R...
(a) Let M be a Cr submanifold of Rn, and let f : M → R be a Cr function. Show there is an open neighbourhood V of M in Rn and a Cr function g : V → R such that f = g|M. (b) Show that, if M is a closed subset of Rn, then we can take V = Rn . (c) Can we take V = Rn in general? Why or why not? We've just learned...
Recall that given a line L1 in the plane with slope m, a second line L2...
Recall that given a line L1 in the plane with slope m, a second line L2 is perpendicular to L1 if and only if the slope of L2 is − 1 m . Now consider the function h(x) = x^2 + 3/2x + 3. Among all of the lines tangent to the graph of h(x), there is exactly one which is perpendicular to the line given by y = −2x + 7. Write the equation of that line tangent to...
(20 pts total) You are determining the Tm (melting temperature) for the double stranded DNA molecule...
(20 pts total) You are determining the Tm (melting temperature) for the double stranded DNA molecule created by hybridization of 2 oligonucleotides with the following sequences: O1 : 5’-d-GCTTGATTAGTTATTGC-3’ O2 : 5’-d-GGGGCAATAACTAATCAAGC-3’ a. (5 pts) Write down the sequence of the hybridized/annealed double stranded DNA molecule. Make sure the sequences are aligned, as they would be in the resulting DNA molecule. Label the 5’ and 3’ end of each strand. O1/O2 5'-d-GCTTGATTAGTTATTGC-3' 3'-CGAACTAATCAATAACGGGG-d-5' b. (7 pts) You want to label...
QUESTION 3 (20 MARKS) QUESTION 3 (20 MARKS) An analysis of the Business School graduates found...
QUESTION 3 QUESTION 3 An analysis of the Business School graduates found that 210 out of 318 randomly selected graduates used An analysis of the Business School graduates found that 210 out of 318 randomly selected graduates used  a statistical inference technique during their first year of employment.a statistical inference technique during their first year of employment. (a) Calculate a 90% confidence interval for the proportion of graduates who used a statistical inference (a) Calculate a 90% confidence interval for the...
An arch dam has the following characteristics. H= 22.2 m, L1=400m, L2=120 m, Find the thickness...
An arch dam has the following characteristics. H= 22.2 m, L1=400m, L2=120 m, Find the thickness and projection on the crown cantilever and volume of the concrete.
Dry, compressed air at Tm,i = 85°C, p = 20 atm, with a mass flow rate...
Dry, compressed air at Tm,i = 85°C, p = 20 atm, with a mass flow rate of m?? = 0.005kg/s, enters a 30-mm- diameter, 5-m-long tube whose surface is at Ts = 25°C. Determine the thermal entry length, the mean temperature of the air at the tube outlet, the rate of heat transfer from the air to the tube wall, and the power required to flow the air through the tube. ?
The intersection of two lists L1 and L2, L1 ∩ L2, is defined as the list...
The intersection of two lists L1 and L2, L1 ∩ L2, is defined as the list containing elements in both L1 and L2 only. Given two sorted lists L1 and L2, write a function, called intersection, to compute L1 ∩ L2 using only the basic list operations. The intersection function is defined as follows template list intersection( const list & L1, const list & L2); C++
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT