Csci471 Intro Lecture 5
Csci471 Intro Lecture 5
LECTURE 5
Today:
• Universal TM
• Decidable Languages
1
Meiram Murzabulatov
TM variant: enumerator
FINITE tape
CONTROL
printer
• For the rest of the course we will have a rather standard way
of describing TMs and their inputs.
• The input to TMs have to be strings.
• Every object O that enters a computation will be represented
with a string 〈O〉, encoding the object.
• E.g., if G is a 4 node undirected graph below,
1 4
G=
2 3
〈G〉 = (1,2,3,4)((1,2),(2,3),(3,1),(1,4))
〈T〉= (1,2,3,…,n) (a,b,c,d)(a,b,c,d,B,x) ((1,a,n,a,R), (n,b,2,c,L), ())
A universal Turing Machine
• Since TMs and programs are equivalent, we can think of TMs as
programs.
• Since programs are strings, we can consider languages whose
elements are programs.
• 〈M〉denotes an encoding of a TM M as a string
Theorem. We can make a Universal TM, a TM that takes any TM
description〈M〉 and any string w as input and simulates the
computation of M on w. 〈M,w〉
〈M〉 encoding of M
FINITE
CONTROL
〈 w〉 tape contents 〈w〉= 〈w1,…,wn〉
〈 q 0〉 state
Encodings of DFAs, NFAs, CFGs, etc