Professional Documents
Culture Documents
2 Reducibility
1 Decidability
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Section outline
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Halting problem
ATM = {hM, wi | M is a TM accepting w}
Halting problem, because that is crucial to decide whether M rejects w
By diagonalisation with characteristic sequences for enumerated TMs,
some languages are not Turing recognisable
– not enough TMs for the possible languages
TM halting problem is undecidable
accept if M accepts w
TM H (hM, wi) =
reject if M does not accept w
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Halting problem
ATM = {hM, wi | M is a TM accepting w}
Halting problem, because that is crucial to decide whether M rejects w
By diagonalisation with characteristic sequences for enumerated TMs,
some languages are not Turing recognisable
– not enough TMs for the possible languages
TM halting problem is undecidable
accept if M accepts w
TM H (hM, wi) =
reject if M does not accept w
accept if M does no accept hMi
TM D (hMi) =
reject if M accepts hMi
TM D (hMi) works oppositely to H (hM, hMii)
D (hDi)?
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Halting problem
ATM = {hM, wi | M is a TM accepting w}
Halting problem, because that is crucial to decide whether M rejects w
By diagonalisation with characteristic sequences for enumerated TMs,
some languages are not Turing recognisable
– not enough TMs for the possible languages
TM halting problem is undecidable
accept if M accepts w
TM H (hM, wi) =
reject if M does not accept w
accept if M does no accept hMi
TM D (hMi) =
reject if M accepts hMi
TM D (hMi) works oppositely to H (hM, hMii)
D (hDi)?
accept if D does no accept hDi
– TM D (hDi) =
reject if D accepts hDi
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Halting problem
ATM = {hM, wi | M is a TM accepting w}
Halting problem, because that is crucial to decide whether M rejects w
By diagonalisation with characteristic sequences for enumerated TMs,
some languages are not Turing recognisable
– not enough TMs for the possible languages
TM halting problem is undecidable
accept if M accepts w
TM H (hM, wi) =
reject if M does not accept w
accept if M does no accept hMi
TM D (hMi) =
reject if M accepts hMi
TM D (hMi) works oppositely to H (hM, hMii)
D (hDi)?
accept if D does no accept hDi
– TM D (hDi) =
reject if D accepts hDi
Contradiction, so neither TM D nor TM H can exist TE
OF
TECHNO
LO
GY
ITU
IAN INST
KH
ARAGPUR
IND
Associated diagonalisation?
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Section outline
Computation histories
Reductions via computation
2 Reducibility histories
Undecidable problems from Mapping reducibility
language theory PCP
Linear bounded automaton
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
GY
ITU
IAN INST
KH
ARAGPUR
IND
decide on ATM 19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Computation histories
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Decidability of ELBA
Consider a LBA BM that takes an input x and accepts x if x corresponds
to a accepting computation history of M on w
#C1 #C2 # . . . #Ct # is a valid computation history
L(BM ) = {x|x is a valid computation history of M}
LBA BM needs to test whether x is a valid computation history, by testing
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Decidability of ELBA
Consider a LBA BM that takes an input x and accepts x if x corresponds
to a accepting computation history of M on w
#C1 #C2 # . . . #Ct # is a valid computation history
L(BM ) = {x|x is a valid computation history of M}
LBA BM needs to test whether x is a valid computation history, by testing
C1 = q0 w1 w2 . . . wn is the initial configuration
Ci follows from Ci−1 (i > 1) through a valid move
– Ci and Ci−1 must be identical except for the positions under and
adjacent to the head in Ci−1
– there should be a move of M to justify the difference between Ci
and Ci−1
Ct ∈ Γ? qacc Γ? is the terminal configuration
NB BM works on any input x to check if it’s an accepting computation history
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Decidability of ELBA
Consider a LBA BM that takes an input x and accepts x if x corresponds
to a accepting computation history of M on w
#C1 #C2 # . . . #Ct # is a valid computation history
L(BM ) = {x|x is a valid computation history of M}
LBA BM needs to test whether x is a valid computation history, by testing
C1 = q0 w1 w2 . . . wn is the initial configuration
Ci follows from Ci−1 (i > 1) through a valid move
– Ci and Ci−1 must be identical except for the positions under and
adjacent to the head in Ci−1
– there should be a move of M to justify the difference between Ci
and Ci−1
Ct ∈ Γ? qacc Γ? is the terminal configuration
NB BM works on any input x to check if it’s an accepting computation history
L(BM ) 6= ∅ ≡ hM, wi ∈ ATM
TECHNO
OF LO
TE
GY
Thus ATM reduces to ELBA and so ELBA is undecidable
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Decidability of ALLCFG
Can a PDA D (with grammar G) be designed to recognise any string
except those representing accepting computation histories of TM M?
Then L(D) = L(G) = ? ≡ L(M) = ∅ – ETM reduces to ALLCFG
P
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Decidability of ALLCFG
Can a PDA D (with grammar G) be designed to recognise any string
except those representing accepting computation histories of TM M?
Then L(D) = L(G) = ? ≡ L(M) = ∅ – ETM reduces to ALLCFG
P
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Decidability of ALLCFG
Can a PDA D (with grammar G) be designed to recognise any string
except those representing accepting computation histories of TM M?
Then L(D) = L(G) = ? ≡ L(M) = ∅ – ETM reduces to ALLCFG
P
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Decidability of ALLCFG
Can a PDA D (with grammar G) be designed to recognise any string
except those representing accepting computation histories of TM M?
Then L(D) = L(G) = ? ≡ L(M) = ∅ – ETM reduces to ALLCFG
P
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
GY
ITU
IAN INST
KH
ARAGPUR
construct a decider for ALLCFG
IND
19 5 1
yog, km s kOflm^
Mapping reducibility
every input w on the tape, halts with f (w) on the tape – examples?
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
Mapping reducibility
every input w on the tape, halts with f (w) on the tape – examples?
Computable functions may transform machine descriptions – as
those described earlier
Language A is mapping reducible to language B, written as
A ≤m B, if there is a computable function f : ? → ? , where for
P P
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
If A ≤m B, then if B is decidable, so is A
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
If A ≤m B, then if B is decidable, so is A
If A ≤m B, then if A is undecidable, so is B – check earlier uses
ETM to EQTM , ATM to ETM
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
If A ≤m B, then if B is decidable, so is A
If A ≤m B, then if A is undecidable, so is B – check earlier uses
ETM to EQTM , ATM to ETM
If A ≤m B, then if B is Turing recognisable, so is A
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
If A ≤m B, then if B is decidable, so is A
If A ≤m B, then if A is undecidable, so is B – check earlier uses
ETM to EQTM , ATM to ETM
If A ≤m B, then if B is Turing recognisable, so is A
If A ≤m B, then if A is not Turing recognisable, neither is B
ATM ≤m ETM ≡ ATM ≤m ETM
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
If A ≤m B, then if B is decidable, so is A
If A ≤m B, then if A is undecidable, so is B – check earlier uses
ETM to EQTM , ATM to ETM
If A ≤m B, then if B is Turing recognisable, so is A
If A ≤m B, then if A is not Turing recognisable, neither is B
ATM ≤m ETM ≡ ATM ≤m ETM
ATM is not Turing recognisable, so ETM is not Turing recognisable
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
If A ≤m B, then if B is decidable, so is A
If A ≤m B, then if A is undecidable, so is B – check earlier uses
ETM to EQTM , ATM to ETM
If A ≤m B, then if B is Turing recognisable, so is A
If A ≤m B, then if A is not Turing recognisable, neither is B
ATM ≤m ETM ≡ ATM ≤m ETM
ATM is not Turing recognisable, so ETM is not Turing recognisable
An attempt to reduce ATM to ETM (via M10 ) failed
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
If A ≤m B, then if B is decidable, so is A
If A ≤m B, then if A is undecidable, so is B – check earlier uses
ETM to EQTM , ATM to ETM
If A ≤m B, then if B is Turing recognisable, so is A
If A ≤m B, then if A is not Turing recognisable, neither is B
ATM ≤m ETM ≡ ATM ≤m ETM
ATM is not Turing recognisable, so ETM is not Turing recognisable
An attempt to reduce ATM to ETM (via M10 ) failed
– for a good reason ...
ATM ≤m ETM ⇒ ETM is not TM recognisable, but ETM is TM
recognisable – M ∈ ETM if ∃w s.t. M accepts w OF
TECHNO
LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
An instance of the
Post Correspondence
problem (PCP) is given by a
u1 um
sequence ,··· , word dominos over ?
P
v1 vm
Is there a (finite) sequence i1 , . . . , ip , ij ∈ 1..m, 1 ≤ j ≤ m such that
ui1 ui2 . . . uip = vi1 vi2 . . . vip ?
a ab bba
Instance: , ,
baa aa bb
bba ab bba a
Solution: 3231: , , ,
bb aa bb baa
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
An instance of the
Post Correspondence
problem (PCP) is given by a
u1 um
sequence ,··· , word dominos over ?
P
v1 vm
Is there a (finite) sequence i1 , . . . , ip , ij ∈ 1..m, 1 ≤ j ≤ m such that
ui1 ui2 . . . uip = vi1 vi2 . . . vip ?
a ab bba
Instance: , ,
baa aa bb
bba ab bba a
Solution: 3231: , , ,
bb aa bb baa
PCP is undecidable if | | ≥ 2
P
M on w
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
GY
ITU
IAN INST
KH
ARAGPUR
IND
# 19 5 1
yog, km s kOflm^
MPCP → PCP
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^
MPCP example
TECHNO
OF LO
TE
GY
ITU
IAN INST
KH
ARAGPUR
IND
19 5 1
yog, km s kOflm^