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

In Theorem 3.21 we showed that a language is Turing-recognizable iff some enumerator enumerates it. Why didn’t we use the following simpler algorithm for the forward direction of the proof? As before, s1,s2,... is a list of all strings in *

E = “Ignore the input.

1. Repeat the following for i=1,2,3,...

2. Run M on si.

3. If it accepts, print out si.”

Short Answer

Expert verified

We need to simulate on each of the strings for a fixed length of time so that no looping can occur.

Step by step solution

01

Turing machine.

A Turing Machine (TM) is a mathematical model which consists of an infinite length tape divided into cells on which input is given. It consists of a head which reads the input tape. A state register stores the state of the Turing machine.

A Turing machine consists of a tape of infinite length on which read and writes operation can be performed. The tape consists of infinite cells on which each cell either contains input symbol or a special symbol called blank. It also consists of a head pointer which points to cell currently being read and it can move in both directions.

02

Solution.

The problem with the proof is that M on si might loop forever. If it loops forever, then E0 doesn’t print out si.

More importantly, E isn’t going to move on to test the next string. Therefore, it won’t be able to enumerate any other strings in L.

E = “Ignore the input.

1. Repeat the following for i=1,2,3,...

2. Run M on si.

3. If it accepts, print out si.”

For this reason, we need to simulate M on each of the strings for a fixed length of time so that no looping can occur.

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

Let A be the language containing only the single string s, where

s=(0iflifeneverwillbefoundonMars.                                  1iflifewillbefoundonMarssomeday.)

Is decidable? Why or why not? For the purposes of this problem, assume that the question of whether life will be found on Mars has an unambiguous YES or NO answer.

Examine the formal definition of a Turing machine to answer the following questions, and explain your reasoning.

a. Can a Turing machine ever write the blank symbol on its tape?

b. Can the tape alphabetΓbe the same as the input alphabet?

c. Can a Turing machine’s head ever be in the same location in two successive steps?

d. Can a Turing machine contain just a single state?

Explain why the following is not a description of a legitimate Turing machine. Mbad= “On input (p), a polynomial over variablesx1,...,xk:

1. Try all possible settings of x1,...,xk:to integer values.

2. Evaluate p on all of these settings.

3. If any of these settings evaluates to 0, accept; otherwise, reject.”

Show that a language is decidable if some enumerator enumerates the language in the standard string order.

A Turing machine with doubly infinite tape is similar to an ordinary Turing machine, but its tape is infinite to the left as well as to the right. The tape is initially filled with blanks except for the portion that contains the input. Computation is defined as usual except that the head never encounters an end to the tape as it moves leftward. Show that this type of Turing machine recognizes the class of Turing-recognizable languages.

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