COMPLEXITY THEORY CSci 5403 LECTURE VII: DIAGONALIZATION.

Slides:



Advertisements
Similar presentations
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 17: ProvingUndecidability.
Advertisements

INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
COMPLEXITY THEORY CSci 5403 LECTURE XVI: COUNTING PROBLEMS AND RANDOMIZED REDUCTIONS.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Lecture 3 Universal TM. Code of a DTM Consider a one-tape DTM M = (Q, Σ, Γ, δ, s). It can be encoded as follows: First, encode each state, each direction,
CS 461 – Nov. 9 Chomsky hierarchy of language classes –Review –Let’s find a language outside the TM world! –Hints: languages and TM are countable, but.
The Recursion Theorem Sipser – pages Self replication Living things are machines Living things can self-reproduce Machines cannot self reproduce.
Turing -Recognizable vs. -Decidable
Lecture 16: Relativization Umans Complexity Theory Lecturess.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
CS151 Complexity Theory Lecture 3 April 6, CS151 Lecture 32 Introduction A motivating question: Can computers replace mathematicians? L = { (x,
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
Complexity 12-1 Complexity Andrei Bulatov Non-Deterministic Space.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
Computability and Complexity 22-1 Computability and Complexity Andrei Bulatov Hierarchy Theorem.
Complexity 13-1 Complexity Andrei Bulatov Hierarchy Theorem.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli.
CS151 Complexity Theory Lecture 3 April 6, Nondeterminism: introduction A motivating question: Can computers replace mathematicians? L = { (x,
CPSC 411, Fall 2008: Set 12 1 CPSC 411 Design and Analysis of Algorithms Set 12: Undecidability Prof. Jennifer Welch Fall 2008.
Lecture 8 Recursively enumerable (r.e.) languages
Fall 2003Costas Busch - RPI1 Decidability. Fall 2003Costas Busch - RPI2 Recall: A language is decidable (recursive), if there is a Turing machine (decider)
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
RELATIVIZATION CSE860 Vaishali Athale. Overview Introduction Idea behind “Relativization” Concept of “Oracle” Review of Diagonalization Proof Limits of.
Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 18 Instructor: Paul Beame.
CS21 Decidability and Tractability
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
1 Reducibility. 2 Problem is reduced to problem If we can solve problem then we can solve problem.
Theory of Computing Lecture 19 MAS 714 Hartmut Klauck.
Definition: Let M be a deterministic Turing Machine that halts on all inputs. Space Complexity of M is the function f:N  N, where f(n) is the maximum.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
CSCI 2670 Introduction to Theory of Computing November 4, 2004.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
Optimal Proof Systems and Sparse Sets Harry Buhrman, CWI Steve Fenner, South Carolina Lance Fortnow, NEC/Chicago Dieter van Melkebeek, DIMACS/Chicago.
MA/CSSE 474 Theory of Computation More Reduction Examples Non-SD Reductions.
MA/CSSE 474 Theory of Computation Enumerability Reduction.
Theory of Computing Lecture 21 MAS 714 Hartmut Klauck.
CS848: Topics in Databases: Foundations of Query Optimization Topics covered  Review of complexity.
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
Computability Universal Turing Machine. Countability. Halting Problem. Homework: Show that the integers have the same cardinality (size) as the natural.
Turing -Recognizable vs. -Decidable
Lecture 17 Undecidability Topics:  TM variations  Undecidability June 25, 2015 CSCE 355 Foundations of Computation.
Lecture 21 Reducibility. Many-one reducibility For two sets A c Σ* and B c Γ*, A ≤ m B if there exists a Turing-computable function f: Σ* → Γ* such that.
Overview of the theory of computation Episode 3 0 Turing machines The traditional concepts of computability, decidability and recursive enumerability.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
1 Chapter 9 Undecidability  Turing Machines Coded as Binary Strings  Universal Turing machine  Diagonalizing over Turing Machines  Problems as Languages.
Theory of Computational Complexity Yuji Ishikawa Avis lab. M1.
Recall last lecture and Nondeterministic TMs Ola Svensson.
Lecture 9: Query Complexity Tuesday, January 30, 2001.
 2005 SDU Lecture14 Mapping Reducibility, Complexity.
Umans Complexity Theory Lectures Lecture 3c: Nondeterminism: Ladner’s Theorem: If P≠ NP then ∃ NP Languages neither NP Complete nor in P.
Busch Complexity Lectures: Reductions
Computational Complexity Theory
Theory of Computability
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
CSCI 2670 Introduction to Theory of Computing
Decidable Languages Costas Busch - LSU.
Decidability and Undecidability
Undecidable problems:
Lecture 10: Query Complexity
Proposed in Turing’s 1936 paper
Recall last lecture and Nondeterministic TMs
Introduction to Oracles in Complexity Theory
More Undecidable Problems
Presentation transcript:

COMPLEXITY THEORY CSci 5403 LECTURE VII: DIAGONALIZATION

Theorem (Cantor). Let ƒ : S ! P(S) map elements of the set S to subsets of S. Then ƒ is not onto. In particular, let D ƒ = { y | y ƒ(y) }. There is no s 2 S such that ƒ(s) = D ƒ : Suppose ƒ(s) = D ƒ. Then s 2 D ƒ, s ƒ(s), s D ƒ. Example: Let S = {0,1,2} and let ƒ(0) = Ø, ƒ(1) = {1,2}, ƒ(2) = {0,1}. y02ƒ(y)?12ƒ(y)?22ƒ(y)? 0 N NN 1N Y Y 2YY N DƒDƒ YNY

Theorem (Turing). The diagonal language D TM = { hMi | M does not accept on input hMi } is undecidable. Proof. Let ƒ TM : {0,1}* ! P({0,1}*) map a TMs code to the language it decides. If D TM is decidable, there must be a TM H such that ƒ TM (hHi) = D TM. But D TM is the diagonal set for ƒ TM. Cantor, Gödel, and Turing used it… must be good! (Insert cheesy 1970s theme music)

TIME HEIRARCHY THEOREM Theorem. Let f and g be time constructible, and let g(n) = ω(f(n) 2 ). Then DTIME(f(n)) ( DTIME(g(n)). Corollary. P EXP. Proof. Let D f = { hMi | M does not accept hMi in f(|hMi|) steps. }. D f DTIME(f(n)), since it is the diagonal set for L f mapping a TM to the set it decides in time f(n). But recall that we can simulate a TM that runs in time t in time O(t 2 ). Thus D f 2 DTIME(f(n) 2 ).

SPACE HEIRARCHY THEOREM Theorem. Let f and g be space constructible, and let g(n) = ω(f(n)). Then SPACE(f(n)) ( SPACE(g(n)). Corollary. L PSPACE. Proof. Analogous. We can simulate a machine using space s(n) in space O(s(n)).

NTIME HEIRARCHY THEOREM Theorem. Let f and g be time constructible, and let g(n) = ω(f(n) 2 ). Then NTIME(f(n)) ( NTIME(g(n)). Proof. Let D f = { hMi | M does not accept hMi in f(|hMi|) steps. }. D f NTIME(f(n)), since it is the diagonal set for L f mapping a TM to the set it accepts in time f(n). But recall that we can simulate a NTM that runs in time t in time O(t 2 ). Thus D f 2 NTIME(f(n) 2 ).

NTIME HEIRARCHY THEOREM We dont know how to simulate a coNTIME(f(n)) machine in NTIME(g(n)), where g(n) = o(2 f(n) )! Instead of differing from M i at string i, well build D that is different from M i in (s(i),s(i+1)]. s(1)s(2)s(3)…s(i)s(i)+1…s(i+1) M1M1 YNY…NY…Y M2M2 NYY…YN…N MiMi YYY…NN…N DNNY…NY…Y

NTIME HEIRARCHY THEOREM Key idea: make s(i+1) big enough that we can simulate a coNTIME machine on input s(i). s(i)+1s(i)+2…s(i+1)-1s(i+1) MiMi NY…NN DY…NNY Let s(i) = 1, if i = 0 2 f(s(i-1)) f(s(i-1)) 2, otherwise Let NTM D(1 n ) = find i such that s(i) < n · s(i+1) if n = s(i+1) return not(M i (1 s(i) )) else return NSIM f (M i,1 n+1 ) simulate all branches f(s(i)) steps

NTIME HEIRARCHY THEOREM Theorem. Let f and g be time constructible, and g(n) = ω(f(n+1) 2 ). Then NTIME(f(n)) ( NTIME(g(n)). Proof. The language accepted by machine D is not in NTIME(f(n)) by construction. But the running time of D on input size n is: Case 1: n s(N): Time to simulate an NTM for f(n+1) steps = O(f(n+1) 2 ). Case 2: n = s(i+1): Time to simulate all branches of length f(s(i)) = 2 f(s(i)) f(s(i)) 2 = s(i+1) = O(n).

LADNERS THEOREM Theorem. If P NP, then there is a language L 2 NP n P that is not NP-complete. Proof. Suppose P NP. Let H: N ! N and consider the set SAT H = { (ψ,1 k ) | ψ 2 SAT and k = n H(n) }. If H(n) = c (= O(1)), then SAT H P. (why?) If H(n) = ω(1) then SAT H cannot be NP-complete: The reduction ƒ from SAT to SAT H must reduce the size of the formula.

We will build an H(n)=ω(1) so that SAT H P. H(n) = min { j < n : M j decides SAT H [n] in time jn j } For a set S, define S[n] = { s 2 S : |s| < n }. if M i decides SAT H in poly(n) time, then H(n) · i. Suppose H(n) = O(1), i.e. for n > N, H(n) · k. Then there is a k 2 n k -time algorithm for SAT H. (why?) Combined we have SAT H P and SAT H is not NP Complete. Whats wrong with this proof?

H(n) = min { j < lg n / lg lg n : M j decides SAT H [lg n] in time jn j } Fix: make it easy to compute H(n): To test M i on only poly(n) inputs: replace SAT H [n] with SAT H [O(lg n)] To test each input for only poly(n) steps: replace j < n with j < lg n / lg lg n

LIMITS OF DIAGONALIZATION All of the previous theorems are true because TMs can be enumerated and simulated. Thus, any proof that uses only these facts must also hold for any computational model that also has these properties. We will show an enumerable, simulatable model where P=NP, and one where P NP. So a proof using only diagonalization cannot resolve P vs NP.

ORACLE TM An oracle Turing Machine is a TM with a query Tape and three states q ?, q yes, q no. FINITE STATE CONTROL INPUT WORK QUERY S With an oracle for set S, it goes in one step from state q ? with x on the query tape to q x2S.

We denote M running with oracle S by M S. M S is pronounced M relative to S Claim. Relative to a fixed oracle O, the set of OTMs is enumerable and simulatable. Theorem (Baker, Gill, Solovay). There exist oracles A and B such that P A = NP A and P B NP B. For fixed O, we can define complexity classes NP O, P O, PSPACE O, etc. e.g. S 2 P O iff 9 poly(n)-time M. L(M O ) = S S 2 NP O iff 9 poly(n)-time V, poly q. S = { x | 9y2{0,1} q(|x|). V O (x,y) accepts }

P A = NP A Let A be any PSPACE-complete problem. We know that P A µ NP A. (why?) Also NP A µ NPSPACE, since it only takes poly(n) space to answer queries to A. But notice that NPSPACE = PSPACE µ P A.

P B NP B We construct a set B so that the language U B = { 1 n | 9 x 2 B. |x| = n } is not in P B. Note that for any set B, we have U B 2 NP B. We build B as a union [ i 2 N B i. B 0 = Ø. Also, Q 0 = Ø To build B i : let n = 1 + max { |x| : x 2 B j [ Q j, j · i }. Run M i B[n] (1 n ) for 2 n /10 steps, adding every oracle query to Q i. If M i accepts, B i = Ø. Else B i = {0,1} n n Q i.

P B NP B 1…nini …f(n i )n i+1 … M1M1 Y... MiMi N M i+1 Y UBUB N…Y…NN BØ…{0,1} n ……Ø

RELATIVIZATION If an argument about two complexity classes is true relative to any oracle, we say it relativizes. The oracles A and B show that any argument that relativizes cannot resolve P vs NP. Diagonalization relativizes because it doesnt care about how a machine computes. Results that care: NP · P 3SAT, IP = PSPACE, NP = PCP(1,lg n)…

CS5403.info