Chapter 3.1 UTM
Chapter 3.1 UTM
Theory of Computation(22CST-390)
Faculty: Rosevir Singh(E16685)
1
Theory Of Computation: Course Objectives
COURSE OBJECTIVES
The Course aims to:
1.Demonstrate Knowledge of basic mathematical models of computation and describe how they relate to
formal languages.
2.Develop Understanding of what are limitations on what computers can do and learn examples of
unsolvable problems.
3.Teach that certain problems do not admit efficient algorithms and Identify such problems.
3
Unit3
4
Universal Turing Machine
The UTM was associated with Alan Turing back in 1936. Being a
theoretical device, it is able to run any Turing machine on its tape, an
idea that represents general computation. The idea created an
awakening of what could be done computationally, algorithmically, and
by machines. Because a single machine can execute any algorithm, the
UTM truly models the heart of modern computing systems and at the
same time explores the boundaries of what can be computed.
5
• What is a Universal Turing Machine (UTM)?
• A Universal Turing Machine can be defined as a theoretical construction that can simulate
the behavior of other machines. This is done specifically by reading, apart from the input
tape it simulates, a description of how this very machine it is simulating would work, and
transition rules showing how it would respond to the input. This gives the UTM the
character of a general-purpose computational device that can execute any arbitrary
computable function. Universal Turing machines have hence been taken to provide the
means for the Church-Turing thesis anything computable can be computed by a Turing
machine. In this sense, the UTM is more properly considered to be a universal interpreter
that can run any algorithm specified by another machine.
• A Universal Turing Machine is a Turing Machine which when supplied with an appropriate
description of a Turing Machine M and an input string w, can simulate the computation of
w.
6
Construction of UTM
Without loss of generality, we assume the following for M:
Q = {q1, q2, ….qn} where q1=initial state and q2=Final State
τ = {σ1, σ2,,…σn} where σ represent blanks
Select an encoding on which q1 is representable by 1, q2 by 11, and so on.
Similarly, σ1 is encoded as 1, σ2 as 11, etc.
Finally, let us represent R/W head directions by 1 for L (Left) and 11 for R(Right).
The symbol 0 will be used as a separator between 1s.
With this scheme, any transition of M can be given as : .
7
• Implementation of UTM
• A UTM Mu then has an input alphabet = {0, 1} and the
structure of a multi-tape TM.
• Mu looks first at the contents of Tape 2 and Tape 3 to
determine the instantaneous description (ID) of M.
8
9
• If no transition for a given ID is formed, Mu halts as M must:
• If M halts, when presented with string w then Mu will halt when presented with the
encoded M and the encoded string on its tape.
• Moreover, the final string Mu .s tape will be the encoding of the string.
• When M halts, Mu can tell if it is in the single accepting state and so moves to an accepting
state of its own ( or not).
• Conclusion
• The UTM in computer science was the conceptual basis, essentially a theoretical
framework upon which many conceptions about the nature of computation were erected.
This capability of the UTM to simulate any computable process underlines a universality
principle, one that informs modern computer design and the study of algorithms and
complexity theory. As a matter of fact, even though technology has advanced, UTM serves
to this day as the basis for modes of investigation into the limits of computation into areas
such as artificial intelligence and machine learning, among others. This has remained
relevant, shaping our understanding of current and future computational systems.
10
Practice Questions:
11
References