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.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

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 the Post Correspondence Problem is undecidable over the binary alphabet.=0,1.

This problem is inspired by the single-player game Minesweeper, generalized to an arbitrary graph. Let Gbe an undirected graph, where each node either contains a single, hidden mine or is empty. The player chooses nodes, one by one. If the player chooses a node containing a mine, the player loses. If the player chooses an empty node, the player learns the number of neighboring nodes containing mines. (A neighboring node is one connected to the chosen node by an edge.) The player wins if and when all empty nodes have been so chosen.

In the mine consistency problem, you are given a graphG along with numbers labeling some of G’s nodes. You must determine whether a placement of mines on the remaining nodes is possible, so that any node v that is labeled m has exactly m neighboring nodes containing mines. Formulate this problem as a language and show that it isNPcomplete.

Use the procedure described in Lemma 1.60to convert the following finite automata to regular expressions.

Let

3=000,001,010,----,111

3contains all size 3 columns of 0s and 1 s. A string of symbols in3gives three rows of 0s and 1s. Consider each row to be a binary number and let B=W*3the bottom row of W is the sum of the top two rows}.

For example,

001,100,010,110Bbut001,101B

Show that Bis regular.

(Hint: Working with BRis easier. You may assume the result claimed in Problem 1.31.)

Give a counterexample to show that the following construction fails to prove Theorem 1.49, the closure of the class of regular languages under the star operationLet N1=Q1,Σ,δ1,q1,F1 recognize . Construct N=Q1,Σ,δ,q1,F as follows. Nis supposed to recognize A*1.

a. The states of Nare the states of N1.

b. The start state ofN is the same as the start state ofN1 .

c. . F=q1F1.The accept states are the old accept states plus its start state.

d. Defineδso that for any and any aΣε, δq,a=(δ1q,aq6F1ora6=εδ1q,aq1qF1anda=ε

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