Lecture 11 Decidability
Lecture 11 Decidability
1 2
3 4
¿ 𝑮 >¿ ( 𝟏 , 𝟐 ,𝟑 ,𝟒 ) ( ( 𝟏 ,𝟐 ) , ( 𝟏 , 𝟑 ) , ( 𝟏 , 𝟒 ) , ( 𝟑 , 𝟒 ) )
Can we encode a Turing Machine
as a string of 0s and 1s?
• 〈 O 〉 denotes an encoding of object O as a string
start reject
states Q={0,1,…,n-1} state state
0n10m10k10s10t10r10u1… 〈 〉
tape symbols Γ={0,1…,m-1} blank
(first k are input symbols) accept
symbol
state
: 〈 (p,a), (q,b,L) 〉 = 0p10a10q10b10
04/07/2025 Slides have been taken from https://cs-people.bu.edu/sofya/cs332/ L14.4
A universal Turing Machine
• Since TMs and programming languages 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
M Current state of
recognizable
decidable
CFL
regular