Computational Complexity Theory. The World of P and NP. Jin-Yi Cai Computer Sciences Dept University of Wisconsin, Madison

Similar documents
On Symmetric Signatures in Holographic Algorithms. Jin-Yi Cai University of Wisconsin, Madison. Pinyan Lu Tsinghua University, Beijing

Dichotomy Theorems in Counting Complexity and Holographic Algorithms. Jin-Yi Cai University of Wisconsin, Madison. Supported by NSF CCF

Some Results on Matchgates and Holographic Algorithms. Jin-Yi Cai Vinay Choudhary University of Wisconsin, Madison. NSF CCR and CCR

On Symmetric Signatures in Holographic Algorithms

On Block-wise Symmetric Signatures for Matchgates

Basis Collapse in Holographic Algorithms Over All Domain Sizes

Linear Algebra and its Applications

HOLOGRAPHIC ALGORITHMS


The Classification Program II: Tractable Classes and Hardness Proof

Holographic Algorithms With Unsymmetric Signatures

Complexity Dichotomies for Counting Problems

A Complexity Classification of the Six Vertex Model as Holant Problems

Bases Collapse in Holographic Algorithms

1 Computational problems

Computability and Complexity Theory: An Introduction

NP Completeness. CS 374: Algorithms & Models of Computation, Spring Lecture 23. November 19, 2015

Easy Problems vs. Hard Problems. CSE 421 Introduction to Algorithms Winter Is P a good definition of efficient? The class P

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65

Design and Analysis of Algorithms

CS 583: Algorithms. NP Completeness Ch 34. Intractability

Some Algebra Problems (Algorithmic) CSE 417 Introduction to Algorithms Winter Some Problems. A Brief History of Ideas

NP and Computational Intractability

Holographic Reduction, Interpolation and Hardness

Algorithm Design and Analysis

Introduction to Complexity Theory

Limitations of Algorithm Power

NP Complete Problems. COMP 215 Lecture 20

NP and NP Completeness

Lecture 22: Counting

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1

NP and Computational Intractability

Polynomial-time classical simulation of quantum ferromagnets

Harvard CS 121 and CSCI E-121 Lecture 22: The P vs. NP Question and NP-completeness

1. Introduction Recap

Fine Grained Counting Complexity I

COP 4531 Complexity & Analysis of Data Structures & Algorithms

Correctness of Dijkstra s algorithm

P P P NP-Hard: L is NP-hard if for all L NP, L L. Thus, if we could solve L in polynomial. Cook's Theorem and Reductions

Automata Theory CS Complexity Theory I: Polynomial Time

Polynomial-Time Reductions

1 Reductions and Expressiveness

CS154, Lecture 15: Cook-Levin Theorem SAT, 3SAT

15-451/651: Design & Analysis of Algorithms October 31, 2013 Lecture #20 last changed: October 31, 2013

Algorithm Design and Analysis

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2)

SAT, Coloring, Hamiltonian Cycle, TSP

Dichotomy Theorems for Counting Problems. Jin-Yi Cai University of Wisconsin, Madison. Xi Chen Columbia University. Pinyan Lu Microsoft Research Asia

NP-Complete Problems. More reductions

Some Algebra Problems (Algorithmic) CSE 417 Introduction to Algorithms Winter Some Problems. A Brief History of Ideas

The Complexity of Planar Boolean #CSP with Complex Weights

CSCI3390-Lecture 18: Why is the P =?NP Problem Such a Big Deal?

The Complexity of Approximating Small Degree Boolean #CSP

8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013

Limits to Approximability: When Algorithms Won't Help You. Note: Contents of today s lecture won t be on the exam

8.1 Polynomial-Time Reductions. Chapter 8. NP and Computational Intractability. Classify Problems

More on NP and Reductions

Holographic Algorithms: From Art to Science

Computational Complexity and Intractability: An Introduction to the Theory of NP. Chapter 9

Essential facts about NP-completeness:

Intro to Theory of Computation

NP-Complete problems

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

Dichotomy for Holant Problems of Boolean Domain

Siegel s theorem, edge coloring, and a holant dichotomy

Polynomial-time reductions. We have seen several reductions:

Foundations of Artificial Intelligence

Polynomial-time Reductions

DRAFT. Algebraic computation models. Chapter 14

NP-COMPLETE PROBLEMS. 1. Characterizing NP. Proof

DESIGN AND ANALYSIS OF ALGORITHMS. Unit 6 Chapter 17 TRACTABLE AND NON-TRACTABLE PROBLEMS

Unit 6 Chapter 17 TRACTABLE AND NON-TRACTABLE PROBLEMS

4/19/11. NP and NP completeness. Decision Problems. Definition of P. Certifiers and Certificates: COMPOSITES

NP-Completeness. Subhash Suri. May 15, 2018

Admin NP-COMPLETE PROBLEMS. Run-time analysis. Tractable vs. intractable problems 5/2/13. What is a tractable problem?

NP-completeness. Chapter 34. Sergey Bereg

NP-Completeness. NP-Completeness 1

More NP-Complete Problems

NP-Completeness I. Lecture Overview Introduction: Reduction and Expressiveness

1 Primals and Duals: Zero Sum Games

On the Theory of Matchgate Computations

Stanford University CS254: Computational Complexity Handout 8 Luca Trevisan 4/21/2010

CS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018

Lecture 25: Cook s Theorem (1997) Steven Skiena. skiena

A Tale of Two Cultures: Phase Transitions in Physics and Computer Science. Cristopher Moore University of New Mexico and the Santa Fe Institute

ENEE 459E/CMSC 498R In-class exercise February 10, 2015

Algorithm Design and Analysis

CS 350 Algorithms and Complexity

CS 350 Algorithms and Complexity

ECE 695 Numerical Simulations Lecture 2: Computability and NPhardness. Prof. Peter Bermel January 11, 2017

CHAPTER 3 FUNDAMENTALS OF COMPUTATIONAL COMPLEXITY. E. Amaldi Foundations of Operations Research Politecnico di Milano 1

CS154, Lecture 13: P vs NP

COMP 382. Unit 10: NP-Completeness

SAT, NP, NP-Completeness

1.1 P, NP, and NP-complete

NP Completeness and Approximation Algorithms

The P versus NP Problem. Ker-I Ko. Stony Brook, New York

Complexity Classes V. More PCPs. Eric Rachlin

Transcription:

Computational Complexity Theory The World of P and NP Jin-Yi Cai Computer Sciences Dept University of Wisconsin, Madison Sept 11, 2012 Supported by NSF CCF-0914969. 1

2

Entscheidungsproblem The rigorous foundation of Computability Theory was established in the 1930s,... Answering a question of Hilbert 3

4

5

6

7

Computable yet Not Efficiently Computable Given N, how fast can one factor it? N = 577207212969718332037857911728272431? 8

N = 13756295877065550723286378713930120642244218835580062 5186902271294765416798340629392379444118675259? 9

N = 9361973132609 61654440233248340616559 10

N = 1471865453993855302660887614137521979 93461639715357977769163558199606896584051237541638188580280321 11

RSA Crypto System Based on the presumed computational complexity of factoring, Rivest, Shamir and Adleman proposed a public-key crypto system. 12

Is factoring intrinsically hard? The best factoring algorithm runs in time e cn1/3 (log n) 2/3 (Number Field Sieve). 13

14

Shor s factoring algorithm But by using quantum superposition, Shor has found a factoring algorithm which runs in polynomial time. 15

P and NP P is deterministic polynomial time. e.g. Determinant, Graph Matching (monomer-dimer problem), Max-Flow Min-Cut. NP is non-deterministic polynomial time. For any given instance x, it is a Yes instance iff there is a short proof which can be checked in P. e.g. SATisfiability, Graph 3-Coloring, Hamiltonian Circuit, Clique, Vertex Cover, Traveling Salesman, etc. Also, Factoring, Graph Isomorphism, etc. 16

The P vs. NP Question It is generally conjectured that many combinatorial problems in the class NP are not computable in polynomial time. Conjecture: P NP. P =? NP is: Is there a universal and efficient method to discover a mathematical proof when one exists? Can clever guesses be systematically eliminated? 17

What a topologist has to say For the pure mathematician the boundary that Gödel delineated between decidable and undecidable, recursive and nonrecursive, has an attractive sharpness that declares itself as a phenomenon of absolutes. In contrast, the complexity classes of computer science for example P and NP require an asymptotic formulation and... demand a bit of patience before their fundamental character is appreciated. 18

What a topologist has to say Setting aside the constraints of any particular computational model, the creation of a physical device capable of brutally solving NP problems would have the broadest consequences. Among its minor applications it would supersede intelligent, even artificially intelligent, proof finding with an omniscience not possessing or needing understanding. Whether such a device is possible or even in principle consistent with physical law, is a great problem for the next century. Michael Freedman 19

20

#P Counting problems: #SAT: How many satisfying assignments are there in a Boolean formula? #PerfMatch: How many perfect matchings (Dimer Problem) are there in a graph? #P is at least as powerful as NP, and in fact subsumes the entire polynomial time hierarchy i Σ p i [Toda]. #P-completeness: #SAT, #PerfMatch, Permanent, etc. 21

Valiant s Holographic Algorithms Similar to quantum superposition, but without using quantum computers, Valiant introduced holographic algorithms. These holographic algorithms also seem to achieve exponential speed-ups for some problems. 22

Perfect Matchings 23

24

25

26

27

Some Surprises Most #P-complete problems are counting versions of NP-complete decision problems. But the following problems are solvable in P: Whether there exists a Perfect Matching in a general graph. [Edmonds] Count the number of Perfect Matchings in a planar graph. [Kasteleyn] Note that the problem of counting the number of (not necessarily perfect) matchings in a planar graph is still #P-complete [Jerrum]. 28

Holographic Algorithms Holographic algorithms have two main ingredients: (1) Use perfect matchings to encode fragments of computations. (2) Use linear algebra to achieve exponential cancellations. Some seemingly exponential time computations can be done in polynomial time. 29

Sample Problems Solved by Holographic Algorithms #PL-3-NAE-ICE Input: A planar graph G = (V, E) of maximum degree 3. Output: The number of orientations such that no node has all edges directed towards it or all edges directed away from it. Ising problems are motivated by statistical physics. Remarkable contributions by Ising, Onsager, Fisher, Temperley, Kasteleyn, C.N.Yang, T.D.Lee, Baxter, Lieb, Wilson etc. 30

A Satisfiability Problem #PL-3-NAE-SAT Input: A planar formula Φ consisting of a conjunction of NOT-ALL-EQUAL clauses each of size 3. Output: The number of satisfying assignments of Φ. Constraint satisfiability problem. e.g. PL-3-EXACTLY-ONE-SAT is NP-complete. and #PL-3-EXACTLY-ONE-SAT is #P-complete. 31

Pl-Node -Bipartition PL-NODE-BIPARTITION Input: A planar graph G = (V, E) of maximum degree 3. Output: The cardinality of a smallest subset V V such that the deletion of V and its incident edges results in a bipartite graph. NP-complete for maximum degree 6. If instead of NODE deletion we consider EDGE deletion, this is the well known MAX-CUT problem. MAX-CUT is NP-hard (even NP-hard to approximate by the PCP Theory.) 32

A Particular Counting Problem # 7 Pl-Rtw-Mon-3CNF Input: A planar graph G Φ representing a Read-twice Monotone 3CNF Boolean formula Φ. Output: The number of satisfying assignments of Φ, modulo 7. Here the vertices of G Φ represent variables x i and clauses c j. An edge exists between x i and c j iff x i appears in c j. Nodes x i have degree 2 and nodes c j have degree 3. 33

An Instance For Pl-Rtw-Mon-3CNF 34

35

#P-Hardness Fact: #Pl-Rtw-Mon-3CNF is #P-Complete. Fact: # 2 Pl-Rtw-Mon-3CNF is NP-hard. 36

An Unexpected Algorithm There is a polynomial time holographic algorithm for # 7 Pl-Rtw-Mon-3CNF (Valiant). Using Matchgate Computations... and Holographic Algorithms. 37

A Matchgate Γ G Figure 1: A matchgate Γ 38

Matchgate A planar matchgate Γ = (G, X) is a weighted graph G = (V, E, W) with a planar embedding, having external nodes, placed on the outer face. Matchgates with only output nodes are called generators. Matchgates with only input nodes are called recognizers. 39

A Matchgate 40

Standard Signatures Define PerfMatch(G) = M (i,j) M w ij, where the sum is over all perfect matchings M. A matchgate Γ is assigned a Standard Signature G = (G S ) and R = (R S ), for generators and recognizers respectively. G S = PerfMatch(G S). R S = PerfMatch(G S). Each entry is indexed by a subset S of external nodes. 41

A Wild Attempt at P = P #P Consider Pl-Rtw-Mon-3CNF again: #Pl-Rtw-Mon-3CNF Input: A planar graph G Φ representing a Read-twice Monotone 3CNF Boolean formula Φ. Output: The number of satisfying assignments of Φ. 42

An Instance For #Pl-Rtw-Mon-3CNF 43

44

Recognizer Signature Given Φ as a planar graph G Φ. Variables and clauses are nodes. Edge (x, C): x appears in C. For each clause C in Φ with 3 variables, we define R C = (0, 1, 1, 1, 1, 1, 1, 1), where the 8 entries are indexed by b 1 b 2 b 3 {0, 1} 3. Here b 1 b 2 b 3 corresponds to a truth assignment to the 3 variables. R C corresponds to an OR gate. 45

Generator Signature For each variable x we want a generator G with signature G 00 = 1, G 01 = 0, G 10 = 0, G 11 = 1, or (1, 0, 0, 1) T for short.... to indicate that the fan-out value from x to C and C must be consistent. 46

Exponential Sum Now we can form the tensor product R = C R C and G = x G x. The sum R,G = i 1,i 2,...,i e {0,1} R i1 i 2...i e G i 1i 2...i e counts exactly the number of satisfying assignments to Φ. The indices of R = (R i1 i 2...i e ) and G = (G i 1i 2...i e ) match up one-to-one according to which x appears in which C. 47

Realizability Issue If these signatures are indeed realizable as signatures of planar matchgates, then by the Fisher-Kasteleyn-Temperley (FKT) method on planar perfect matchings, we would have shown #P = NP = P!!! The above G is indeed realizable. But R is not (realizable as standard signature). Need more ideas... 48

Basis Transformations The 1st ingredient of the theory of holographic algorithms: Matchgates The 2nd ingredient of the theory: A choice of linear basis by which the computation is manipulated/interpreted. 49

Transformation Matrix So let b denote the standard basis, b = [e 0, e 1 ] = 1, 0. 0 1 Consider another basis β = [n, p] = n 0, p 0. n 1 p 1 Let β = bt. Denote T = (t i j ) and T 1 = ( t i j ). (Upper index is for row and lower index is for column.) 50

Contravariant and Covariant Tensors We assign to each generator Γ a contravariant tensor G = (G α ). Under a basis transformation, (G ) i 1 i 2...i n = G i 1 i 2...i n t i 1 i1 t i 2 i2 t i n in (1) Correspondingly, each recognizer Γ gets a covariant tensor R = (R α ). (R ) i 1 i 2...i n = R i1 i 2...i n t i 1 i 1 t i 2 i 2 t i n i n (2) After this transformation, the signature IS realizable. (0, 1, 1, 1, 1, 1, 1, 1) 51

Realization for the OR gate So we want the following (0, 1, 1, 1, 1, 1, 1, 1) as a non-standard signature under some basis. Let 1 + ω, 1, 1 ω 1 where ω = e 2πi/3 is a primitive third root of unity. 52

The Transformation Matrix from R to R 1 3 1 + ω 1 is 1 8 1 ω 1 times 0 1 1 1 1 1 1 1 1 1 1 + ω 1 + ω 1 ω 1 ω 1 ω 1 ω 1 + ω 1 + ω 1 + ω 1 ω 1 + ω 1 ω 1 ω 1 + ω 1 ω 1 + ω 3ω 2 ω 2 ω ω 3ω 2 + ω 2 + ω ω 1 + ω 1 ω 1 ω 1 + ω 1 + ω 1 ω 1 ω 1 + ω 3ω 2 ω 3ω 2 + ω 2 ω ω 2 + ω ω B @ 3ω 3ω 2 ω 2 + ω 2 ω 2 + ω ω ω C A 3 + 6ω 3 3 1 2ω 3 1 2ω 1 2ω 1 53

Back to Standard Signature By covariant transformation, (adding the last 7 rows), (R i1 i 2 i 3 ) = 1 (0, 1, 1, 0, 1, 0, 0, 1). 4 There indeed exists a matchgate with three external nodes with the standard signature = 1 4 (0, 1, 1, 0, 1, 0, 0, 1). Thus, R C = (0, 1, 1, 1, 1, 1, 1, 1) = 1 (0, 1, 1, 0, 1, 0, 0, 1) 1 + ω 1 4 1 ω 1 3. 54

Over Finite Fields Over the field Z 7 (but not Q) both the generators and recognizers are simultaneously realizable. They are realizable as non-standard signatures. This gives # 7 Pl-Rtw-Mon-3CNF P. 55

Characteristic 7 is Unique Theorem Characteristic 7 is the unique characteristic of a field for which there is a common basis of size 1 for generating (1, 0, 0, 1) T and recognizing (0, 1, 1, 1, 1, 1, 1, 1) T. Deeper connections with Mersenne numbers 2 p 1. 56

Complexity Dichotomy Theorems Theorem Let F be any finite set of real-valued symmetric constraint functions on Boolean variables. Then there are precisely three classes of #CSP(F) problems, depending on F. (1) #CSP(F) is in P. (2) #CSP(F) is #P-hard, but solvable in P for planar inputs. (3) #CSP(F) is #P-hard even for planar inputs. Furthermore F is in class (2) iff there is a holographic algorithm based on matchgates and the planar problems are solved by the FKT algorithm. 57

Outlook The kinds of algorithms that are obtained by this theory are quite unlike anything before and almost exotic. The uncertainty of its ultimate prospect makes it exciting. Is it possible to find an exotic but polynomial time algorithm for an NP-hard problem? 58

Back to P. vs. NP We don t have any strong lower bounds. The belief NP P is based on the experience that the usual algorithmic methods are insufficient for NP-hard problems. So would it be possible that this new theory leads to a polynomial time algorithm for one of the NP-hard problems? Valiant: any proof of P NP may need to explain, and not only to imply, the unsolvability of NP-hard problems using this approach. 59

What would Hilbert say? Is the Computability Theory of Gödel, Church and Turing et. al. a more profound characterization of the mathematical universe of theorem, proof, verification,... Or does P vs. NP capture more the essence of mathematics? What would Hilbert say? 60

Some References Some papers can be found on my web site http://www.cs.wisc.edu/ jyc THANK YOU! 61