Computer Science Day 2013, May 31 12.15-13.00Distinguished Lecture: Andy Yao, Tsinghua University 13.15-13.30 Welcome and the 'Lecturer of the Year' award.

Slides:



Advertisements
Similar presentations
Approximation Algorithms
Advertisements

1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
CS774. Markov Random Field : Theory and Application Lecture 17 Kyomin Jung KAIST Nov
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Approximation Algoirthms: Semidefinite Programming Lecture 19: Mar 22.
Approximation Algorithms
Semidefinite Programming
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.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 21 Instructor: Paul Beame.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
1 Traveling Salesman Problem (TSP) Given n £ n positive distance matrix (d ij ) find permutation  on {0,1,2,..,n-1} minimizing  i=0 n-1 d  (i),  (i+1.
The Theory of NP-Completeness
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2006 Lecture 7 Monday, 4/3/06 Approximation Algorithms.
Time Complexity.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2009 Lecture 7 Tuesday, 4/7/09 Approximation Algorithms.
Distributed Combinatorial Optimization
1 Introduction to Approximation Algorithms Lecture 15: Mar 5.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
1 The Theory of NP-Completeness 2 NP P NPC NP: Non-deterministic Polynomial P: Polynomial NPC: Non-deterministic Polynomial Complete P=NP? X = P.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
1 Approximation Through Scaling Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
Private Approximation of Search Problems Amos Beimel Paz Carmi Kobbi Nissim Enav Weinreb (Technion)
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Approximation Algorithms These lecture slides are adapted from CLRS.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Unit 9: Coping with NP-Completeness
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
Non-Approximability Results. Summary -Gap technique -Examples: MINIMUM GRAPH COLORING, MINIMUM TSP, MINIMUM BIN PACKING -The PCP theorem -Application:
Linear Program Set Cover. Given a universe U of n elements, a collection of subsets of U, S = {S 1,…, S k }, and a cost function c: S → Q +. Find a minimum.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
1 Approximation algorithms Algorithms and Networks 2015/2016 Hans L. Bodlaender Johan M. M. van Rooij TexPoint fonts used in EMF. Read the TexPoint manual.
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
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Non-LP-Based Approximation Algorithms Fabrizio Grandoni IDSIA
Instructor: Shengyu Zhang 1. Optimization Very often we need to solve an optimization problem.  Maximize the utility/payoff/gain/…  Minimize the cost/penalty/loss/…
Approximation Algorithms based on linear programming.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2010 Lecture 7 Tuesday, 4/6/10 Approximation Algorithms 1.
Approximation algorithms
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
The Theory of NP-Completeness
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
More NP-Complete and NP-hard Problems
Richard Anderson Lecture 26 NP-Completeness
Optimization problems such as
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness Proofs
Richard Anderson Lecture 26 NP-Completeness
Hard Problems Introduction to NP
Approximation algorithms
Approximation Algorithms
Computability and Complexity
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
Approximation Algorithms
The Theory of NP-Completeness
Instructor: Aaron Roth
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Presentation transcript:

Computer Science Day 2013, May Distinguished Lecture: Andy Yao, Tsinghua University Welcome and the 'Lecturer of the Year' award Data-Intensive Systems (Ira Assent) Computer Graphics and Image Processing (Toshiya Hachisuka) Bioinformatics (Søren Besenbacher) Use, Design and Innovation (Morten Kyng) Ubiquitous Computing and Interaction (Kaj Grønbæk) Pause Mathematical Computer Science (Peter Bro Miltersen) Cryptography and Security (Claudio Orlandi) Semantics and Logic (Lars Birkedal) Programming Languages (Anders Møller) Algorithms and Data Structures (Lars Arge) Regnecentralen’s 1 year birthday party Large Auditorium, Incuba Science Park – Katrinebjerg

2 Approximation algorithms Given minimization problem (e.g. min vertex cover, TSP,…) and an efficient algorithm that always returns some feasible solution. The algorithm is said to have approximation ratio  if for all instances, cost(sol. found)/cost(optimal sol.) ≤ 

General design/analysis trick Our approximation algorithms often works by constructing some relaxation providing a lower bound and turning the relaxed solution into a feasible solution without increasing the cost too much. The LP relaxation of the ILP formulation of the problem is a natural choice. We may then round the optimal LP solution. 3

Not obvious that it will work…. 4

Min weight vertex cover Given an undirected graph G=(V,E) with non- negative weights w(v), find the minimum weight subset C ⊆ V that covers E. Min vertex cover is the case of w(v)=1 for all v. 5

ILP formulation Find (x v ) v ∈ V minimizing  w v x v so that x v ∈ Z 0 ≤ x v ≤1 For all (u,v) ∈ E, x u + x v ≥ 1. 6

LP relaxation Find (x v ) v ∈ V minimizing  w v x v so that x v ∈ R 0 ≤ x v ≤ 1 For all (u,v) ∈ E, x u + x v ≥ 1. 7

Relaxation and Rounding Solve LP relaxation. Round the optimal solution x* to an integer solution x: x v = 1 iff x*≥½. The rounded solution is a cover: If (u,v) ∈ E, then x* u + x*≥1 and hence at least one of x u and x v is set to 1. 8

Quality of solution found Let z* =  w v x v * be cost of optimal LP solution.  w v x v ≤ 2  w v x v *, as we only round up if x v * is bigger than ½. Since z* ≤ cost of optimal ILP solution, our algorithm has approximation ratio 2. 9

Relaxation and Rounding Relaxation and rounding is a very powerful scheme for getting approximate solutions to many NP-hard optimization problems. In addition to often giving non-trivial approximation ratios, it is known to be a very good heuristic, especially the randomized rounding version. Randomized rounding of x ∈ [0,1]: Round to 1 with probability x and 0 with probability 1-x. 10

Approximation algorithms Given maximization problem (e.g. MAXSAT, MAXCUT) and an efficient algorithm that always returns some feasible solution. The algorithm is said to have approximation ratio  if for all instances, cost(optimal sol.)/cost(sol. found) ≤  11

MAX-E3-SAT Given Boolean formula in CNF form with exactly three distinct literals per clause find an assignment satisfying as many clauses as possible. 12

Randomized algorithm Flip a fair coin for each variable. Assign the truth value of the variable according to the coin toss. Claim: The expected number of clauses satisfied is at least 7/8 m where m is the total number of clauses. We say that the algorithm has an expected approximation ratio of 8/7. 13

Analysis Let Y i be a random variable which is 1 if the i’th clause gets satisfied and 0 if not. Let Y be the total number of clauses satisfied. Pr[Y i =1] = 1 if the i’th clause contains some variable and its negation. Pr[Y i = 1] = 1 – (1/2) 3 = 7/8 if the i’th clause does not include a variable and its negation. E[Y i ] = Pr[Y i = 1] ≥7/8. E[Y] = E[  Y i ] =  E[Y i ]≥(7/8) m 14

Remarks It is possible to derandomize the algorithm, achieving a deterministic approximation algorithm with approximation ratio 8/7. Approximation ratio 8/7 -  is not possible for any constant  > 0 unless P=NP. Very hard to show (shown in 1997). 15

Min set cover Given set system S 1, S 2, …, S m ⊆ X, find smallest possible subsystem covering X. 16

Greedy algorithm for min set cover 17

Approximation Ratio Greedy-Set-Cover does not give a constant approximation ratio Even true for Greedy-Vertex-Cover! Quick analysis: Approximation ratio ln(n) Refined analysis: Approximation ratio H s where s is the size of the largest set and H s = 1/1 + 1/2 + 1/ /s is the s’th harmonic number. s may be small on concrete instances. H 3 = 11/6 < 2. 18

Approximation Schemes Some optimization problems can be approximated very well, with approximation ratio 1+ε for any ε>0. An approximation scheme takes an additional input, ε>0, and outputs a solution within 1+ε of optimal. 19

PTAS and FPTAS An approximation scheme is a Polynomial Time Approximation Scheme, if for every fixed ε>0, the algorithm runs in polynomial time in the input length n. An approximation scheme is a Fully Polynomial Time Approximation Scheme, if the algorithm runs in time polynomial in n and in 1/ε. 20

Knapsack problem Given n items with weights w 1,...,w n, values v 1,...,v n and weight limit W, fit items within weight limit maximizing total value. 21

FPTAS for Knapsack Exercise: We have a pseudo-polynomial time algorithm for Knapsack in time O(n 2 V), where V is largest value. We use this in step 4. 22

More Inapproximability Unless P=NP, we can not have approximation algorithms guaranteeing the following approximation ratios: ProblemRatio Vertex Cover1.36 Set Cover c ⋅ ln(n), for some c>0 TSPAny ratio Metric TSP220/219 23