/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q14P Consider the problem of determin... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Consider the problem of determining whether a Turing machine M on an input w ever attempts to move its head left when its head is on the left-most tape cell. Formulate this problem as a language and show that it is undecidable.

Short Answer

Expert verified

The given problem in question is undecidable.

Step by step solution

01

Introduction to Turing Machine and Undecidability

Turing Machine

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

Undecidable

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

02

Proving the language is undecidable

Defining a language for above problem:

LTM=M,w|MisTuringMachineandisstringwhichtriestomoveitsheadfromleft-mosttapecell

Let there be a Turing Machine decider Rthat decides LTM.

Construct a Turing Machine Sthat will use Rto decide ATM.

S=OninputM,w

  • Convert Mto M'such that M'firstly moves input from one cell to the right and will enter new symbol ‘#’ on the left-most cell of tape.

Then run M'will make Mto run on the input.

If M'come across symbol ‘#’, then M'moves its head one cell to the right and remain in same state.

So if Maccepts, M' moves its head to the left.

  • Run Ron input M',w
  • If Raccepts, then M'accepts, else reject.

Since Ris decider of ATMand define Swith help of R, so Smust also decide ATM.

But ATMis undecidable, and Sis decider of LTM.

Therefore,LTM 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 91Ó°ÊÓ!

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

Consider the language B=L(G), where Gis the grammar given in

Exercise 2.13. The pumping lemma for context-free languages, Theorem 2.34,

states the existence of a pumping length p for B . What is the minimum value

of p that works in the pumping lemma? Justify your answer.

Modify the proof of Theorem 3.16 to obtain Corollary 3.19, showing that a language is decidable if some nondeterministic Turing machine decides it. (You may assume the following theorem about trees. If every node in a tree has finitely many children and every branch of the tree has finitely many nodes, the tree itself has finitely many nodes.)

Let

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

Myhill–Nerode theorem. Refer to Problem 1.51 . Let L be a language and let X be a set of strings. Say that X is pairwise distinguishable by L if every two distinct strings in X are distinguishable by L. Define the index of L to be the maximum number of elements in any set that is pair wise distinguishable by L . The index of L may be finite or infinite.

a. Show that if L is recognized by a DFA with k states, L has index at most k.

b. Show that if the index of L is a finite number K , it is recognized by a DFA with k states.

c. Conclude that L is regular iff it has finite index. Moreover, its index is the size of the smallest DFA recognizing it.

Let

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

∑3contains all size 3 columns of 0s and 1 s. A string of symbols in∑3gives 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,110∈Bbut001,101∉B

Show that Bis regular.

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

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.