ORF 523. Finish approximation algorithms + Limits of computation & undecidability + Concluding remarks

Similar documents
Limits of Computation + Course Recap

Limits of Computation + Course Recap

Limits of Computation + Course Recap

A Working Knowledge of Computational Complexity for an Optimizer

Computational Complexity in Numerical Optimization

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

ORF 523 Final Exam, Spring 2016

Cool Results on Primes

Undecidability. Almost all Languages are undecidable. Question: Is it just weird languages that no one would care about which are undecidable?

1 Strict local optimality in unconstrained optimization

Complexity of 10 Decision Problems in Continuous Time Dynamical Systems. Amir Ali Ahmadi IBM Watson Research Center

ORF 363/COS 323 Final Exam, Fall 2015

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK

SDP Relaxations for MAXCUT

ORF 363/COS 323 Final Exam, Fall 2017

6-1 Computational Complexity

Announcements Monday, September 18

COMP-330 Theory of Computation. Fall Prof. Claude Crépeau. Lecture 1 : Introduction

ORF 363/COS 323 Final Exam, Fall 2018

Optimization over Nonnegative Polynomials: Algorithms and Applications. Amir Ali Ahmadi Princeton, ORFE

6.854J / J Advanced Algorithms Fall 2008

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Design and Analysis of Algorithms

15-251: Great Theoretical Ideas in Computer Science Fall 2016 Lecture 6 September 15, Turing & the Uncomputable

Lecture 16: Constraint Satisfaction Problems

Lec7p1, ORF363/COS323

Topics in Complexity

1 The independent set problem

Complexity of Deciding Convexity in Polynomial Optimization

Homework 3 Solutions, Math 55

U.C. Berkeley CS294: Beyond Worst-Case Analysis Handout 8 Luca Trevisan September 19, 2017

ORF 363/COS 323 Final Exam, Fall 2016

Math 31 Lesson Plan. Day 5: Intro to Groups. Elizabeth Gillaspy. September 28, 2011

12. Perturbed Matrices

Introduction to Semidefinite Programming I: Basic properties a

1 Reductions and Expressiveness

Methods of Mathematics

A Potpourri of Nonlinear Algebra

Today: Linear Programming (con t.)

CS173 Lecture B, November 3, 2015

Problem Solving in Math (Math 43900) Fall 2013

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, Class 8 Nancy Lynch

Computational Complexity

1 Reals are Uncountable

MATH CSE20 Homework 5 Due Monday November 4

Lecture 6: Finite Fields

Lower bounds on the size of semidefinite relaxations. David Steurer Cornell

CS151 Complexity Theory. Lecture 1 April 3, 2017

Hardness of Approximation

Computation of the Joint Spectral Radius with Optimization Techniques

8 Primes and Modular Arithmetic

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: NP-Completeness I Date: 11/13/18

U.C. Berkeley CS294: Spectral Methods and Expanders Handout 11 Luca Trevisan February 29, 2016

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013

CS6901: review of Theory of Computation and Algorithms

MATH 22 FUNCTIONS: ORDER OF GROWTH. Lecture O: 10/21/2003. The old order changeth, yielding place to new. Tennyson, Idylls of the King

What Computers Can Compute (Approximately) David P. Williamson TU Chemnitz 9 June 2011

Time-bounded computations

Logic, Elliptic curves, and Diophantine stability

Stability of Polynomial Differential Equations: Complexity and Converse Lyapunov Questions

CS 7220 Computational Complexity and Algorithm Analysis

Computability, Undeciability and the Halting Problem

CSE 105 Theory of Computation

CSCI3390-Lecture 16: NP-completeness

Principles of Computing, Carnegie Mellon University. The Limits of Computing

CS3719 Theory of Computation and Algorithms

Lecture Notes. Advanced Discrete Structures COT S

CH 59 SQUARE ROOTS. Every positive number has two square roots. Ch 59 Square Roots. Introduction

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

Undecidability and Rice s Theorem. Lecture 26, December 3 CS 374, Fall 2015

11 Three problems on the decidability and complexity of stability

Approximating Maximum Constraint Satisfaction Problems

Approximation Algorithms

MAT1302F Mathematical Methods II Lecture 19

1 Computational Problems

Lecture 17 (Nov 3, 2011 ): Approximation via rounding SDP: Max-Cut

P versus NP. Math 40210, Spring April 8, Math (Spring 2012) P versus NP April 8, / 9

Overview. 1 Introduction. 2 Preliminary Background. 3 Unique Game. 4 Unique Games Conjecture. 5 Inapproximability Results. 6 Unique Game Algorithms

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

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 27

What can you prove by induction?

Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem. Michael Beeson

Notes for Lecture Notes 2

P,NP, NP-Hard and NP-Complete

Chapter 4. Solving Systems of Equations. Chapter 4

1/19 2/25 3/8 4/23 5/24 6/11 Total/110 % Please do not write in the spaces above.

NP-Complete and Non-Computable Problems. COMP385 Dr. Ken Williams

EXAMPLES OF MORDELL S EQUATION

Topics in Complexity Theory

Alan Turing and the Mathematics of the Unsolvable

Adam Blank Spring 2017 CSE 311. Foundations of Computing I. * All slides are a combined effort between previous instructors of the course

x 1 + x 2 2 x 1 x 2 1 x 2 2 min 3x 1 + 2x 2

Matching Polynomials of Graphs

P, NP, NP-Complete, and NPhard

Mathematical Induction

Computational Integer Programming Universidad de los Andes. Lecture 1. Dr. Ted Ralphs

6.080 / Great Ideas in Theoretical Computer Science Spring 2008

CSC Linear Programming and Combinatorial Optimization Lecture 12: The Lift and Project Method

Essential facts about NP-completeness:

Kernelization Lower Bounds: A Brief History

Transcription:

Finish approximation algorithms + Limits of computation & undecidability + Concluding remarks ORF 523 Lecture 19 Instructor: Amir Ali Ahmadi, TA: G. Hall, Spring 2016 1

Convex relaxations with worst-case guarantees One way to cope with NP-hardness is to aim for suboptimal solutions with guaranteed accuracy We argued that convex relaxations provide a powerful tool for this task Reminder: For randomized algorithms, require this in expectation. 2

General recipe for convex optimization based approx. algs. Relax Round Bound 3

Last time: 2-approximation for vertex cover via LP Solve its LP relaxation, then round: 4

Today: MAXCUT Examples with edge costs equal to 1: Cut value=8 MAXCUT is NP-complete (e.g., relatively easy reduction from 3SAT) Contrast this to MINCUT which can be solved in poly-time by LP Cut value=23 (optimal) 5

A.878-approximation algorithm for MAXCUT via SDP Seminal work of Michel Goemans and David Williamson (1995) Before that the best approximation factor was ½ First use of SDP in approximation algorithms Still the best approximation factor to date An approximation ratio better than 16/17=.94 implies P=NP (Hastad) Under stronger complexity assumptions,.878 is optimal No LP-based algorithm is known to match the SDP-based 0.878 bound 6

The GW SDP relaxation It s SDP relaxation: 7

The GW rounding 8

The GW bound 9

The GW bound 10

Relating this to the SDP optimal value 11

The final step Bound term by term. You achieve this approximation ratio. 12

(By D.E. Knuth) 13

Limits of computation 14

What theory of NP-completeness established for us Recall that all NP-complete problems polynomially reduce to each other. If you solve one in polynomial time, you solve ALL in polynomial time. What s coming next: limits of computation in general (and under no assumptions) 15

Matrix mortality We say the collection is mortal if there is a finite product out of the matrices (possibly allowing repetition) that gives the zero matrix. Example 1: Example from [W11]. Mortal. 16

Matrix mortality We say the collection is mortal if there is a finite product out of the matrices (possibly allowing repetition) that gives the zero matrix. Example 2: Not mortal. (How to prove that?) In this case, can just observe that all three matrices have nonzero determinant. Determinant of product=product of determinants. But what if we aren t so lucky? 17

Matrix mortality MATRIX MORTALITY This means that there is no finite time algorithm that can take as input two 21x21 matrices (or seven 3x3 matrices) and always give the correct yes/no answer to the question whether they are mortal. This is a definite statement. (It doesn t depend on complexity assumptions, like P vs. NP or alike.) How in the world would someone prove something like this? By a reduction from another undecidable problem! 18

The Post Correspondence Problem (PCP) Given a set of dominos such as the ones above, can you put them next to each other (repetitions allowed) in such a way that the top row reads the same as the bottom row? Emil Post (1897-1954) Answer to this instance is YES: 19

The Post Correspondence Problem (PCP) What about this instance? Emil Post (1897-1954) Answer is NO. Why? There is a length mismatch, unless we only use (3), which is not good enough. But what if we aren t so lucky? 20

The Post Correspondence Problem (PCP) PCP Emil Post (1897-1954) 21

Reductions There is a rather simple reduction from PCP to MATRIX MORTALITY; see, e.g., [Wo11]. This shows that if we could solve MATRIX MORTALITY in finite time, then we could solve PCP in finite time. It s impossible to solve PCP in finite time (because of another reduction!) Hence, it s impossible to solve MATRIX MORTALITY in finite time. Note that these reductions only need to be finite in length (not polynomial in length like before). 22

Integer roots of polynomial equations Sure: And there are infinitely many more How about How about How about Fermat s last theorem tells us the answer is NO to all these instances. 23

Integer roots to polynomial equations YES: (3,1,1) But answer is YES!! No one knows! Source: [Po08] 24

Integer roots of polynomial equations From Logicomix POLY INT Hilbert s 10 th problem (1900): Is there an algorithm for POLY INT? Matiyasevich (1970) building on earlier work by Davis, Putnam, and Robinson: No! The problem is undecidable. 25

Real/rational roots of polynomial equations If instead of integer roots, we were testing existence of real roots, then the problem would become decidable. Such finite-time algorithms were developed in the past century (Tarski Seidenberg ) If instead we were asking for existence of rational roots, We currently don t know if it s decidable! Nevertheless, both problems are NP-hard. For example for A set of equations of degree 2 A single equation of degree 4. Proof on the next slide. 26

A simple reduction We give a simple reduction from STABLE SET to show that testing existence of a real (or rational or integer) solution to a set of quadratic equations is NP-hard. Contrast this to the case of linear equations which is in P. How would you go from here to a single equation of degree 4? 27

Tiling the plane Given a finite collection of tile types, can you tile the 2- dimenstional plane such that the colors on all tile borders match. Cannot rotate or flip the tiles. The answer is YES, for the instance presented. But in general, the problem is undecidable. 28

Stability of matrix pairs We say a matrix A is stable if all its eigenvalues are strictly inside the unit circle in the complex plane. We say a pair of matrices {A1, A2} is stable if all matrix products out of A1 and A2 are stable. Given {A1,A2}, let a* be the largest scalar such that the pair {aa1,aa2} is stable for all a<a*. Define r(a1,a2) to be 1/a*. For a single matrix A, r(a) is the same thing as the spectral radius and can be computed in polynomial time. STABLE MATIRX PAIR: Given a pair of matrices A1,A2, decide if r(a1,a2)<=1? THM. STABLE MATRIX PAIR is undecidable already for 47x47 matrices. 29

All undecidability results are proven via reductions But what about the first undecidable problem? 30

The halting problem HALTING An instance of HALTING: 31

The halting problem An instance of HALTING: We ll show that the answer is no! This will be a proof by contradiction. 32

The halting problem is undecidable Proof. Suppose there was such a program terminates(p,x). We ll use it to create a new program paradox(z): function paradox(z) 1: if terminates(z,z)==1 goto line 1. What happens if we run paradox(paradox)?! If paradox halts on itself, then paradox doesn t halt on itself. If paradox doesn t halt on itself, then paradox halts on itself. This is a contradiction terminates can t exist. 33

The halting problem (1936) Alan Turing (1912-1954) 34

Self-reference a simpler example Russell s paradox 35

The power of reductions (one last time) A simple paradox/puzzle: (lots of nontrivial mathematics, including the formalization of the notion of an algorithm ) A fundamental algorithmic question: POLY INT 36

A remarkable implication of this Consider the following long-standing open problems in mathematics (among numerous others!): Is there an odd perfect number? (an odd number whose proper divisors add up to itself) Is every even integer larger than 2 the sum of two primes? (The Goldbach conjecture) In each case, you can explicitly write down a polynomial of degree 4 in 58 variables, such that if you could decide whether your polynomial has an integer root, you would have solved the open problem. Proof. 1) Write a code that looks for a counterexample. 2) Code does not halt if and only if the conjecture is true (one instance of the halting problem!) 3) Use the reduction to turn into an instance of POLY INT. 37

How to deal with undecidability? Well we have only one tool in this class: Convex optimization! 38

Stability of matrix pairs We say a matrix A is stable if all its eigenvalues are strictly inside the unit circle on the complex plane. We say a pair of matrices {A1, A2} is stable if all matrix products out of A1 and A2 are stable. Given {A1,A2}, let a* be the largest scalar such that the pair {aa1,aa2} is stable for all a<a*. Define r(a1,a2) to be 1/a*. For a single matrix A, r(a) is the same thing as the spectral radius and can be computed in polynomial time. STABLE MATIRX PAIR: Given a pair of matrices A1,A2, decide if r(a1,a2)<=1? THM. STABLE MATRIX PAIR is undecidable already for 47x47 matrices. 39

Common Lyapunov function [Chaos, Yorke] If we can find a function such that then, the matrix family is stable. Such a function always exists! But may be extremely difficult to find!! 40

Computationally-friendly common Lyapunov functions If we can find a function such that then the matrix family is stable. Common quadratic Lyapunov function: 41

SDP-based approximation algorithm! Exact if you have a single matrix (we proved this). For more than one matrix: 42

Proof idea Upper bound: Existence of a quadratic Lyapunov function sufficient for stability Lower bound (due to Blondel and Nesterov): We know from converse Lyapunov theorems that there always exist a Lyapunov function which is a norm We are approximating the (convex) sublevel sets of this norm by ellipsoids Apply John s ellipsoid theorem (see Section 8.4 of Boyd&Vandenberghe) 43

How can we do better than this SDP? Why look only for quadratic Lyapunov functions? Look for higher order polynomial Lyapunov functions and apply our the SOS relaxation! 44

Common SOS Lyapunov functions 45

SOS-based approximation algorithm! 46

SOS-based approximation algorithm! Comments: For 2d=2, this exactly reduces to our previous SDP! (SOS=nonnegativity for quadratics!) We are approximating an undecidable quantity to arbitrary accuracy in polynomial time!! In the past couple of decades, approximation algorithms have been actively studied for a multitude of NP-hard problems. There are noticeably fewer studies on approximation algorithms for undecidable problems. In particular, the area of integer polynomial optimization seems to be wide open. 47

Main messages of the course 48

Main messages of the course Which optimization problems are tractable? Convexity is a good rule of thumb. But there are nonconvex problems that are easy (SVD, S-lemma, etc.) And convex problems that are hard (testing matrix copositivity or polynomial nonnegativity). In fact, we showed that every optimization problem can be written as a convex problem. Computational complexity theory is essential to answering this question! Hardness results Theory of NP-completeness: gives overwhelming evidence for intractability of many optimization problems of interest (no polynomial-time algorithms) Undecidability results rule out finite time algorithms unconditionally Dealing with intractable problems Solving special cases exactly Looking for bounds via convex relaxations Approximation algorithms 49

Main messages of the course 50

The take-home final Will go live on Thursday, May 5, at 9AM. Will be due on Tuesday, May 10, 11 AM in the ORF 523 box in Sherrerd 123. We are planning for ~5,6 problems. Please use Piazza for clarification questions! Office hours next week: Georgina: Monday, 5-7 PM. Amirali: Tuesday, 6-8 PM. Come with your questions! If you ve been doing the problem sets and following lecture, you should be OK 51

Some open problems that came up in this course (Many are high-risk (and high-payoff)) 1) Compute the Shannon capacity of C7. More generally, give better SDP-based upper bounds on the capacity than Lovasz. 52

Some open problems that came up in this course 2) Is there a polynomial time algorithm for output feedback stabilization? 53

Some open problems that came up in this course 3) Can you find a local minimum of a quadratic program in polynomial time? 4) Construct a convex, nonnegative polynomial that is not a sum of squares. 5) Can you beat the GW 0.878 algorithm for MAXCUT? Check your license plate, you never know! Thank you! AAA April 28, 2016 54

References References: -[Wo11] M.M. Wolf. Lecture notes on undecidability, 2011. -[Po08] B. Poonen. Undecidability in number theory, Notices of the American Mathematical Society, 2008. -[DPV08] S. Dasgupta, C. Papadimitriou, and U. Vazirani. Algorithms. McGraw Hill, 2008. 55