Re: reductions



surf wrote:
....
I was given the following homework problem:

let A = {<M,x> | M is a turing machine and on input x outputs the
reverse of x}
show that A is r.e. but not decidable.

It seems to me that it is only r.e. up to a given size of the input.
Suppose you can test all possible strings for x up to length 1 million.
Isn't it possible at 1 trillion someplace that M will not reverse it's
input ? Since the size of the input is potentially infinite, how can
you ever be sure a given program allways will reverse it's input even
if it has for many such input ? I used the method in the Ullman book
page 324 to show it was not decidable, though perhaps there was a
simpler way ?


Are you sure you are reading the question correctly? The instance is
<M,x> so for any given test you only need to find out if a particular M
is a TM that reverses a particular x.

A is different from:

{<M> | M is a TM and for every input x M outputs the reverse of x}

which I think may be the language you are trying to recognize.

Patricia
.



Relevant Pages

  • Re: what does "serialization" mean?
    ... one never "creates" language, ... of any sort but by "generally accepted usage". ... >> It is in fact correct to say that the palindrome of a string is its ... >> reverse, and that a palindromic string is identical to its ...
    (comp.programming)
  • Re: reversing a byte
    ... Whence this unhealthy fascination with "most efficient?" ... to reverse a byte. ... The C language says nothing about the ... forum for such questions. ...
    (comp.lang.c)
  • Re: Two questions
    ... language can "easily" be reverse-engineered in the same way, with the only difference being the degree of ease involved. ... If the code is worth enough to someone that they are willing to risk violating your license terms, they *will* be able to recover enough source code to do what they need. ... Don't intend to hijack this thread, ... I know several accomplished C/assembly programmers who have told me that reverse engineering object code from either of these two languages is anything but trivial. ...
    (comp.lang.python)
  • Re: Question about Descriptors
    ... >>to learn the language. ... >>interesting, REVERSE, which reverses the characters in a string. ... >>Not wanting to start a war with those who believe in declaring all variables, ... and COMMON blocks of GLOBAL data can be declared in ...
    (comp.os.vms)
  • Re: Question about Descriptors
    ... > interesting, REVERSE, which reverses the characters in a string. ... or did you mean to re-use the B$ in your mainline program that ... Or are some language better suited for small independant programs? ...
    (comp.os.vms)