Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Rice’s theorem. Let P be any nontrivial property of the language of a Turing machine. Prove that the problem of determining whether a given Turing machine’s language has property P is undecidable. In more formal terms, let P be a language consisting of Turing machine descriptions where P fulfils two conditions. First, P is nontrivial—it contains some, but not all, TM descriptions. Second, P is a property of the TM’s language—whenever LM1=LM2, we haveM1P if and only iffM2P . Here, M1 and M2 are any TMs. Prove that P is an undecidable language.

Short Answer

Expert verified

It is proved P is undecidable.

Step by step solution

01

Undecidability

A problem is undecidable if no Turing Machine exist which will halt in finite amount of time.

02

Proving   as undecidable

Let us assume P is a decidable language and let Turing Machine RP that decides P

.

We will design Turing Machine s that will decide ATMby the use ofRP. First, let T' be a Turing Machine that always rejects for any input.

This means: LT'=.

For clarity we will assume that T'Pso that we not proceed with P¯ instead of P if T'P. Because P is not trivial, so there exists a Turing Machine T withTP.

Now we will design Turing Machine S using RP because RP

s= on inputM,w

  • Use M and w to construct the following TM MW.

Mw=on input x Mw=oninputxMw=oninputx

Run M on w .

If it halts and rejects, reject.

If it accepts, proceed to stage 2.

Run T on x . If it accepts, accept.

  • Use TMRPto determine whether MwP.

If YES, accept

Else

If NO, reject.

Turing Machine Mw runs T if M accepts w .

Hence

  • LMW=LTif M accepts w
  • If reject then LM=.

Therefore, MWPif and only if M accepts w.

But ATM is undecidable, so s which is made similar to RP cannot decide P .

Thus, P is undecidable.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Show that P is closed under homomorphism iff P = NP.

Question:Consider the algorithm MINIMIZE, which takes a DFA as input and outputs DFA .

MINIMIZE = “On input , where M=(Q,Σ,δ,q0,A) is a DFA:

1.Remove all states of G that are unreachable from the start state.

2. Construct the following undirected graph G whose nodes are the states of .

3. Place an edge in G connecting every accept state with every non accept state. Add additional edges as follows.

4. Repeat until no new edges are added to G :

5. For every pair of distinct states q and r of and every aΣ :

6. Add the edge (q,r) to G if δq,a,δr,a is an edge of G .

7. For each state q,let[q] be the collection of statesq={rQ|noedge joins q and r in G }.

8.Form a new DFA M'=Q',Σ,δ',q'0,A'where

Q'={[q]|qQ}(ifq=r,onlyoneofthemisinQ'),δ'(q,a)=[δq,a]foreveryqQandaΣ,q00=[q0],andA0={[q]|qA}

9. Output ( M')”

a. Show that M and M' are equivalent.

b. Show that M0 is minimal—that is, no DFA with fewer states recognizes the same language. You may use the result of Problem 1.52 without proof.

c. Show that MINIMIZE operates in polynomial time.

For each part, give a relation that satisfies the condition.

  1. Reflexive and symmetric but not transitive
  2. Reflexive and transitive but not symmetric
  3. Symmetric and transitive but not reflexive

Let
fx=3x+1foroddxx/2forevenx

for any natural number x . If you start with an integer x and iterate f , you obtain a sequence, x,fx,ffx,......Stop if you ever hit 1. For example, if x=17 , you get the sequence 17,52,26,13,40,20,10,5,16,8,4,2,1 .Extensive computer tests have shown that every starting point between 1 and a large positive integer gives a sequence that ends in 1 . But the question of whether all positive starting points end up at 1 is unsolved; it is called the 3x+1 problem. Suppose that ATMwere decidable by a TM H. Use H to describe a TM that is guaranteed to state the answer to the 3x+1 problem.

Recall, in our discussion of the Church–Turing thesis, that we introduced the language is a polynomial in several variables having an integral root}. We stated, but didn’t prove, thatis undecidable. In this problem, you are to prove a different property of—namely, thatDis -hard. A problem is -hard if all problems in are polynomial time reducible to it, even though it may not be inNPitself. So you must show that all problems in NPare polynomial time reducible to D .

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free