Download presentation
Presentation is loading. Please wait.
Published byEleanor Jessica French Modified over 9 years ago
1
Prof. Busch - LSU1 Reductions
2
Prof. Busch - LSU2 Problem is reduced to problem If we can solve problem then we can solve problem
3
Prof. Busch - LSU3 Language is reduced to language There is a computable function (reduction) such that: Definition:
4
Prof. Busch - LSU4 Computable function : which for any string computes There is a deterministic Turing machine Recall:
5
Prof. Busch - LSU5 If: a: Language is reduced to b: Language is decidable Then: is decidable Theorem: Proof: Basic idea: Build the decider for using the decider for
6
Prof. Busch - LSU6 Decider for Decider for compute accept reject accept reject (halt) Input string END OF PROOF Reduction YES NO
7
Prof. Busch - LSU7 Example: is reduced to:
8
Prof. Busch - LSU8 Turing Machine for reduction DFA We only need to construct:
9
Prof. Busch - LSU9 Let be the language of DFA construct DFA by combining and so that: DFA Turing Machine for reduction
10
Prof. Busch - LSU10
11
Prof. Busch - LSU11 Decider Decider for compute Input string YES NO Reduction
12
Prof. Busch - LSU12 If: a: Language is reduced to b: Language is undecidable Then: is undecidable Theorem (version 1): (this is the negation of the previous theorem) Proof: Using the decider for build the decider for Suppose is decidable Contradiction!
13
Prof. Busch - LSU13 Decider for Decider for compute accept reject accept reject (halt) Input string Reduction END OF PROOF If is decidable then we can build: CONTRADICTION! YES NO
14
Prof. Busch - LSU14 Observation: In order to prove that some language is undecidable we only need to reduce a known undecidable language to
15
Prof. Busch - LSU15 State-entry problem Input: Turing Machine State Question:Does String enter state while processing input string ? Corresponding language:
16
Prof. Busch - LSU16 Theorem: (state-entry problem is unsolvable) Proof: Reduce (halting problem) to (state-entry problem) is undecidable
17
Prof. Busch - LSU17 Decider for YES NO state-entry problem decider DeciderCompute Reduction YES NO Given the reduction, if is decidable, then is decidable A contradiction! since is undecidable Halting Problem Decider
18
Prof. Busch - LSU18 Compute Reduction We only need to build the reduction: So that:
19
Prof. Busch - LSU19 halting states special halt state Construct from : A transition for every unused tape symbol of
20
Prof. Busch - LSU20 halts on statehalts halting states special halt state
21
Prof. Busch - LSU21 halts on state on input halts on inputTherefore: Equivalently: END OF PROOF
22
Prof. Busch - LSU22 Blank-tape halting problem Input:Turing Machine Question:Doeshalt when started with a blank tape? Corresponding language:
23
Prof. Busch - LSU23 Theorem: (blank-tape halting problem is unsolvable) Proof: Reduce (halting problem) to (blank-tape problem) is undecidable
24
Prof. Busch - LSU24 Decider for YES NO blank-tape problem decider DeciderCompute Reduction YES NO Given the reduction, If is decidable, then is decidable A contradiction! since is undecidable Halting Problem Decider
25
Prof. Busch - LSU25 Compute Reduction We only need to build the reduction: So that:
26
Prof. Busch - LSU26 no yes Write on tape Tape is blank? Run with input Construct from : If halts then halt Accept and halt
27
Prof. Busch - LSU27 halts when started on blank tape halts on input no yes Write on tape Tape is blank? Run with input Accept and halt
28
Prof. Busch - LSU28 END OF PROOF halts when started on blank tape halts on input Equivalently:
29
Prof. Busch - LSU29 If: a: Language is reduced to b: Language is undecidable Then: is undecidable Theorem (version 2): Proof: Using the decider for build the decider for Suppose is decidable Contradiction! Then is decidable
30
Prof. Busch - LSU30 Suppose is decidable Decider for accept reject (halt)
31
Prof. Busch - LSU31 Suppose is decidable Decider for accept reject (halt) Then is decidable (we have proven this in previous class) reject accept (halt) Decider for NO YES NO
32
Prof. Busch - LSU32 Decider for Decider for compute accept reject accept reject (halt) Input string Reduction If is decidable then we can build: CONTRADICTION! YES NO
33
Prof. Busch - LSU33 Decider for Decider for compute accept reject accept reject (halt) Input string Reduction END OF PROOF CONTRADICTION! Alternatively: NO YES NO
34
Prof. Busch - LSU34 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)
35
Prof. Busch - LSU35 Undecidable Problems for Turing Recognizable languages is empty? is regular? has size 2? Let be a Turing-acceptable language All these are undecidable problems
36
Prof. Busch - LSU36 is empty? is regular? has size 2? Let be a Turing-acceptable language
37
Prof. Busch - LSU37 Empty language problem Input: Turing Machine Question:Isempty? Corresponding language:
38
Prof. Busch - LSU38 Theorem: (empty-language problem is unsolvable) is undecidable Proof: Reduce (membership problem) to (empty language problem)
39
Prof. Busch - LSU39 Decider for YES NO empty problem decider DeciderCompute Reduction YES NO Given the reduction, if is decidable, then is decidable membership problem decider A contradiction! since is undecidable
40
Prof. Busch - LSU40 Compute Reduction We only need to build the reduction: So that:
41
Prof. Busch - LSU41 Write on tape, and Simulate on input Tape of input string accepts ? Construct from : yes Turing Machine Accept yes
42
Prof. Busch - LSU42 The only possible accepted string Louisiana Prof. Busch - LSU42Prof. Busch - LSU42 Write on tape, and Simulate on input accepts ? yes Turing Machine Accept yes
43
Prof. Busch - LSU43 accepts does not accept Prof. Busch - LSU43Prof. Busch - LSU43Prof. Busch - LSU43 Write on tape, and Simulate on input accepts ? yes Turing Machine Accept yes
44
Prof. Busch - LSU44 Therefore: accepts Equivalently: END OF PROOF
45
Prof. Busch - LSU45 is empty? is regular? has size 2? Let be a Turing-acceptable language
46
Prof. Busch - LSU46 Regular language problem Input: Turing Machine Question:Isa regular language? Corresponding language:
47
Prof. Busch - LSU47 Theorem: (regular language problem is unsolvable) is undecidable Proof: Reduce (membership problem) to (regular language problem)
48
Prof. Busch - LSU48 Decider for YES NO regular problem decider DeciderCompute Reduction YES NO Given the reduction, If is decidable, then is decidable membership problem decider A contradiction! since is undecidable
49
Prof. Busch - LSU49 Compute Reduction We only need to build the reduction: So that:
50
Prof. Busch - LSU50 Tape of input string Construct from : Prof. Busch - LSU50Prof. Busch - LSU50Prof. Busch - LSU50Prof. Busch - LSU50 Write on tape, and Simulate on input Accept accepts ? yes Turing Machine
51
Prof. Busch - LSU51 accepts does not accept not regular regular Prof. Busch - LSU51Prof. Busch - LSU51Prof. Busch - LSU51Prof. Busch - LSU51Prof. Busch - LSU51 Write on tape, and Simulate on input Accept accepts ? yes Turing Machine
52
Prof. Busch - LSU52 Therefore: accepts Equivalently: END OF PROOF is not regular
53
Prof. Busch - LSU53 is empty? is regular? has size 2? Let be a Turing-acceptable language
54
Prof. Busch - LSU54 Does have size 2 (two strings)? Size2 language problem Input: Turing Machine Question: Corresponding language:
55
Prof. Busch - LSU55 Theorem: (size2 language problem is unsolvable) is undecidable Proof: Reduce (membership problem) to (size 2 language problem)
56
Prof. Busch - LSU56 Decider for YES NO size2 problem decider DeciderCompute Reduction YES NO Given the reduction, If is decidable, then is decidable membership problem decider A contradiction! since is undecidable
57
Prof. Busch - LSU57 Compute Reduction We only need to build the reduction: So that:
58
Prof. Busch - LSU58 Tape of input string Construct from : Prof. Busch - LSU58Prof. Busch - LSU58Prof. Busch - LSU58Prof. Busch - LSU58Prof. Busch - LSU58 Write on tape, and Simulate on input Accept accepts ? yes Turing Machine
59
Prof. Busch - LSU59 accepts does not accept 2 strings 0 strings Prof. Busch - LSU59Prof. Busch - LSU59Prof. Busch - LSU59Prof. Busch - LSU59Prof. Busch - LSU59Prof. Busch - LSU59 Write on tape, and Simulate on input Accept accepts ? yes Turing Machine
60
Prof. Busch - LSU60 Therefore: accepts Equivalently: END OF PROOF has size 2
61
Prof. Busch - LSU61 RICE’s Theorem is empty? is regular? has size 2? Undecidable problems: This can be generalized to all non-trivial properties of Turing-acceptable languages
62
Prof. Busch - LSU62 Non-trivial property: A property possessed by some Turing-acceptable languages but not all : is empty? Example: YES NO
63
Prof. Busch - LSU63 : is regular? More examples of non-trivial properties: YES NO YES : has size 2? NO YES NO
64
Prof. Busch - LSU64 Trivial property: A property possessed by ALL Turing-acceptable languages : has size at least 0?Examples: True for all languages : is accepted by some Turing machine? True for all Turing-acceptable languages
65
Prof. Busch - LSU65 We can describe a property as the set of languages that possess the property : is empty? Example: YES NO If language has property then
66
Prof. Busch - LSU66 : has size 1? NO YES Example:Suppose alphabet is NO
67
Prof. Busch - LSU67 Non-trivial property problem Does have the non-trivial property ? Input: Turing Machine Question: Corresponding language:
68
Prof. Busch - LSU68 Rice’s Theorem: is undecidable (the non-trivial property problem is unsolvable) Proof: Reduce (membership problem) to or
69
Prof. Busch - LSU69 We examine two cases: Case 1: Case 2: Examples: : is empty? : is regular? : has size 2? Example:
70
Prof. Busch - LSU70 Let be the Turing machine that accepts Case 1: Since is non-trivial, there is a Turing-acceptable language such that:
71
Prof. Busch - LSU71 Reduce (membership problem) to
72
Prof. Busch - LSU72 Decider for YES NO Non-trivial property problem decider DeciderCompute Reduction YES NO Given the reduction, if is decidable, then is decidable membership problem decider A contradiction! since is undecidable
73
Prof. Busch - LSU73 Compute Reduction We only need to build the reduction: So that:
74
Prof. Busch - LSU74 Tape of input string Construct from : Write on tape, and Simulate on input Accept accepts ? yes Turing Machine
75
Prof. Busch - LSU75 For this we can run machine, that accepts language, with input string Write on tape, and Simulate on input Accept accepts ? yes Turing Machine
76
Prof. Busch - LSU76 accepts does not accept Prof. Busch - LSU76 Write on tape, and Simulate on input Accept accepts ? yes Turing Machine
77
Prof. Busch - LSU77 Therefore: accepts Equivalently:
78
Prof. Busch - LSU78 Let be the Turing machine that accepts Case 2: Since is non-trivial, there is a Turing-acceptable language such that:
79
Prof. Busch - LSU79 Reduce (membership problem) to
80
Prof. Busch - LSU80 Decider for YES NO Non-trivial property problem decider DeciderCompute Reduction YES NO Given the reduction, if is decidable, then is decidable membership problem decider A contradiction! since is undecidable
81
Prof. Busch - LSU81 Compute Reduction We only need to build the reduction: So that:
82
Prof. Busch - LSU82 Tape of input string Construct from : Write on tape, and Simulate on input Accept accepts ? yes Turing Machine
83
Prof. Busch - LSU83 accepts does not accept Write on tape, and Simulate on input Accept accepts ? yes Turing Machine
84
Prof. Busch - LSU84 Therefore: accepts Equivalently: END OF PROOF
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.