Question: A useless state in a Turing machine is one that is never entered on any input string. Consider the problem of determining whether a Turing machine has any useless states. Formulate this problem as a language and show that it is undecidable.

Short Answer

Expert verified

The given problem in the question is undecidable.

Step by step solution

01

Introduction to Turing Machine and Undecidability

Turing Machine

A Turing Machine is a computational model concept that runs on the unrestricted grammar of Type-0. It accepts recursive enumerable languages and comprises of an infinite tape length, where read and write operations can be performed accordingly.

Undecidable

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

02

Proving the language is undecidable

Define the given problem in the form of a language:

USELESSTM=M,q|whereqisuselessstateofTuringMachineM.

To proveUSELESSTMis undecidable, useETMto reduceUSELESSTMas undecidable.

localid="1663253036066" ETM=M|MisaTuringMachineandLM=

It is known thatETMis undecidable.

LetUSELESSTMbe decidable and let R decide it.

For any state of Tuning Machine M, stateqacceptis useless ifLM=

Now, use R to check whetherqacceptis a useless state.

Define TM S, which decidesETMby using the R forUSELESSTMas follows:

S=onoutputM, M being Turing Machine

  • Run R on input M,qaccept
  • If R accepts,ETMaccepts, if not, ETMrejects.

But sinceETMis undecidable, so it is not possible to construct a Turing Machine that will decide USELESSTM.

Hence, USELESSTMis 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

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.

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=ε

Letxandy be strings and let L be any language. We say that x and y are distinguishable by L if some string Z exists whereby exactly one of the stringsxzandyz is a member of L ; otherwise, for every string z , we have xzLwhenever yzLand we say that are indistinguishable by L. If xandyare indistinguishable by L, we write x ≡L y. Show thatLis an equivalence relation.

Let

A/B={w|wxaAforsomexB}Show that ifAis context free andBis regular, thenA/Bis context free

If we disallow ε- in CFGs, we can simplify the DK-test. In the simplified test, we only need to check that each of DK’s accept states has a single rule. Prove that a CFG without ε- passes the simplified DK-testiff it is a DCFG.

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