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

Let
fx=3x+1foroddxx/2forevenx

for any natural number x . If you start with an integer x and iterate f , you obtain a sequence, x,fx,ffx,......Stop if you ever hit 1. For example, if x=17 , you get the sequence 17,52,26,13,40,20,10,5,16,8,4,2,1 .Extensive computer tests have shown that every starting point between 1 and a large positive integer gives a sequence that ends in 1 . But the question of whether all positive starting points end up at 1 is unsolved; it is called the 3x+1 problem. Suppose that ATMwere decidable by a TM H. Use H to describe a TM that is guaranteed to state the answer to the 3x+1 problem.

Short Answer

Expert verified

We have constructed a TM that is describe by H.

Step by step solution

01

Construction of Turing Machine Mquery

Let’s design a Turing Machine Mquerywhich takes x as input and accepts only if iterating f starts from x lets to obtain 1 and looping infinite.

So we constructMquery as follows:

Mquery=on inputx

  • If x=1

Accepts x

  • If x=odd number

Update x=3x+1

  • If x=even number

Update x=x/2

  • Repeat again from starting

Now create Turing MachineMloop that will iterate for all positive number.Mloop will search a value of x such that f starting from x up to 1 and will accept it if fund such value of x. Now we will use another TM H which helps us to instead of simulatingMquery on x, because if we simulateMloop to Mquery, there can be chance that we may or may not meet to counter example of x. Due to this reason we use H forMloop to check if Mqueryaccept x by making it passMquery,x to H.

02

Construct Turing Machine Mloop

Construct Mloopas follows:

Mloop=on inputw

  • Ignore w
  • For y=1,2,....
  • Run H on Mquery,y
  • If H rejects

Then Mloopwill accept

Else

Continue the loop

Now solve for 3x+1. To do this we need to know ifMloop is able to find counter-example or not. So here also we will use H to check ifMloop find counter-example or not.

M3x+1=oninputw

  • Ignore w
  • Run H on Mloop,ε
  • If H accept

Then print “We found counter-example of 3x+1”

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

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.)

In the silly Post Correspondence Problem, SPCP, the top string in each pair has the same length as the bottom string. Show that the SPCP is decidable.

LetAbe the set{x,y,z}andBbe the set{x,y}.

  1. IsAa subset ofB?
  2. IsBa subset ofA?
  3. What isAB?
  4. What isAB?
  5. What isA×B?
  6. What is the power set ofB ?

A two-dimensional finite automaton (2DIM-DFA) is defined as follows. The input is an m×nrectangle, for any m,n2. The squares along the boundary of the rectangle contain the symbol # and the internal squares contain symbols over the input alphabet . The transition function δ:Q×#Q×L,R,U,Dindicates the next state and the new head position (Left, Right, Up, Down). The machine accepts when it enters one of the designated accept states. It rejects if it tries to move off the input rectangle or if it never halts. Two such machines are equivalent if they accept the same rectangles. Consider the problem of determining whether two of these machines are equivalent. Formulate this problem as a language and show that it is undecidable.

Use the results of Exercise 2.16to give another proof that every regular language is context- free, by showing how to convert a regular expression directly to an equivalent context-free grammar.

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