Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Anal Turing was wrong

Name: Anonymous 2011-02-04 8:45

There are at most 2^n different programs of length n (in binary).

Those that terminate go on forever, those that don't terminate stop after x steps.

let f(n) = the largest x.

Now write the program:

halts?(program) {
 int maxsteps = f(length(program));
 for(int i = 0; i < maxsteps; i++) { step(program); }
 if(halted?(program)) return HALTS;
 else return LOOPS;
}


any questions Turing?

Name: Anonymous 2011-02-07 9:05

hmm given the fact u have a virtual mem of 5Gigz u
can write about 5bilion diferrent programs i ll start
00x00 00x00
00x01 00x00
---
---
FFFFxFFFF 00x00

i call it the nop programm

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List