Turing Machines Flashcards
What questions does the Turing Machine bring up?
What does it mean to be computable?
And the limits of computability (Halting Machines)
Approaches to formalizing computability:
- Representability in a formal system (FOA)
- Arithmetical descriptions (recursive functions)
- Calculus
- Machine-like descriptions
What is the Church-Turing Thesis?
Why is it a thesis and not a theorem?
Why is it a thesis and not a theorem?
Not provable
Who was Alan Turing (1912-1954)
- 1936: Turing Machines
- 1939–1945 Cryptology: Deciphering the German Enigma machine.
- Almost qualified for the British 1948 Olympic Team as marathon runner
- 1950 “Computing Machinery and Intelligence”: Turing-Test for intelligence
- 1954 Apparent suicide (after conviction for homosexuality and hormone treatment)
What was Turing’s a-machines (automatic)?
*Now called Turing Machines *
“On computable numbers with an applicatin to the Entscheidungsproblem (decision)”
Turing Machines
Analysis: (2)
(1) Boundedness:
- Use only finite numbers of symbols and states
- Finate state and instructions (tape itself is infinite)
(2) Locality Conditions:
- Survey a finite range of reading and writing
What do Turing Machines consist of?
(1) “Potentially infinite” TAPE divided into linearly ordered squares
- Blank or have a symbol from finite alphabet
- Alphabet: {B, 1}. B = Blank, and 1 = only other symbol
(2) HEAD, which is over one square at a time, and it can
(a) Read square and determine blank/1
(b) Write or delete symbol 1
(c) Move to square immediately to left or right
(3) Machine STATE (q0, q1. q2 …)
- Applies to the whole system
- Independent Action
(4) Finite State of INSTRUCTIONS given as a 4-tuple:
(q1, S, Op, qj)
What are the instructions of the Turing Machines?
- q1 is the current state
- S ∃ {B, 1} symbols under the head
- Op ∃ {1, B, R, L}: Write 1, delete square, move right, move left
- qj is the next state
(q1, S, Op, qj)
Some written as a 5-tuple:
Instructions for a Turing Machine described by 5-tuples
Turing Machines
Conventions
- TM always states q0 (lowest numbered state)
- TM always states head above the leftmost non-blank state (1)
- There is no possible instruction to follow, machine halts (terminates)
- Program (instructions and the state) is deterministic
What does it mean for a program to be deterministic?
There are no quadruples with the sme first two coordinates, but that disagree on one the last two
What are the conventions of Turing Machines (as functions)?
- Interpret the input and output on the tape as numbers.
- Standard configuration of tape:
The tape either completely blank or contains one single sequence (block) of 1 s (i. e.,
1n ).
[Let’s not consider zero in general, since this makes the representation unnecessarily
complicated, without adding anything substantial.]
Alternative convention:
Hamilton (p. 172, Remark 7.22(a)) represents numbers in binary notation!
A TM M calculates output m on input n:
**M* starts with a tape in standard configuration with n 1 s on the tape and with the head
on the leftmost 1 .
* M begins in q0 .
* M halts in the highest numbered state, and
- the tape is blank: m = 0 , or
- the tape contains one sequence of m 1 s, with the head on the leftmost element
When is a TM computable?
If there is a TM that calculates it
How many computable functions exists?
ℵ0
Finite instructions and finite parameters