/*! 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} 6E In Theorem 3.21 we showed that a... [FREE SOLUTION] | 91影视

91影视

In Theorem 3.21 we showed that a language is Turing-recognizable iff some enumerator enumerates it. Why didn鈥檛 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 = 鈥淚gnore 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鈥檛 print out si.

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

E = 鈥淚gnore 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 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

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.

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.

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

This exercise concerns TM M1, whose description and state diagram appear in Example 3.9. In each of the parts, give the sequence of configurations that M1 enters when started on the indicated input string.

a. 11.

b. 1#1

c. 1##1

d. 10#11

e. 10#10

Let a k - PDA be a pushdown automaton that has k stacks. Thus a 0 - PDA is an NFA and a 1 - PDA is a conventional PDA. You already know that 1 - PDAs are more powerful (recognize a larger class of languages) than 0 - PDAs.

a. Show that 2 - PDAs are more powerful than 1 - PDAs.

b. Show that 3 - PDAs are not more powerful than2 - PDAs. (Hint: Simulate a Turing machine tape with two stacks.

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.