NP-Complete ‣ Co-NP ‣ NP-Hard

Total Page:16

File Type:pdf, Size:1020Kb

NP-Complete ‣ Co-NP ‣ NP-Hard 8. INTRACTABILITY II ‣ P vs. NP ‣ NP-complete ‣ co-NP ‣ NP-hard Lecture slides by Kevin Wayne Copyright © 2005 Pearson-Addison Wesley http://www.cs.princeton.edu/~wayne/kleinberg-tardos Last updated on 5/5/18 5:20 AM Recap 3-SAT -SET poly-time reduces AT NDEPENDENT 3-S to I INDEPENDENT-SET DIR-HAM-CYCLE 3-COLOR SUBSET-SUM VERTEX-COVER HAM-CYCLE KNAPSACK SET-COVER 3-SAT poly-time reduces to all of these problems (and many, many more) 2 8. INTRACTABILITY II ‣ P vs. NP ‣ NP-complete ‣ co-NP ‣ NP-hard SECTION 8.3 P Decision problem. ・Problem X is a set of strings. Instance s is one string. ・ s X ・Algorithm A solves problem X : A(s)= ∈ s/X <latexit sha1_base64="upTjyVAoW+HGac/ZqQnsZjJdMk8=">AAACpnicbZFfa9swFMVlt1uz7F/aPe5FNN3IXoI9Ci2UQste9jRaWJpAFDJZvk5FZclI1yXBzQft6z7J5MQPTbILNoffPbpXPk4KJR1G0XMQ7u2/en3QetN+++79h4+dw6M7Z0orYCCMMnaUcAdKahigRAWjwgLPEwXD5OFH3R8+gnXS6N+4KGCS85mWmRQcPZp2nq577htlF/SyfrVZAjOpK+EnumXbE4Ywx4pBThee0K8NkBk9cZRJTUcnS8rYplWbHac2uDa3Gei0WTDtdKN+tCq6K+JGdElTN9PD4IilRpQ5aBSKOzeOowInFbcohQI/vHRQcPHAZzD2UvMc3KRaxbSkXzxJaWasfzTSFX15ouK5c4s88c6c473b7tXwf71xidn5pJK6KBG0WC/KSkXR0DpzmkoLAtXCCy6s9Hel4p5bLtD/mY0tq9kFiI0vqeallsKksEUVztHyOsV4O7Ndcfe9H0f9+Pa0e3Xe5Nkin8kx6ZGYnJEr8pPckAER5G/QCnzOYS/8FQ7C4doaBs2ZT2Sjwj//ACprzcM=</latexit> ∈ Def. Algorithm A runs in polynomial time if for every string s, A(s) terminates in ≤ p( ⎢s⎢) “steps,” where p(⋅) is some polynomial function. length of s Def. P = set of decision problems for which there exists a poly-time algorithm. problem PRIMES: { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, … } instance s: 592335744548702854681 algorithm: Agrawal–Kayal–Saxena (2002) 4 Some problems in P P. Decision problems for which there exists a poly-time algorithm. poly-time problem description yes no algorithm grade-school MULTIPLE Is a multiple of ? 51, 17 51, 16 x y division REL-PRIME Are x and y relatively prime ? Euclid’s algorithm 34, 39 34, 51 Agrawal–Kayal– PRIMES Is prime ? 53 51 x Saxena Is the edit distance between niether acgggt EDIT-DISTANCE Needleman–Wunsch x and y less than 5 ? neither ttttta # 0 1 1& # 4& " 1 0 0% "1 % Is there a vector x that Gauss–Edmonds % ( % ( $ ' $ ' L-SOLVE 2 4 −2 , 2 1 1 1 , 1 satisfies ? elimination % ( % ( $ ' $ ' Ax = b $% 0 3 15'( $% 36'( #$0 1 1&' #$1 &' Is an undirected graph U-CONN depth-first search€ € G connected? 5 NP Def. Algorithm C(s, t) is a certifier for problem X if for every string s : s ∈ X iff there exists a string t such that C(s, t) = yes. Def. NP = set of decision problems for which there exists a poly-time certifier. ・C(s, t) is a poly-time algorithm. ・Certificate t is of polynomial size: ⎢t⎢ ≤ p(⎢s⎢) for some polynomial p(⋅). “certificate” or “witness” problem COMPOSITES: { 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, …. } instance s: 437669 certificate t: 541 437,669 = 541 × 809 certifier C(s, t): grade-school division 6 Certifiers and certificates: satisfiability SAT. Given a CNF formula Φ, does it have a satisfying truth assignment? 3-SAT. SAT where each clause contains exactly 3 literals. Certificate. An assignment of truth values to the Boolean variables. Certifier. Check that each clause in Φ has at least one true literal. instance s x x x x x x x x x Φ = ( 1 ∨ 2 ∨ 3) ∧ ( 1 ∨ 2 ∨ 3) ∧ ( 1 ∨ 2 ∨ 4 ) certificate t x1 = true, x2 = true, x3 = false, x4 = false € Conclusions. SAT ∈ NP, 3-SAT ∈ NP. 7 Certifiers and certificates: Hamilton path HAMILTON-PATH. Given an undirected graph G = (V, E), does there exist a simple path P that visits every node? Certificate. A permutation π of the n nodes. Certifier. Check that π contains each node in V exactly once, and that G contains an edge between each pair of adjacent nodes. instance s certificate t Conclusion. HAMILTON-PATH ∈ NP. 8 Some problems in NP NP. Decision problems for which there exists a poly-time certifier. poly-time problem description yes no algorithm # 0 1 1& # 4& " 1 0 0% "1 % Is there a vector x Gauss–Edmonds % ( % ( $ ' $ ' L-SOLVE 2 4 −2 , 2 1 1 1 , 1 elimination % ( % ( $ ' $ ' that satisfies Ax = b ? $% 0 3 15'( $% 36'( #$0 1 1&' #$1 &' Agrawal–Kayal–€ € COMPOSITES 51 53 Is x composite ? Saxena Does x have a nontrivial factor FACTOR (56159, 50) (55687, 50) less than y ? Given a CNF formula, does it have ¬ x1 ∨ ¬ x2 ∨ ¬ x3 ¬ x1 ∨ ¬ x2 SAT ¬ x1 ∨ ¬ x2 ∨ ¬ x3 ¬ x1 ∨ ¬ x2 a satisfying truth assignment? ¬ x1 ∨ ¬ x2 ∨ ¬ x3 ¬ x1 ∨ ¬ x2 HAMILTON- Is there a simple path between PATH u and v that visits every node? 9 Intractability: quiz 1 Which of the following graph problems are known to be in NP? A. Is the length of the longest simple path ≤ k ? B. Is the length of the longest simple path ≥ k ? C. Is the length of the longest simple path = k ? D. Find the length of the longest simple path. E. All of the above. 10 Intractability: quiz 2 In complexity theory, the abbreviation NP stands for… A. Nope. B. No problem. C. Not polynomial time. D. Not polynomial space. E. Nondeterministic polynomial time. 11 Significance of NP NP. Decision problems for which there exists a poly-time certifier. “ NP captures vast domains of computational, scientific, and mathematical endeavors, and seems to roughly delimit what mathematicians and scientists have been aspiring to compute feasibly. ” — Christos Papadimitriou “ In an ideal world it would be renamed P vs VP. ” — Clyde Kruskal 12 P, NP, and EXP P. Decision problems for which there exists a poly-time algorithm. NP. Decision problems for which there exists a poly-time certifier. EXP. Decision problems for which there exists an exponential-time algorithm. Proposition. P ⊆ NP. Pf. Consider any problem X ∈ P. ・By definition, there exists a poly-time algorithm A(s) that solves X. ・Certificate t = ε, certifier C(s, t) = A(s). ▪ Proposition. NP ⊆ EXP. Pf. Consider any problem X ∈ NP. ・By definition, there exists a poly-time certifier C(s, t) for X, where certificate t satisfies ⎢t⎢ ≤ p(⎢s⎢) for some polynomial p(⋅). ・To solve instance s, run C(s, t) on all strings t with ⎢t⎢ ≤ p(⎢s⎢). ・Return yes iff C(s, t) returns yes for any of these potential certificates. ▪ Fact. P ≠ EXP ⇒ either P ≠ NP, or NP ≠ EXP, or both. 13 The main question: P vs. NP Q. How to solve an instance of 3-SAT with n variables? A. Exhaustive search: try all 2n truth assignments. Q. Can we do anything substantially more clever? Conjecture. No poly-time algorithm for 3-SAT. “intractable” 14 The main question: P vs. NP Does P = NP? [Cook 1971, Edmonds, Levin, Yablonski, Gödel] Is the decision problem as easy as the certification problem? EXP EXP NP P = NP P If P = NP If P ≠ NP If yes… Efficient algorithms for 3-SAT, TSP, VERTEX-COVER, FACTOR, … If no… No efficient algorithms possible for 3-SAT, TSP, VERTEX-COVER, … Consensus opinion. Probably no. 15 Reductions: quiz 3 Suppose P ≠ NP. Which of the following are still possible? A. O(n3) algorithm for factoring n-bit integers. B. O(1.657 n) time algorithm for HAMILTON-CYCLE. C. O(nlog log log n) algorithm for 3-SAT. D. All of the above. 16 Intractability: quiz 4 Does P = NP? A. Yes. B. No. C. None of the above. 17 8. INTRACTABILITY II ‣ P vs. NP ‣ NP-complete ‣ co-NP ‣ NP-hard SECTION 8.4 NP-complete NP-complete. A problem Y ∈ NP with the property that for every problem X ∈ NP, X ≤ P Y. Proposition. Suppose Y ∈ NP-complete. Then, Y ∈ P iff P = NP. Pf. ⇐ If P = NP, then Y ∈ P because Y ∈ NP. Pf. ⇒ Suppose Y ∈ P. ・Consider any problem X ∈ NP. Since X ≤ P Y, we have X ∈ P. ・This implies NP ⊆ P. ・We already know P ⊆ NP. Thus P = NP. ▪ Fundamental question. Are there any “natural” NP-complete problems? 28 The “first” NP-complete problem Theorem. [Cook 1971, Levin 1973] SAT ∈ NP-complete. The Complexity of Theorem-Proving Procedures IX 1973 . 3 Stephen A. Cook University of Toronto Summary certain recursive set of strings on this alphabet, and we are interested It is shown that any recognition in the problem of finding a good 519.14 problem solved by a polynomial time- lower bound on its possible recog- bounded nondeterministic Turing nition times. We provide no such machine can be "reduced" to the pro- lower bound here, but theorem 1 will » . blem of determining whether a given give evidence that {tautologies} is propositional formula is a tautology. a difficult set to recognize, since « » , Here "reduced" means, roughly speak- many apparently difficult problems , - ing, that the first problem can be can be reduced to determining tau- . solved deterministically in polyno- tologyhood. By reduced we mean, mial time provided an oracle is roughly speaking, that if tauto- - available for solving the second. logyhood could be decided instantly ( , - From this notion of reducible, (by an "oracle") then these problems , , polynomial degrees of difficulty are could be decided in polynomial time. ). - defined, and it is shown that the In order to make this notion precise, . problem of determining tautologyhood we introduce query machines, which - , - has the same polynomial degree as the are like Turing machines with oracles . - : , , problem of determining whether the in [I]. first of two given graphs is iso- , . - morphic to a subgraph of the second. A query machine is a multitape , Other examples are discussed. A Turing machine with a distinguished . - method of measuring the complexity of tape called the query tape, and ( 1,2]), - proof procedures for the predicate three distinguished states called . ( , , calculus is introduced and discussed. the query state, yes state, and n._o_ , .) state, respectively. If M is a , - ( - Throughout this paper, a set of query machine and T is a set of ) , strings means a set of strings on strings, then a T-computation of M ( ) , , - some fixed, large, finite alphabet Z.
Recommended publications
  • Complexity Theory Lecture 9 Co-NP Co-NP-Complete
    Complexity Theory 1 Complexity Theory 2 co-NP Complexity Theory Lecture 9 As co-NP is the collection of complements of languages in NP, and P is closed under complementation, co-NP can also be characterised as the collection of languages of the form: ′ L = x y y <p( x ) R (x, y) { |∀ | | | | → } Anuj Dawar University of Cambridge Computer Laboratory NP – the collection of languages with succinct certificates of Easter Term 2010 membership. co-NP – the collection of languages with succinct certificates of http://www.cl.cam.ac.uk/teaching/0910/Complexity/ disqualification. Anuj Dawar May 14, 2010 Anuj Dawar May 14, 2010 Complexity Theory 3 Complexity Theory 4 NP co-NP co-NP-complete P VAL – the collection of Boolean expressions that are valid is co-NP-complete. Any language L that is the complement of an NP-complete language is co-NP-complete. Any of the situations is consistent with our present state of ¯ knowledge: Any reduction of a language L1 to L2 is also a reduction of L1–the complement of L1–to L¯2–the complement of L2. P = NP = co-NP • There is an easy reduction from the complement of SAT to VAL, P = NP co-NP = NP = co-NP • ∩ namely the map that takes an expression to its negation. P = NP co-NP = NP = co-NP • ∩ VAL P P = NP = co-NP ∈ ⇒ P = NP co-NP = NP = co-NP • ∩ VAL NP NP = co-NP ∈ ⇒ Anuj Dawar May 14, 2010 Anuj Dawar May 14, 2010 Complexity Theory 5 Complexity Theory 6 Prime Numbers Primality Consider the decision problem PRIME: Another way of putting this is that Composite is in NP.
    [Show full text]
  • If Np Languages Are Hard on the Worst-Case, Then It Is Easy to Find Their Hard Instances
    IF NP LANGUAGES ARE HARD ON THE WORST-CASE, THEN IT IS EASY TO FIND THEIR HARD INSTANCES Dan Gutfreund, Ronen Shaltiel, and Amnon Ta-Shma Abstract. We prove that if NP 6⊆ BPP, i.e., if SAT is worst-case hard, then for every probabilistic polynomial-time algorithm trying to decide SAT, there exists some polynomially samplable distribution that is hard for it. That is, the algorithm often errs on inputs from this distribution. This is the ¯rst worst-case to average-case reduction for NP of any kind. We stress however, that this does not mean that there exists one ¯xed samplable distribution that is hard for all probabilistic polynomial-time algorithms, which is a pre-requisite assumption needed for one-way func- tions and cryptography (even if not a su±cient assumption). Neverthe- less, we do show that there is a ¯xed distribution on instances of NP- complete languages, that is samplable in quasi-polynomial time and is hard for all probabilistic polynomial-time algorithms (unless NP is easy in the worst case). Our results are based on the following lemma that may be of independent interest: Given the description of an e±cient (probabilistic) algorithm that fails to solve SAT in the worst case, we can e±ciently generate at most three Boolean formulae (of increasing lengths) such that the algorithm errs on at least one of them. Keywords. Average-case complexity, Worst-case to average-case re- ductions, Foundations of cryptography, Pseudo classes Subject classi¯cation. 68Q10 (Modes of computation (nondetermin- istic, parallel, interactive, probabilistic, etc.) 68Q15 Complexity classes (hierarchies, relations among complexity classes, etc.) 68Q17 Compu- tational di±culty of problems (lower bounds, completeness, di±culty of approximation, etc.) 94A60 Cryptography 2 Gutfreund, Shaltiel & Ta-Shma 1.
    [Show full text]
  • The Shrinking Property for NP and Conp✩
    Theoretical Computer Science 412 (2011) 853–864 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs The shrinking property for NP and coNPI Christian Glaßer a, Christian Reitwießner a,∗, Victor Selivanov b a Julius-Maximilians-Universität Würzburg, Germany b A.P. Ershov Institute of Informatics Systems, Siberian Division of the Russian Academy of Sciences, Russia article info a b s t r a c t Article history: We study the shrinking and separation properties (two notions well-known in descriptive Received 18 August 2009 set theory) for NP and coNP and show that under reasonable complexity-theoretic Received in revised form 11 November assumptions, both properties do not hold for NP and the shrinking property does not hold 2010 for coNP. In particular we obtain the following results. Accepted 15 November 2010 Communicated by A. Razborov P 1. NP and coNP do not have the shrinking property unless PH is finite. In general, Σn and P Πn do not have the shrinking property unless PH is finite. This solves an open question Keywords: posed by Selivanov (1994) [33]. Computational complexity 2. The separation property does not hold for NP unless UP ⊆ coNP. Polynomial hierarchy 3. The shrinking property does not hold for NP unless there exist NP-hard disjoint NP-pairs NP-pairs (existence of such pairs would contradict a conjecture of Even et al. (1984) [6]). P-separability Multivalued functions 4. The shrinking property does not hold for NP unless there exist complete disjoint NP- pairs. Moreover, we prove that the assumption NP 6D coNP is too weak to refute the shrinking property for NP in a relativizable way.
    [Show full text]
  • Computational Complexity and Intractability: an Introduction to the Theory of NP Chapter 9 2 Objectives
    1 Computational Complexity and Intractability: An Introduction to the Theory of NP Chapter 9 2 Objectives . Classify problems as tractable or intractable . Define decision problems . Define the class P . Define nondeterministic algorithms . Define the class NP . Define polynomial transformations . Define the class of NP-Complete 3 Input Size and Time Complexity . Time complexity of algorithms: . Polynomial time (efficient) vs. Exponential time (inefficient) f(n) n = 10 30 50 n 0.00001 sec 0.00003 sec 0.00005 sec n5 0.1 sec 24.3 sec 5.2 mins 2n 0.001 sec 17.9 mins 35.7 yrs 4 “Hard” and “Easy” Problems . “Easy” problems can be solved by polynomial time algorithms . Searching problem, sorting, Dijkstra’s algorithm, matrix multiplication, all pairs shortest path . “Hard” problems cannot be solved by polynomial time algorithms . 0/1 knapsack, traveling salesman . Sometimes the dividing line between “easy” and “hard” problems is a fine one. For example, . Find the shortest path in a graph from X to Y (easy) . Find the longest path (with no cycles) in a graph from X to Y (hard) 5 “Hard” and “Easy” Problems . Motivation: is it possible to efficiently solve “hard” problems? Efficiently solve means polynomial time solutions. Some problems have been proved that no efficient algorithms for them. For example, print all permutation of a number n. However, many problems we cannot prove there exists no efficient algorithms, and at the same time, we cannot find one either. 6 Traveling Salesperson Problem . No algorithm has ever been developed with a Worst-case time complexity better than exponential .
    [Show full text]
  • NP-Completeness Part I
    NP-Completeness Part I Outline for Today ● Recap from Last Time ● Welcome back from break! Let's make sure we're all on the same page here. ● Polynomial-Time Reducibility ● Connecting problems together. ● NP-Completeness ● What are the hardest problems in NP? ● The Cook-Levin Theorem ● A concrete NP-complete problem. Recap from Last Time The Limits of Computability EQTM EQTM co-RE R RE LD LD ADD HALT ATM HALT ATM 0*1* The Limits of Efficient Computation P NP R P and NP Refresher ● The class P consists of all problems solvable in deterministic polynomial time. ● The class NP consists of all problems solvable in nondeterministic polynomial time. ● Equivalently, NP consists of all problems for which there is a deterministic, polynomial-time verifier for the problem. Reducibility Maximum Matching ● Given an undirected graph G, a matching in G is a set of edges such that no two edges share an endpoint. ● A maximum matching is a matching with the largest number of edges. AA maximummaximum matching.matching. Maximum Matching ● Jack Edmonds' paper “Paths, Trees, and Flowers” gives a polynomial-time algorithm for finding maximum matchings. ● (This is the same Edmonds as in “Cobham- Edmonds Thesis.) ● Using this fact, what other problems can we solve? Domino Tiling Domino Tiling Solving Domino Tiling Solving Domino Tiling Solving Domino Tiling Solving Domino Tiling Solving Domino Tiling Solving Domino Tiling Solving Domino Tiling Solving Domino Tiling The Setup ● To determine whether you can place at least k dominoes on a crossword grid, do the following: ● Convert the grid into a graph: each empty cell is a node, and any two adjacent empty cells have an edge between them.
    [Show full text]
  • Simple Doubly-Efficient Interactive Proof Systems for Locally
    Electronic Colloquium on Computational Complexity, Revision 3 of Report No. 18 (2017) Simple doubly-efficient interactive proof systems for locally-characterizable sets Oded Goldreich∗ Guy N. Rothblumy September 8, 2017 Abstract A proof system is called doubly-efficient if the prescribed prover strategy can be implemented in polynomial-time and the verifier’s strategy can be implemented in almost-linear-time. We present direct constructions of doubly-efficient interactive proof systems for problems in P that are believed to have relatively high complexity. Specifically, such constructions are presented for t-CLIQUE and t-SUM. In addition, we present a generic construction of such proof systems for a natural class that contains both problems and is in NC (and also in SC). The proof systems presented by us are significantly simpler than the proof systems presented by Goldwasser, Kalai and Rothblum (JACM, 2015), let alone those presented by Reingold, Roth- blum, and Rothblum (STOC, 2016), and can be implemented using a smaller number of rounds. Contents 1 Introduction 1 1.1 The current work . 1 1.2 Relation to prior work . 3 1.3 Organization and conventions . 4 2 Preliminaries: The sum-check protocol 5 3 The case of t-CLIQUE 5 4 The general result 7 4.1 A natural class: locally-characterizable sets . 7 4.2 Proof of Theorem 1 . 8 4.3 Generalization: round versus computation trade-off . 9 4.4 Extension to a wider class . 10 5 The case of t-SUM 13 References 15 Appendix: An MA proof system for locally-chracterizable sets 18 ∗Department of Computer Science, Weizmann Institute of Science, Rehovot, Israel.
    [Show full text]
  • Lecture 10: Space Complexity III
    Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the Complexity Classes Lecture 10: Space Complexity III Arijit Bishnu 27.03.2010 Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the Complexity Classes Outline 1 Space Complexity Classes: NL and L 2 Reductions 3 NL-completeness 4 The Relation between NL and coNL 5 A Relation Among the Complexity Classes Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the Complexity Classes Outline 1 Space Complexity Classes: NL and L 2 Reductions 3 NL-completeness 4 The Relation between NL and coNL 5 A Relation Among the Complexity Classes Definition for Recapitulation S c NPSPACE = c>0 NSPACE(n ). The class NPSPACE is an analog of the class NP. Definition L = SPACE(log n). Definition NL = NSPACE(log n). Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the Complexity Classes Space Complexity Classes Definition for Recapitulation S c PSPACE = c>0 SPACE(n ). The class PSPACE is an analog of the class P. Definition L = SPACE(log n). Definition NL = NSPACE(log n). Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the Complexity Classes Space Complexity Classes Definition for Recapitulation S c PSPACE = c>0 SPACE(n ). The class PSPACE is an analog of the class P. Definition for Recapitulation S c NPSPACE = c>0 NSPACE(n ).
    [Show full text]
  • CSE 6321 - Solutions to Problem Set 5
    CSE 6321 - Solutions to Problem Set 5 1. 2. Solution: n 1 T T 1 T T D-Q = fhA; P0;P1;:::;Pm; b; q0; q1; : : : ; qm; r1; : : : ; rm; ti j (9x 2 R ) 2 x P0x + q0 x ≤ t; 2 x Pix + qi x + ri ≤ 0; Ax = bg. We can show that the decision version of binary integer programming reduces to D-Q in polynomial time as follows: The constraint xi 2 f0; 1g of binary integer programming is equivalent to the quadratic constrain (possible in D-Q) xi(xi − 1) = 0. The rest of the constraints in binary integer programming are linear and can be represented directly in D-Q. More specifically, let hA; b; c; k0i be an instance of D-0-1-IP = fhA; b; c; k0i j (9x 2 f0; 1gn)Ax ≤ b; cT x ≥ 0 kg. We map it to the following instance of D-Q: P0 = 0, q0 = −b, t = −k , k = 0 (no linear equality 1 T T constraint Ax = b), and then use constraints of the form 2 x Pix + qi x + ri ≤ 0 to represent the constraints xi(xi − 1) ≥ 0 and xi(xi − 1) ≤ 0 for i = 1; : : : ; n and more constraints of the same form to represent the 0 constraint Ax ≤ b (using Pi = 0). Then hA; b; c; k i 2 D-0-1-IP iff the constructed instance of D-Q is in D-Q. The mapping is clearly polynomial time computable. (In an earlier statement of ps6, problem 1, I forgot to say that r1; : : : ; rm 2 Q are also part of the input.) 3.
    [Show full text]
  • A Short History of Computational Complexity
    The Computational Complexity Column by Lance FORTNOW NEC Laboratories America 4 Independence Way, Princeton, NJ 08540, USA [email protected] http://www.neci.nj.nec.com/homepages/fortnow/beatcs Every third year the Conference on Computational Complexity is held in Europe and this summer the University of Aarhus (Denmark) will host the meeting July 7-10. More details at the conference web page http://www.computationalcomplexity.org This month we present a historical view of computational complexity written by Steve Homer and myself. This is a preliminary version of a chapter to be included in an upcoming North-Holland Handbook of the History of Mathematical Logic edited by Dirk van Dalen, John Dawson and Aki Kanamori. A Short History of Computational Complexity Lance Fortnow1 Steve Homer2 NEC Research Institute Computer Science Department 4 Independence Way Boston University Princeton, NJ 08540 111 Cummington Street Boston, MA 02215 1 Introduction It all started with a machine. In 1936, Turing developed his theoretical com- putational model. He based his model on how he perceived mathematicians think. As digital computers were developed in the 40's and 50's, the Turing machine proved itself as the right theoretical model for computation. Quickly though we discovered that the basic Turing machine model fails to account for the amount of time or memory needed by a computer, a critical issue today but even more so in those early days of computing. The key idea to measure time and space as a function of the length of the input came in the early 1960's by Hartmanis and Stearns.
    [Show full text]
  • Subgrouping Reduces Complexity and Speeds up Learning in Recurrent Networks
    638 Zipser Subgrouping Reduces Complexity and Speeds Up Learning in Recurrent Networks David Zipser Department of Cognitive Science University of California, San Diego La Jolla, CA 92093 1 INTRODUCTION Recurrent nets are more powerful than feedforward nets because they allow simulation of dynamical systems. Everything from sine wave generators through computers to the brain are potential candidates, but to use recurrent nets to emulate dynamical systems we need learning algorithms to program them. Here I describe a new twist on an old algorithm for recurrent nets and compare it to its predecessors. 2 BPTT In the beginning there was BACKPROPAGATION THROUGH TUvffi (BPTT) which was described by Rumelhart, Williams, and Hinton (1986). The idea is to add a copy of the whole recurrent net to the top of a growing feedforward network on each update cycle. Backpropa­ gating through this stack corrects for past mistakes by adding up all the weight changes from past times. A difficulty with this method is that the feedforward net gets very big. The obvious solution is to truncate it at a fixed number of copies by killing an old copy every time a new copy is added. The truncated-BPTT algorithm is illustrated in Figure 1. It works well, more about this later. 3RTRL It turns out that it is not necessary to keep an ever growing stack of copies of the recurrent net as BPTT does. A fixed number of parameters can record all of past time. This is done in the REAL TI!\.1E RECURRENT LEARNING (RTRL) algorithm of Williams and Zipser (1989).
    [Show full text]
  • 1 the Class Conp
    80240233: Computational Complexity Lecture 3 ITCS, Tsinghua Univesity, Fall 2007 16 October 2007 Instructor: Andrej Bogdanov Notes by: Jialin Zhang and Pinyan Lu In this lecture, we introduce the complexity class coNP, the Polynomial Hierarchy and the notion of oracle. 1 The class coNP The complexity class NP contains decision problems asking this kind of question: On input x, ∃y : |y| = p(|x|) s.t.V (x, y), where p is a polynomial and V is a relation which can be computed by a polynomial time Turing Machine (TM). Some examples: SAT: given boolean formula φ, does φ have a satisfiable assignment? MATCHING: given a graph G, does it have a perfect matching? Now, consider the opposite problems of SAT and MATCHING. UNSAT: given boolean formula φ, does φ have no satisfiable assignment? UNMATCHING: given a graph G, does it have no perfect matching? This kind of problems are called coNP problems. Formally we have the following definition. Definition 1. For every L ⊆ {0, 1}∗, we say that L ∈ coNP if and only if L ∈ NP, i.e. L ∈ coNP iff there exist a polynomial-time TM A and a polynomial p, such that x ∈ L ⇔ ∀y, |y| = p(|x|) A(x, y) accepts. Then the natural question is how P, NP and coNP relate. First we have the following trivial relationships. Theorem 2. P ⊆ NP, P ⊆ coNP For instance, MATCHING ∈ coNP. And we already know that SAT ∈ NP. Is SAT ∈ coNP? If it is true, then we will have NP = coNP. This is the following theorem. Theorem 3. If SAT ∈ coNP, then NP = coNP.
    [Show full text]
  • NP-Completeness
    CMSC 451: Reductions & NP-completeness Slides By: Carl Kingsford Department of Computer Science University of Maryland, College Park Based on Section 8.1 of Algorithm Design by Kleinberg & Tardos. Reductions as tool for hardness We want prove some problems are computationally difficult. As a first step, we settle for relative judgements: Problem X is at least as hard as problem Y To prove such a statement, we reduce problem Y to problem X : If you had a black box that can solve instances of problem X , how can you solve any instance of Y using polynomial number of steps, plus a polynomial number of calls to the black box that solves X ? Polynomial Reductions • If problem Y can be reduced to problem X , we denote this by Y ≤P X . • This means \Y is polynomal-time reducible to X ." • It also means that X is at least as hard as Y because if you can solve X , you can solve Y . • Note: We reduce to the problem we want to show is the harder problem. Call X Because polynomials Call X compose. Polynomial Problems Suppose: • Y ≤P X , and • there is an polynomial time algorithm for X . Then, there is a polynomial time algorithm for Y . Why? Call X Call X Polynomial Problems Suppose: • Y ≤P X , and • there is an polynomial time algorithm for X . Then, there is a polynomial time algorithm for Y . Why? Because polynomials compose. We’ve Seen Reductions Before Examples of Reductions: • Max Bipartite Matching ≤P Max Network Flow. • Image Segmentation ≤P Min-Cut. • Survey Design ≤P Max Network Flow.
    [Show full text]