3.1 TURING MACHINES (Turing vélar) Flashcards
Turing machines were first proposed by who and when ?
Alan Turing in 1936
Similar to a finite automaton but with an unlimited and unrestricted memory, a Turing machine is a much more accurate model of a
general purpose computer.
How does the Turing machine work ?
The Turing machine model uses an infinite tape as its unlimited memory. It has a tape head that can read and write symbols and move around on the tape.
Initially the tape contains only the input string and is blank everywhere else. If the machine needs to store information, it may write this information on the tape. To read the information that it has written, the machine can move its head back over it. The machine continues computing until it decides to produce an output.
Name four differences between finite automata and Turing machines
- A Turing machine can both write on the tape and read from it.
- The read–write head can move both to the left and to the right.
- The tape is infinite.
- The special states for rejecting and accepting take effect immediately.
A Turing machine is a 7-tuple, (Q, Σ, Γ, δ, q0, qaccept, qreject), where Q, Σ, Γ are all finite sets and
- Q is the set of states,
- Σ is the input alphabet not containing the blank symbol ␣, 3. Γ is the tape alphabet, where␣∈ Γ and Σ ⊆ Γ,
- δ: Q×Γ−→Q×Γ×{L,R} is the transition function,
- q0 ∈ Q is the start state,
- qaccept ∈ Q is the accept state, and
- qreject ∈ Q is the reject state, where qreject ̸= qaccept.
What is configuration of the Turing machine?
As a Turing machine computes, changes occur in the current state, the current tape contents, and the current head location. A setting of these three items is called a configuration of the Turing machine.
The collection of strings that M accepts is the language of M, or the language recognized by M, denoted L(M).
Call a language Turing-recognizable if some Turing machine recognizes it.
When we start a Turing machine on an input, three outcomes are possible. They are ?
The machine may accept, reject, or loop.
By loop we mean ?
that the machine simply does not halt. Looping may entail any simple or complex behavior that never leads to a halting state.
What are deciders?
Turing machines that halt on all inputs; such machines never loop.
A decider that recognizes some language also is said to
decide that language.
Call a language Turing-decidable or simply decidable if some Turing machine decides it.