Download presentation
Presentation is loading. Please wait.
1
Busch Complexity Lectures: Reductions
Prof. Busch - LSU
2
Problem is reduced to problem
If we can solve problem then we can solve problem Prof. Busch - LSU
3
function (reduction) such that:
Definition: Language is reduced to language There is a computable function (reduction) such that: Prof. Busch - LSU
4
There is a deterministic Turing machine
Recall: Computable function : There is a deterministic Turing machine which for any string computes Prof. Busch - LSU
5
If: a: Language is reduced to b: Language is decidable
Theorem: If: a: Language is reduced to b: Language is decidable Then: is decidable Proof: Basic idea: Build the decider for using the decider for Prof. Busch - LSU
6
Decider for Reduction compute Decider for END OF PROOF Input string
YES Input string YES accept accept compute Decider for (halt) (halt) NO NO reject reject (halt) (halt) END OF PROOF Prof. Busch - LSU
7
Example: is reduced to: Prof. Busch - LSU
8
We only need to construct:
Turing Machine for reduction DFA Prof. Busch - LSU
9
Let be the language of DFA
Turing Machine for reduction DFA construct DFA by combining and so that: Prof. Busch - LSU
10
Prof. Busch - LSU
11
Decider for Reduction compute Input string Decider YES YES NO NO
Prof. Busch - LSU
12
If: a: Language is reduced to b: Language is undecidable
Theorem (version 1): If: a: Language is reduced to b: Language is undecidable Then: is undecidable (this is the negation of the previous theorem) Proof: Suppose is decidable Using the decider for build the decider for Contradiction! Prof. Busch - LSU
13
If is decidable then we can build:
Decider for Reduction YES Input string YES accept accept compute Decider for (halt) (halt) NO NO reject reject (halt) (halt) CONTRADICTION! END OF PROOF Prof. Busch - LSU
14
that some language is undecidable we only need to reduce a
Observation: In order to prove that some language is undecidable we only need to reduce a known undecidable language to Prof. Busch - LSU
15
while processing input string ?
State-entry problem Input: Turing Machine State String Question: Does enter state while processing input string ? Corresponding language: Prof. Busch - LSU
16
(state-entry problem is unsolvable)
Theorem: is undecidable (state-entry problem is unsolvable) Proof: Reduce (halting problem) to (state-entry problem) Prof. Busch - LSU
17
Decider for Reduction Compute Decider Given the reduction,
Halting Problem Decider Decider for state-entry problem decider Reduction YES YES Compute Decider NO NO Given the reduction, if is decidable, then is decidable A contradiction! since is undecidable Prof. Busch - LSU
18
We only need to build the reduction:
Compute So that: Prof. Busch - LSU
19
A transition for every unused tape symbol of
Construct from : special halt state halting states A transition for every unused tape symbol of Prof. Busch - LSU
20
special halt state halting states halts halts on state
Prof. Busch - LSU
21
Therefore: halts on input halts on state on input Equivalently:
END OF PROOF Prof. Busch - LSU
22
Blank-tape halting problem
Input: Turing Machine Question: Does halt when started with a blank tape? Corresponding language: Prof. Busch - LSU
23
Theorem: is undecidable Proof: Reduce (halting problem) to
(blank-tape halting problem is unsolvable) Proof: Reduce (halting problem) to (blank-tape problem) Prof. Busch - LSU
24
Decider for Reduction Compute Decider Given the reduction,
Halting Problem Decider Decider for blank-tape problem decider Reduction YES YES Compute Decider NO NO Given the reduction, If is decidable, then is decidable A contradiction! since is undecidable Prof. Busch - LSU
25
We only need to build the reduction:
Compute So that: Prof. Busch - LSU
26
Construct from : no yes Run with input If halts then halt
Accept and halt no Tape is blank? yes Run Write on tape with input If halts then halt Prof. Busch - LSU
27
halts when started on blank tape
Accept and halt no Tape is blank? yes Run Write on tape with input halts on input halts when started on blank tape Prof. Busch - LSU
28
halts when started on blank tape
halts on input halts when started on blank tape Equivalently: END OF PROOF Prof. Busch - LSU
29
If: a: Language is reduced to b: Language is undecidable
Theorem (version 2): If: a: Language is reduced to b: Language is undecidable Then: is undecidable Proof: Suppose is decidable Then is decidable Using the decider for build the decider for Contradiction! Prof. Busch - LSU
30
Suppose is decidable Decider for reject accept (halt) (halt)
Prof. Busch - LSU
31
Suppose is decidable Then is decidable Decider for Decider for
(we have proven this in previous class) Decider for NO YES reject accept Decider for (halt) (halt) YES NO accept reject (halt) (halt) Prof. Busch - LSU
32
If is decidable then we can build:
Decider for Reduction YES Input string YES accept accept compute Decider for (halt) (halt) NO NO reject reject (halt) (halt) CONTRADICTION! Prof. Busch - LSU
33
Alternatively: Decider for Reduction compute Decider for
NO Input string YES reject accept compute Decider for (halt) (halt) YES NO accept reject (halt) (halt) CONTRADICTION! END OF PROOF Prof. Busch - LSU
34
that some language is undecidable we only need to reduce some
Observation: In order to prove that some language is undecidable we only need to reduce some known undecidable language to or to (theorem version 1) (theorem version 2) Prof. Busch - LSU
35
Undecidable Problems for Turing Recognizable languages
Let be a Turing-acceptable language is empty? is regular? has size 2? All these are undecidable problems Prof. Busch - LSU
36
Let be a Turing-acceptable language
is empty? is regular? has size 2? Prof. Busch - LSU
37
Empty language problem
Input: Turing Machine Question: Is empty? Corresponding language: Prof. Busch - LSU
38
(empty language problem)
Theorem: is undecidable (empty-language problem is unsolvable) Proof: Reduce (membership problem) to (empty language problem) Prof. Busch - LSU
39
Decider for Reduction Compute Decider Given the reduction,
membership problem decider Decider for empty problem decider Reduction YES YES Compute Decider NO NO Given the reduction, if is decidable, then is decidable A contradiction! since is undecidable Prof. Busch - LSU
40
We only need to build the reduction:
Compute So that: Prof. Busch - LSU
41
Construct from : Tape of input string yes yes Turing Machine Accept
Write on tape, and accepts ? Simulate on input Prof. Busch - LSU
42
Louisiana The only possible accepted string yes yes Turing Machine
Write on tape, and accepts ? Simulate on input Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU 42 42
43
yes yes accepts does not accept Turing Machine Accept
Write on tape, and accepts ? Simulate on input Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU 43 43 43
44
Therefore: accepts Equivalently: END OF PROOF Prof. Busch - LSU
45
Let be a Turing-acceptable language
is empty? is regular? has size 2? Prof. Busch - LSU
46
Regular language problem
Input: Turing Machine Question: Is a regular language? Corresponding language: Prof. Busch - LSU
47
(regular language problem)
Theorem: is undecidable (regular language problem is unsolvable) Proof: Reduce (membership problem) to (regular language problem) Prof. Busch - LSU
48
Decider for Reduction Compute Decider Given the reduction,
membership problem decider Decider for regular problem decider Reduction YES YES Compute Decider NO NO Given the reduction, If is decidable, then is decidable A contradiction! since is undecidable Prof. Busch - LSU
49
We only need to build the reduction:
Compute So that: Prof. Busch - LSU
50
Construct from : Tape of input string yes yes Turing Machine Accept
Write on tape, and accepts ? Simulate on input Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU 50 50 50 50
51
yes yes not regular accepts does not accept regular Turing Machine
Write on tape, and accepts ? Simulate on input Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU 51 51 51 51 51
52
Therefore: accepts is not regular Equivalently: END OF PROOF
Prof. Busch - LSU
53
Let be a Turing-acceptable language
is empty? is regular? has size 2? Prof. Busch - LSU
54
Does have size 2 (two strings)?
Size2 language problem Input: Turing Machine Question: Does have size 2 (two strings)? Corresponding language: Prof. Busch - LSU
55
(size 2 language problem)
Theorem: is undecidable (size2 language problem is unsolvable) Proof: Reduce (membership problem) to (size 2 language problem) Prof. Busch - LSU
56
Decider for Reduction Compute Decider Given the reduction,
membership problem decider Decider for size2 problem decider Reduction YES YES Compute Decider NO NO Given the reduction, If is decidable, then is decidable A contradiction! since is undecidable Prof. Busch - LSU
57
We only need to build the reduction:
Compute So that: Prof. Busch - LSU
58
Construct from : Tape of input string yes yes Turing Machine Accept
Write on tape, and accepts ? Simulate on input Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU 58 58 58 58 58
59
yes yes 2 strings accepts does not accept 0 strings Turing Machine
Write on tape, and accepts ? Simulate on input Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU Prof. Busch - LSU 59 59 59 59 59 59
60
Therefore: accepts has size 2 Equivalently: END OF PROOF
Prof. Busch - LSU
61
Undecidable problems:
RICE’s Theorem Undecidable problems: is empty? is regular? has size 2? This can be generalized to all non-trivial properties of Turing-acceptable languages Prof. Busch - LSU
62
Non-trivial property:
A property possessed by some Turing-acceptable languages but not all Example: : is empty? YES NO NO Prof. Busch - LSU
63
More examples of non-trivial properties:
: is regular? YES YES NO : has size 2? NO NO YES Prof. Busch - LSU
64
A property possessed by ALL Turing-acceptable languages
Trivial property: A property possessed by ALL Turing-acceptable languages Examples: : has size at least 0? True for all languages : is accepted by some Turing machine? True for all Turing-acceptable languages Prof. Busch - LSU
65
We can describe a property as the set
of languages that possess the property If language has property then Example: : is empty? YES NO NO Prof. Busch - LSU
66
Example: Suppose alphabet is : has size 1? NO YES NO NO
Prof. Busch - LSU
67
Non-trivial property problem
Input: Turing Machine Question: Does have the non-trivial property ? Corresponding language: Prof. Busch - LSU
68
Rice’s Theorem: is undecidable Proof: Reduce (membership problem) to
(the non-trivial property problem is unsolvable) Proof: Reduce (membership problem) to or Prof. Busch - LSU
69
We examine two cases: Case 1: Examples: : is empty? : is regular?
: has size 2? Prof. Busch - LSU
70
Case 1: Since is non-trivial, there is a Turing-acceptable language
such that: Let be the Turing machine that accepts Prof. Busch - LSU
71
Reduce (membership problem) to Prof. Busch - LSU
72
Decider for Reduction Compute Decider Given the reduction,
membership problem decider Decider for Non-trivial property problem decider Reduction YES YES Compute Decider NO NO Given the reduction, if is decidable, then is decidable A contradiction! since is undecidable Prof. Busch - LSU
73
We only need to build the reduction:
Compute So that: Prof. Busch - LSU
74
Construct from : Tape of input string yes yes Turing Machine Accept
Write on tape, and accepts ? Simulate on input Prof. Busch - LSU
75
For this we can run machine , that accepts language ,
with input string Turing Machine Accept yes yes Write on tape, and accepts ? Simulate on input Prof. Busch - LSU
76
yes yes accepts does not accept Turing Machine Accept
Write on tape, and accepts ? Simulate on input Prof. Busch - LSU Prof. Busch - LSU 76
77
Therefore: accepts Equivalently: Prof. Busch - LSU
78
Case 2: Since is non-trivial, there is a Turing-acceptable language
such that: Let be the Turing machine that accepts Prof. Busch - LSU
79
Reduce (membership problem) to Prof. Busch - LSU
80
Decider for Reduction Compute Decider Given the reduction,
membership problem decider Decider for Non-trivial property problem decider Reduction YES YES Compute Decider NO NO Given the reduction, if is decidable, then is decidable A contradiction! since is undecidable Prof. Busch - LSU
81
We only need to build the reduction:
Compute So that: Prof. Busch - LSU
82
Construct from : Tape of input string yes yes Turing Machine Accept
Write on tape, and accepts ? Simulate on input Prof. Busch - LSU
83
yes yes accepts does not accept Turing Machine Accept
Write on tape, and accepts ? Simulate on input Prof. Busch - LSU
84
Therefore: accepts Equivalently: END OF PROOF Prof. Busch - LSU
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.