Instructor: Shengyu Zhang 1. Optimization Very often we need to solve an optimization problem.  Maximize the utility/payoff/gain/…  Minimize the cost/penalty/loss/…

Slides:



Advertisements
Similar presentations
NP-Hard Nattee Niparnan.
Advertisements

Approximation Algorithms
Max Cut Problem Daniel Natapov.
Private Approximation of Search Problems Amos Beimel Paz Carmi Kobbi Nissim Enav Weinreb Ben Gurion University Research partially Supported by the Frankel.
Fast FAST By Noga Alon, Daniel Lokshtanov And Saket Saurabh Presentation by Gil Einziger.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Introduction to Approximation Algorithms Lecture 12: Mar 1.
Approximation Algorithms
1 Introduction to Linear and Integer Programming Lecture 9: Feb 14.
CPSC 689: Discrete Algorithms for Mobile and Wireless Systems Spring 2009 Prof. Jennifer Welch.
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
Approximation Algorithms Lecture for CS 302. What is a NP problem? Given an instance of the problem, V, and a ‘certificate’, C, we can verify V is in.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
1 Polynomial Time Reductions Polynomial Computable function : For any computes in polynomial time.
Approximation Algorithms
The Theory of NP-Completeness
Analysis of Algorithms CS 477/677
NP-complete examples CSC3130 Tutorial 11 Xiao Linfu Department of Computer Science & Engineering Fall 2009.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Job Scheduling Lecture 19: March 19. Job Scheduling: Unrelated Multiple Machines There are n jobs, each job has: a processing time p(i,j) (the time to.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
1 Introduction to Approximation Algorithms Lecture 15: Mar 5.
1 Slides by Asaf Shapira & Michael Lewin & Boaz Klartag & Oded Schwartz. Adapted from things beyond us.
Approximation Algorithms: Bristol Summer School 2008 Seffi Naor Computer Science Dept. Technion Haifa, Israel TexPoint fonts used in EMF. Read the TexPoint.
1.1 Chapter 1: Introduction What is the course all about? Problems, instances and algorithms Running time v.s. computational complexity General description.
MCS312: NP-completeness and Approximation Algorithms
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
C&O 355 Mathematical Programming Fall 2010 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Advanced Algorithm Design and Analysis (Lecture 13) SW5 fall 2004 Simonas Šaltenis E1-215b
Tonga Institute of Higher Education Design and Analysis of Algorithms IT 254 Lecture 8: Complexity Theory.
Prabhas Chongstitvatana1 NP-complete proofs The circuit satisfiability proof of NP- completeness relies on a direct proof that L  p CIRCUIT-SAT for every.
1 3-COLOURING: Input: Graph G Question: Does there exist a way to 3-colour the vertices of G so that adjacent vertices are different colours? 1.What could.
Computation Model and Complexity Class. 2 An algorithmic process that uses the result of a random draw to make an approximated decision has the ability.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Instructor: Shengyu Zhang 1. Tractable While we have introduced many problems with polynomial-time algorithms… …not all problems enjoy fast computation.
Computer Science Day 2013, May Distinguished Lecture: Andy Yao, Tsinghua University Welcome and the 'Lecturer of the Year' award.
1 On Completing Latin Squares Iman Hajirasouliha Joint work with Hossein Jowhari, Ravi Kumar, and Ravi Sundaram.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
1 Suppose I construct a TM M f which: 1. Preserves its input u. 2. Simulates a machine M b on input ε. 3. If M b hangs on input ε, force an infinite loop.
CPS Computational problems, algorithms, runtime, hardness (a ridiculously brief introduction to theoretical computer science) Vincent Conitzer.
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
1 CSE 326: Data Structures: Graphs Lecture 24: Friday, March 7 th, 2003.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
NPC.
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
CSC 413/513: Intro to Algorithms
COMPLEXITY. Satisfiability(SAT) problem Conjunctive normal form(CNF): Let S be a Boolean expression in CNF. That is, S is the product(and) of several.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
Given this 3-SAT problem: (x1 or x2 or x3) AND (¬x1 or ¬x2 or ¬x2) AND (¬x3 or ¬x1 or x2) 1. Draw the graph that you would use if you want to solve this.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
Approximation Algorithms based on linear programming.
COMPLEXITY. Satisfiability(SAT) problem Conjunctive normal form(CNF): Let S be a Boolean expression in CNF. That is, S is the product(and) of several.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
CSE 332: NP Completeness, Part II Richard Anderson Spring 2016.
Approximation algorithms
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
P & NP.
Approximation algorithms
Hardness Of Approximation
Topics in Algorithms 2005 Max Cuts
Instructor: Aaron Roth
Presentation transcript:

Instructor: Shengyu Zhang 1

Optimization Very often we need to solve an optimization problem.  Maximize the utility/payoff/gain/…  Minimize the cost/penalty/loss/… Many optimization problems are NP-complete  No polynomial algorithms are known, and most likely, they don’t exist.  More details in the previous lecture. Approximation: get an approximately good solution. 2

Example 1: A simple approximation algorithm for 3SAT 3

SAT 4

Hard 3SAT is known as an NP-complete problem.  Very hard: no polynomial algorithm is known.  Conjecture: no polynomial algorithm exists.  If a polynomial algorithm exists for 3SAT, then polynomial algorithms exist for all NP problems. More details in last lecture. 5

7/8-approximation of 3SAT Since 3SAT appears too hard in its full generality, let’s aim lower. 3SAT asks whether there is an assignment satisfying all clauses. Can you find an assignment satisfying half of the clauses? Let’s run an example where  you give an input instance  you give a solution! 6

Observation 7

Why? 8

Formally - algorithm 9

Formally - analysis 10

11

Success probability of one assignment 12

Getting a Las Vegas algorithm 13

Example 2: Approximation algorithm for Vertex Cover 14

Vertex Cover: Use vertex to cover edges 15

NP-complete  So it’s (almost) impossible to find the minimum vertex cover in polynomial time. But there is a polynomial time algorithm that can find a vertex cover of size at most twice of that of minimum vertex cover. 16

IP formulation 17

IP formulation, continued. 18

LP relaxation 19

Relaxation 20

Two key issues 21

Issue 1: Construct a vertex cover from a solution of LP 22

Issue 1, continued 23

Issue 2: What can we say about the newly constructed vertex cover? 24

25

Obtaining an exact algorithm! 26

st-Min-Cut 27

IP formulation 28

Modification 29

30

IP 31

32

We prove this by randomized rounding 33

Rounding algorithm 34

35

36

37

Summary Many optimization problems are NP-complete. Approximation algorithms aim to find almost optimal solution. An important tool to design approximation algorithms is LP. 38

Appendix: Las Vegas  Monte Carlo 39

Las Vegas  Monte Carlo 40

41

Make-up class Topic: online algorithms.  The input is given as a sequence. Venue: ERB 713. Time: 2:30-5:15pm, April 17 (this Friday). Tutorial follows at 5:30pm, same classroom. Not required in exam. 42