Umans Complexity Theory Lectures Lecture 3c: Nondeterminism: Ladner’s Theorem: If P≠ NP then ∃ NP Languages neither NP Complete nor in P.

Slides:



Advertisements
Similar presentations
COMPLEXITY THEORY CSci 5403 LECTURE VII: DIAGONALIZATION.
Advertisements

Function Technique Eduardo Pinheiro Paul Ilardi Athanasios E. Papathanasiou The.
CS151 Complexity Theory Lecture 4 April 11, 2013.
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.
Lecture 16: Relativization Umans Complexity Theory Lecturess.
CS151 Complexity Theory Lecture 3 April 6, CS151 Lecture 32 Introduction A motivating question: Can computers replace mathematicians? L = { (x,
Fall 2013 CMU CS Computational Complexity Lecture 5 Savich’s theorem, and IS theorems. These slides are mostly a resequencing of Chris Umans’ slides.
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 Lecture15: Reductions Prof. Amos Israeli.
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,
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
Recursively Enumerable and Recursive Languages
1 Uncountable Sets continued Theorem: Let be an infinite countable set. The powerset of is uncountable.
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
Lecture 27UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 27.
Umans Complexity Theory Lectures Lecture 2c: EXP Complete Problem: Padding and succinctness.
CS21 Decidability and Tractability
November 3, 2009Theory of Computation Lecture 14: A Universal Program VI 1 Recursively Enumerable Sets Definition: We write: W n = {x  N |  (x, n) 
Theory of Computing Lecture 19 MAS 714 Hartmut Klauck.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
Computational Complexity Theory Lecture 2: Reductions, NP-completeness, Cook-Levin theorem Indian Institute of Science.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
Fall 2013 CMU CS Computational Complexity Lecture 3 and 4 Non-determinism, NTIME hierarchy threorem, Ladner’s Proof 9/17/2013.
Recursively Enumerable and Recursive Languages
Complexity ©D.Moshkovitz 1 Our First NP-Complete Problem The Cook-Levin theorem A B C.
1 Recursively Enumerable and Recursive Languages.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Undecidable.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
 2005 SDU Lecture14 Mapping Reducibility, Complexity.
NP-Completeness A problem is NP-complete if: It is in NP
The Acceptance Problem for TMs
Recursively Enumerable Languages
Recursively Enumerable and Recursive Languages
CSE 105 theory of computation
Computational Complexity Theory
Umans Complexity Theory Lectures
CS154, Lecture 7: Turing Machines.
MCC 2093 Advanced Theoretical Computer Science
HIERARCHY THEOREMS Hu Rui Prof. Takahashi laboratory
Turing Machines Acceptors; Enumerators
CS154, Lecture 10: Rice’s Theorem, Oracle Machines
Decidability and Enumerability
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
CSCE 411 Design and Analysis of Algorithms
CS154, Lecture 10: Rice’s Theorem, Oracle Machines
Computability & Complexity I
Decidable Languages Costas Busch - LSU.
CS151 Complexity Theory Lecture 3 April 10, 2017.
Proposed in Turing’s 1936 paper
CS154, Lecture 12: Time Complexity
Formal Languages, Automata and Models of Computation
Intro to Theory of Computation
Recall last lecture and Nondeterministic TMs
Umans Complexity Theory Lectures
CS21 Decidability and Tractability
Our First NP-Complete Problem
More undecidable languages
Cardinality Definition: The cardinality of a set A is equal to the cardinality of a set B, denoted |A| = |B|, if and only if there is a one-to-one correspondence.
CSCI 2670 Introduction to Theory of Computing
CSE 105 theory of computation
Automata, Grammars and Languages
More Undecidable Problems
Instructor: Aaron Roth
Instructor: Aaron Roth
Intro to Theory of Computation
Presentation transcript:

Umans Complexity Theory Lectures Lecture 3c: Nondeterminism: Ladner’s Theorem: If P≠ NP then ∃ NP Languages neither NP Complete nor in P

2 Ladner’s Theorem NPC = NP complete languages Assuming P ≠ NP, what does the world (inside NP) look like? Only NPC P NP: NPC P NP: (Some language in between)

3 Ladner’s Theorem Theorem (Ladner): If P ≠ NP, then there exists L  NP that is neither in P nor NP- complete. Proof: “lazy diagonalization” –deal with similar problem as in NTIME Hierarchy proof

4 Ladner’s Theorem Can enumerate (TMs deciding) all languages in P. –enumerate TMs so that each machine appears infinitely often –add clock to M i so that it runs in at most n i steps

5 Ladner’s Theorem Can enumerate (TMs deciding) all NP- complete languages. –enumerate TMs f i computing all polynomial- time functions –machine N i decides language SAT reduces to via f i if f i is reduction, else SAT

6 Ladner’s Theorem Our goal: L  NP that is neither in P nor NP- complete MiMi M0M0 inputsL N0N0 NiNi :: ::

7 Ladner’s Theorem Top half, assuming P ≠ NP: MiMi M0M0 SAT :: input x input z focus on M i For any x, can always find some z ≥ x on which M i and SAT differ (why?). Let SAT(x)=z

8 Ladner’s Theorem Bottom half, assuming P ≠ NP: TRIV N0N0 NiNi :: input x input z TRIV = Σ * focus on N i For any x, can always find some z ≥ x on which N i and TRIV differ (why?). Let TRIV(x)=z

9 Ladner’s Theorem Try to “merge”: on input x, either –answer SAT(x) –answer TRIV(x) if can decide which one in P, L  NP SATTRIV MiMi M0M0 L N0N0 NiNi :: ::... ≠ ≠ ≠ ≠

10 Ladner’s Theorem General scheme: f(n) slowly increasing function –f(|x|) even: answer SAT(x) –f(|x|) odd: answer TRIV(x) notice choice only depends on length of input… that’s OK L... f(|x|) SAT TRIV

11 Ladner’s Theorem 1 st attempt to define f(n) “eager f(n)”: increase at 1 st opportunity Inductive definition: f(0) = 0; f(n) = –if f(n-1) = 2i, trying to kill M i If z < 1 n s.t. M i (z) ≠ SAT(z), then f(n) = f(n-1) + 1; else f(n) = f(n-1) –if f(n-1) = 2i+1, trying to kill N i If z < 1 n s.t. N i (z) ≠ TRIV(z), then f(n) = f(n-1) + 1; else f(n) = f(n-1)

12 Ladner’s Theorem Problem: eager f(n) too difficult to compute on input of length n, –look at all strings z of length < n –compute SAT(z) or N i (z) for each ! Solution: “lazy” f(n) –on input of length n, only run for 2n steps –if enough time to see should increase (over f(n-1)), do it; else, stay same –(alternate proof: give explicit f(n) that grows slowly enough…)

13 Ladner’s Theorem Key: n eventually large enough to notice completed previous stage L f 0011kkk... MiMi input x input z < x ≠ suppose k = 2i I’m sup- posed to ensure M i is killed I finally have enough time to check input z I notice z did the job, increase f to k+1 kk

14 Ladner’s Theorem Inductive definition of f(n) –f(0) = 0 –f(n): for n steps compute f(0), f(1), f(2),… L f 0011kkk... input x, |x| = n got this far in n steps

15 Ladner’s Theorem –if k = 2i: for n steps try (lex order) to find z s.t. SAT(z) ≠ M i (z) and f(|z|) even if found, f(n) = f(n-1)+1 else f(n-1) –if k = 2i + 1: for n steps try (lex order) to find z s.t. TRIV(z) ≠ N i (z) and f(|z|) odd if found, f(n) = f(n-1)+1 else f(n-1)

16 Ladner’s Theorem Finishing up: L = { x | x  SAT if f(|x|) even, x  TRIV if f(|x|) odd } L  NP since f(|x|) can be computed in O(n) time

17 Ladner’s Theorem For some constant n o > 0: suppose M i decides L –f gets stuck at 2i –L  SAT for z : |z| > n o ⇒ implies SAT  P. Contradiction ! suppose N i decides L –f gets stuck at 2i+1 –L  TRIV for z : |z| > n o ⇒ implies L(N i )  P. Contradiction ! Note: The Arora & Barak textbook’s proof of Ladner’s Theorem used alternative proof, using a padding argument.