CSE 6311 – Spring 2009 ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS Lecture Notes – March 12, 2009 ILP – Integer Linear Programming Approximate algorithm.

Slides:



Advertisements
Similar presentations
Analysis of Algorithms
Advertisements

Algorithm Design Methods (I) Fall 2003 CSE, POSTECH.
Algorithm Design Methods Spring 2007 CSE, POSTECH.
Integer Optimization Basic Concepts Integer Linear Program(ILP): A linear program except that some or all of the decision variables must have integer.
Instructor Neelima Gupta Table of Contents Approximation Algorithms.
1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
© 2003 Anita Lee-Post Linear Programming Part 2 By Anita Lee-Post.
ECE Longest Path dual 1 ECE 665 Spring 2005 ECE 665 Spring 2005 Computer Algorithms with Applications to VLSI CAD Linear Programming Duality – Longest.
Linear Programming (LP) (Chap.29)
1 Chapter 11 Here we see cases where the basic LP model can not be used.
GRAPH BALANCING. Scheduling on Unrelated Machines J1 J2 J3 J4 J5 M1 M2 M3.
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
Introduction to Algorithms
Modeling problems with Integer Linear Programming (ILP) Name: Chuan Huang.
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
Political problem Suppose a politician trying to win an election 3 types of areas --- urban, suburban, rural. Certain issues --- road, gun control, farm.
Contour Stitching Introduction to Algorithms Contour Stitching CSE 680 Prof. Roger Crawfis.
Instructor Neelima Gupta Table of Contents Lp –rounding Dual Fitting LP-Duality.
Approximation Algorithms
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.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
B-1 Operations Management Linear Programming Module B.
MS&E 211 Lecture 5: Basic Feasible Solutions; Shortest Paths Ashish Goel.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Graph Algorithms: Minimum.
Design Techniques for Approximation Algorithms and Approximation Classes.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
Example Question on Linear Program, Dual and NP-Complete Proof COT5405 Spring 11.
CSCI 3160 Design and Analysis of Algorithms Chengyu Lin.
CSE332: Data Abstractions Lecture 24.5: Interlude on Intractability Dan Grossman Spring 2012.
WOOD 492 MODELLING FOR DECISION SUPPORT
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Instructor Neelima Gupta Table of Contents Class NP Class NPC Approximation Algorithms.
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
Integer LP In-class Prob
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Lecture.6. Table of Contents Lp –rounding Dual Fitting LP-Duality.
Algorithm Design Methods 황승원 Fall 2011 CSE, POSTECH.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
CSE 6311 – Spring 2009 ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS Lecture Notes – Feb. 3, 2009 Instructor: Dr. Gautam Das notes by Walter Wilson.
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.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
1. For minimum vertex cover problem in the following graph give
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Introduction to NP Instructor: Neelima Gupta 1.
Approximation Algorithms based on linear programming.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
CS4234 Optimiz(s)ation Algorithms L2 – Linear Programming.
The Theory of NP-Completeness
ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS
Greedy Technique.
Algorithm Design Methods
Linear Programming (LP) (Chap.29)
Operations Management Linear Programming Module B
Linear Programming CISC4080, Computer Algorithms CIS, Fordham Univ.
Exam 2 LZW not on syllabus. 73% / 75%.
Richard Anderson Lecture 28 Coping with NP-Completeness
CISC5835, Algorithms for Big Data
Linear Programming Duality, Reductions, and Bipartite Matching
Chapter 5 Transportation, Assignment, and Transshipment Problems
Algorithm Design Methods
Algorithm Design Methods
The Theory of NP-Completeness
LINEARPROGRAMMING 4/26/2019 9:23 AM 4/26/2019 9:23 AM 1.
Richard Anderson Lecture 27 Survey of NP Complete Problems
CSE 417: Algorithms and Computational Complexity
Dominating Set By Eric Wengert.
ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS
Algorithm Design Methods
Presentation transcript:

CSE 6311 – Spring 2009 ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS Lecture Notes – March 12, 2009 ILP – Integer Linear Programming Approximate algorithm for ILP Instructor: Dr. Gautam Das notes by Walter Wilson

ILP – Integer Linear Programming set of integer variables linear constraints linear goal function (same as LP except vars are integers)

Integer Linear Programming Example Factory productmaterialprofit Product1w1 grams metal per unitp1 dollars per unit Product2w2 "p2 " Constraints: total # of products per day <= P total amount of material per day <= W Unknowns: x1 - # of units of Product1 x2 - " Product2 Goal function: maximize profit: x1 p1 + x2 p2 Constraint equations: x1 + x2 <= P x1 w1 + x2 w2 <= W x1 >= 0, x2 >= 0, x1,x2 integers!

ILP Example 2 – Shortest Paths Given weighted directed graph and start, end nodes s & f, find weight of shortest path from start to end. Letwj >= 0 be integer weight for each edge j ui >= 0 be weight of shortest path from s to node ui Consider shortest path from s to node v: s u1 u2 w1 w2 v u1 u2 Shortest path to v in terms of path to preceding node uk: v <= uk + wk (edge (uk,v) has weight wk) v >= 0 Goal: minimize f (shortest path to f)

ILP Decision Problem Is there a var asnmt s.t. goal =0, xi = 1 goal: minimize sum of xi -- xi == 1 means xi selected for vertex cover -- goal <= k means V.C. <= k

Approximation Algorithm for ILP Vertex Cover Algorithm: –Treat as LP problem Will get values 0.0 to 1.0 for vertices (VChypoth) –VChypoth <= VCopt – LP solution more optimal than ILP One possible algorithm: take vertices in decreasing order –Stop when cover achieved Simpler: round to 0 or 1 (.5 rounds up) –Is this a vertex cover? »Yes since sum of values for each edge >= 1 –Approximation bound: »VChypoth = sum of x's =.5 »(left vars round to 0, right round to 1) »VCapprox = sum of rounded vars <= 2 * unrounded »Thus: VCapprox <= 2 * VChypoth »Thus: VCapprox <= 2 * VCopt

Weighted Vertex Cover Graph with weighted nodes Find vertex cover that touches all edges but minimizes the sum of the weights ILP problem –Goal: sum i=1..n xi wi –How to do rounding? -- do same way –How to prove approximation ratio? VCapprox <= 2 VCopt