2 ms·
Turing machines have undefined behavior in exactly the same way that C does. What do you suppose happens if a Turing machine reads from a location on the tape t
by AnthonyMouse 13y ago
Turing machines have undefined behavior in exactly the same way that C does. What do you suppose happens if a Turing machine reads from a location on the tape that has never been written? The value the machine observes in that circumstance is not required to be well-defined in order for the machine to be able to do all computations required of a Turing machine. Moreover, the more you add features of actual machines like parallelism and timers, the more opportunities for undefined behavior you introduce. What do you suppose a multiprocessor Turing machine does if you write concurrently to the tape without locking?
- lomnakkus 13y ago"What do you suppose happens if a Turing machine reads from a location on the tape that has never been written?" It reads the default symbol (see e.g. the description of a TM on Wikipedia). It's semantics are well-defined. The semantics of TMs are well-defined. The semantics of C's "undefined behavior" is not well-defined.
- lomnakkus 13y agoI should have said "blank symbol" not "default symbol".