


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



On the Board Second Exam: available today (spares outside DH 2065) Final Project Discussion
Programming a TM Several Turing-machine programming tricks come in handy if we try to think about programming more complex actions.
this observation is that any string of symbols can be viewed as a number in the base that corresponds to the cardinality (set size) of the input alphabet. Just as the digits 901 represent a number (we assume base ten) and the characters FF represent a base 16 (hexadecimal number), so the contents of a TM input tape can be viewed as representing a number. Given some encoding of TMs for input to some universal TM, it must be true that all the TMs that can serve as input form unique numbers; they are countable and we can define an order on them. This observation leads to one of the most profound observations in the theory of computability โ we cannot create a TM that takes as input a TM and its input and returns YES if the input TM halts on that input and returns NO if the input TM does not halt on that input. This problem, called the halting problem , is one of a handful of classic examples of a problem whose solution cannot be computed. (Proof by diagonalization)