Flat Unit-6 LM
Flat Unit-6 LM
UNIT – VI
TURING MACHINE
Objective: To employ with Context Free Grammars and Push-Down Automata
Syllabus:
Turing Machine: Turing Machine-definition, Model of Turing Machine, Design of TM-
examples, Types of Turing Machines (Proofs not required), Computable functions-partial
recursive functions and total recursive functions, Recursively enumerable languages,
Church’s hypothesis.
Computability Theory: Decidability of problems, Universal Turing Machine-definition,
Undecidability of posts correspondence problem-examples, Turing reducibility, Definition
of P and NP problems-examples, NP complete and NP hard problems-definition, examples
Outcome: To design Turing machine for the phrase-structured languages.
Turing Machine:
Turing Machines first described by Alan Turing.
Turing Machines are simple abstract computational devices intended to help
investigate the extent and limitations of what can be computed.
Some simple languages like {anbncn}n>=0} is not recognized by either PDA or Finite
Automata.
Turing Machine is a device that will recognize this language and many more
complicated languages.
Turing machines are used as language recognizers, languages enumerator and as a
computing machine.
Multi-tape TMs appear to be more powerful than ordinary TMs, but we will show
that they are equivalent in power.
4. Turing Machine with Multiple Heads:
This is a kind of Turing Machines that have one finite control and one tape but more
than one read-write heads.
In each state only one of the head is allowed to read and write.
The transition function is partial function
δ:QX*H1,H2,.......Hn+X*ΓU*B++--> (QU*h+,*ΓU*B+)X*R,L,S+
5. Turing Machine Infinite Tape:
This is a kind of Turing machines that have one finite control and one tape which
extends infinitely in both directions.
It turns out that this type of Turing machines are only as powerful as one tape
Turing machine whose tape has a left end.
Recursive and Recursively Enumerable Languages:
There are three possible outcomes executing a Turing machine over a given input.
The Turing Machine may
Halt and accept the input
Halt and reject the input
Never Halt
A language is recursive if there exists a Turing Machine that accepts every string of the
language and reject every string (over the same alphabet) that is not in the language.
Note: If a language L is recursive then its compliment L' must also be recursive
Assignment-Cum-Tutorial Questions
SECTION A: Objective Questions
1. Which of the following is not primitive recursive but partially recursive [ ]
a) Carnot's function b) Ricmann function
c) Bounded function d) Ackermann's function
2. Turing machine (TM) is more powerful than FMS because [ ]
a) tape movement is confined to one direction b) it has no finite state
c) it has the capability to remember arbitrarily long sequences of input symbols
d) none of these
3. Turing machine was invented by: [ ]
a) Alan Turing b) Turing man
c) Turing taring d) None of these
4. Turing machine is more powerful than: [ ]
a) Finite automata b) Push down automata
c) Both (a) and (b) d) None of these
5. Problem A is NP complete iff [ ]
a) A is NP hard b) A is NP
c) Both (a) and (b) d) A is in complexity class of NP
6. Which of the following problem is NP-complete? [ ]
a) Travelling sales person problem b) 3-coloring
c) set partitioning d) all the above