Approximation Algorithms

Similar documents
Graph Theory and Optimization Approximation Algorithms

Approximation Algorithms

COT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748

6 Randomized rounding of semidefinite programs

/ Approximation Algorithms Lecturer: Michael Dinitz Topic: Linear Programming Date: 2/24/15 Scribe: Runze Tang

A List Heuristic for Vertex Cover

1 Unweighted Set Cover

val(y, I) α (9.0.2) α (9.0.3)

Fundamentals of Integer Programming

3 INTEGER LINEAR PROGRAMMING

CSE 417 Branch & Bound (pt 4) Branch & Bound

Algorithm and Complexity of Disjointed Connected Dominating Set Problem on Trees

Approximation Algorithms

11.1 Facility Location

ACO Comprehensive Exam October 12 and 13, Computability, Complexity and Algorithms

Practice Final Exam 2: Solutions

February 19, Integer programming. Outline. Problem formulation. Branch-andbound

Approximation Algorithms

6.842 Randomness and Computation September 25-27, Lecture 6 & 7. Definition 1 Interactive Proof Systems (IPS) [Goldwasser, Micali, Rackoff]

Solutions to Assignment# 4

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/27/18

Vertex Cover Approximations

Steiner Trees and Forests

The complement of PATH is in NL

MVE165/MMG630, Applied Optimization Lecture 8 Integer linear programming algorithms. Ann-Brith Strömberg

Lecture 7: Asymmetric K-Center

Algorithm Design and Analysis

2 Solving the Online Fractional Algorithm and Online Rounding Scheme

Network Design Foundations Fall 2011 Lecture 10

15-451/651: Design & Analysis of Algorithms November 4, 2015 Lecture #18 last changed: November 22, 2015

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/18/14

Lecture 7. s.t. e = (u,v) E x u + x v 1 (2) v V x v 0 (3)

5.3 Cutting plane methods and Gomory fractional cuts

Design and Analysis of Algorithms (V)

Linear Programming in Small Dimensions

Welcome to the course Algorithm Design

The Simplex Algorithm for LP, and an Open Problem

15-854: Approximations Algorithms Lecturer: Anupam Gupta Topic: Direct Rounding of LP Relaxations Date: 10/31/2005 Scribe: Varun Gupta

Design and Analysis of Algorithms (VII)

Approximation Algorithms

Linear Programming Duality and Algorithms

Chapter 10 Part 1: Reduction

PTAS for Matroid Matching

CSE 417 Network Flows (pt 4) Min Cost Flows

The k-center problem Approximation Algorithms 2009 Petros Potikas

The Design of Approximation Algorithms

Outline. CS38 Introduction to Algorithms. Approximation Algorithms. Optimization Problems. Set Cover. Set cover 5/29/2014. coping with intractibility

Primal-Dual Methods for Approximation Algorithms

Decision Problems. Observation: Many polynomial algorithms. Questions: Can we solve all problems in polynomial time? Answer: No, absolutely not.

Notes for Lecture 24

3 No-Wait Job Shops with Variable Processing Times

Outline. Column Generation: Cutting Stock A very applied method. Introduction to Column Generation. Given an LP problem

Fixed- Parameter Evolu2onary Algorithms

Column Generation: Cutting Stock

An O(log n/ log log n)-approximation Algorithm for the Asymmetric Traveling Salesman Problem

Repetition: Primal Dual for Set Cover

Recitation 13. Minimum Spanning Trees Announcements. SegmentLab has been released, and is due Friday, November 17. It s worth 135 points.

Approximation Basics

Approximation Algorithms

Mathematical and Algorithmic Foundations Linear Programming and Matchings

Improving network robustness

DM515 Spring 2011 Weekly Note 7

Lecture 2. 1 Introduction. 2 The Set Cover Problem. COMPSCI 632: Approximation Algorithms August 30, 2017

Graph Contraction. Graph Contraction CSE341T/CSE549T 10/20/2014. Lecture 14

Planning and Optimization

Linear and Integer Programming :Algorithms in the Real World. Related Optimization Problems. How important is optimization?

MVE165/MMG631 Linear and integer optimization with applications Lecture 9 Discrete optimization: theory and algorithms

1. Lecture notes on bipartite matching February 4th,

10. EXTENDING TRACTABILITY

Partha Sarathi Mandal

Approximation slides 1. An optimal polynomial algorithm for the Vertex Cover and matching in Bipartite graphs

4 Greedy Approximation for Set Cover

Approximation Algorithms: The Primal-Dual Method. My T. Thai

Topic: Local Search: Max-Cut, Facility Location Date: 2/13/2007

Combinatorial Optimization

AM 121: Intro to Optimization Models and Methods Fall 2017

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch]

Theorem 2.9: nearest addition algorithm

Clustering: Centroid-Based Partitioning

Questions? You are given the complete graph of Facebook. What questions would you ask? (What questions could we hope to answer?)

Methods and Models for Combinatorial Optimization Exact methods for the Traveling Salesman Problem

Algorithms for Euclidean TSP

Fixed-Parameter Evolutionary Algorithms and the Vertex Cover Problem

COMP Analysis of Algorithms & Data Structures

Randomized rounding of semidefinite programs and primal-dual method for integer linear programming. Reza Moosavi Dr. Saeedeh Parsaeefard Dec.

Copyright 2000, Kevin Wayne 1

Approximation Algorithms

arxiv: v2 [cs.ds] 25 Jan 2017

Practice Final Exam 1

THEORY OF LINEAR AND INTEGER PROGRAMMING

Integer Programming as Projection

10. EXTENDING TRACTABILITY

Integer Programming Theory

Greedy Approximations

Chapter 8 DOMINATING SETS

CS 372: Computational Geometry Lecture 10 Linear Programming in Fixed Dimension

TIM 206 Lecture Notes Integer Programming

Figure : Example Precedence Graph

Peer-to-peer clustering

Chapter 8 DOMINATING SETS

Transcription:

Approximation Algorithms Frédéric Giroire FG Simplex 1/11

Motivation Goal: Find good solutions for difficult problems (NP-hard). Be able to quantify the goodness of the given solution. Presentation of a technique to get approximation algorithms: fractional relaxation of integer linear programs. FG Simplex 2/11

Fractional Relaxation Reminder: Idea: Integer Linear Programs often hard to solve (NP-hard). Linear Programs (with real numbers) easier to solve (polynomial-time algorithms). 1- Relax the integrality constraints; 2- Solve the (fractional) linear program and then; 3- Round the solution to obtain an integral solution. FG Simplex 3/11

Set Cover Definition: An approximation algorithm produces in polynomial time a feasible solution whose objective function value is close to the optimal OPT, by close we mean within a guaranteed factor of the optimal. Example: a factor 2 approximation algorithm for the cardinality vertex cover problem, i.e. an algorithm that finds a cover of cost 2 OPT in time polynomial in V. FG Simplex 4/11

Set Cover Problem: 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 cost subcollection of S that covers all elements of U. Model numerous classical problems as special cases of set cover: vertex cover, minimum cost shortest path... Definition: The frequency of an element is the number of sets it is in. The frequency of the most frequent element is denoted by f. Various approximation algorithms for set cover achieve one of the two factors O(logn) or f. FG Simplex 5/11

Fractional relaxation Write a linear program to solve vertex cover. Var.: x S = 1 if S picked in C, x S = 0 otherwise Var.: 1 x S 0 min S S c(s)x S min S S c(s)x S s. t. S:e S x S 1 ( e U) x S {0,1} ( S S ) s. t. S:e S x S 1 ( e U) x S 0 ( S S ) FG Simplex 6/11

Fractional relaxation Write a linear program to solve vertex cover. Var.: x S = 1 if S picked in C, x S = 0 otherwise Var.: 1 x S 0 min S S c(s)x S min S S c(s)x S s. t. S:e S x S 1 ( e U) x S {0,1} ( S S ) s. t. S:e S x S 1 ( e U) x S 0 ( S S ) FG Simplex 6/11

Fractional relaxation Write a linear program to solve vertex cover. Var.: x S = 1 if S picked in C, x S = 0 otherwise Var.: 1 x S 0 min S S c(s)x S min S S c(s)x S s. t. S:e S x S 1 ( e U) x S {0,1} ( S S ) s. t. S:e S x S 1 ( e U) x S 0 ( S S ) FG Simplex 6/11

Fractional relaxation The (fractional) optimal solution of the relaxation is a lower bound of the optimal solution of the original integer linear program. Example in which a fractional set cover may be cheaper than the optimal integral set cover: Input: U = {e,f,g} and the specified sets S 1 = {e,f}, S 2 = {f,g}, S 3 = {e,g}, each of unit cost. An integral cover of cost 2 (must pick two of the sets). A fractional cover of cost 3/2 (each set picked to the extent of 1/2). FG Simplex 7/11

Fractional relaxation The (fractional) optimal solution of the relaxation is a lower bound of the optimal solution of the original integer linear program. Example in which a fractional set cover may be cheaper than the optimal integral set cover: Input: U = {e,f,g} and the specified sets S 1 = {e,f}, S 2 = {f,g}, S 3 = {e,g}, each of unit cost. An integral cover of cost 2 (must pick two of the sets). A fractional cover of cost 3/2 (each set picked to the extent of 1/2). FG Simplex 7/11

A simple rounding algorithm Algorithm: 1- Find an optimal solution to the LP-relaxation. 2- (Rounding) Pick all sets S for which x S 1/f in this solution. FG Simplex 8/11

Theorem: The algorithm achieves an approximation factor of f for the set cover problem. Proof: 1) All elements are covered. e is in at most f sets, thus one of this set must be picked to the extent of at least 1/f in the fractional cover. 2) The rounding process increases x S by a factor of at most f. Therefore, the cost of C is at most f times the cost of the fractional cover. OPT f OPT f OPT f FG Simplex 9/11

Theorem: The algorithm achieves an approximation factor of f for the set cover problem. Proof: 1) All elements are covered. e is in at most f sets, thus one of this set must be picked to the extent of at least 1/f in the fractional cover. 2) The rounding process increases x S by a factor of at most f. Therefore, the cost of C is at most f times the cost of the fractional cover. OPT f OPT f OPT f FG Simplex 9/11

Theorem: The algorithm achieves an approximation factor of f for the set cover problem. Proof: 1) All elements are covered. e is in at most f sets, thus one of this set must be picked to the extent of at least 1/f in the fractional cover. 2) The rounding process increases x S by a factor of at most f. Therefore, the cost of C is at most f times the cost of the fractional cover. OPT f OPT f OPT f FG Simplex 9/11

Randomized rounding Idea: View the optimal fractional solutions as probabilities. Algorithm: Flip coins with biases and round accordingly (S is in the cover with probability x S ). Repeat the rouding O(log n) times. This leads to an O(log n) factor randomized approximation algorithm. That is The set is covered with high probability. The cover has expected cost: O(log n)opt. FG Simplex 10/11

Take Aways Fractional relaxation is a method to obtain for some problems: Lower bounds on the optimal solution of an integer linear program (minimization). Remark: Used in Branch & Bound algorithms to cut branches. Polynomial approximation algorithms (with rounding). Complexity: Integer linear programs are often hard. (Fractional) linear programs are quicker to solve (polynomial time). FG Simplex 11/11