250 likes | 393 Views
Reconnect ‘04 LP-Based Approximation Algorithms. Cynthia Phillips Sandia National Laboratories. Linear Programming (LP) Relaxation-Based Approximation. Variables can take rational values (relax integrality constraints) Efficiently solvable: gives lower bound on optimal IP solution
E N D
Reconnect ‘04LP-Based Approximation Algorithms Cynthia Phillips Sandia National Laboratories
Linear Programming (LP) Relaxation-Based Approximation • Variables can take rational values (relax integrality constraints) • Efficiently solvable: gives lower bound on optimal IP solution • Common technique: • Use structural information from LP solution to find feasible IP solution • Bound quality using LP bound • Integrality gap = (best IP solution)/(best LP solution) • This technique cannot prove anything better than integrality gap
Integer Program (IP) for capacitated network design A simple IP for capacitated network design: Where d(C) is the maximum demand di for any pair that crosses cut C xe = 1 if edge e is selected
Finding An Approximate Solution Let Set of edges at least half selected by LP • Select all these edges • Increases cost (for A) by factor of 2 • Now much meet demand D(A) = D - u(A) with rest of edges
Finding an Approximate Solutions • Sort edge by ue Consider the three cases
Finding an Approximate Solution xe = q/p rational r is least common multiple of denominators so rxe integral for all e Make 2rxe “copies” of xe (convex multipliers will be 1/r)
e2 e2 e3 e3 e1 e1 e1 e1 e1 e1 e2 e2 Approximate solution for knapsack (gap 2) • 2rxe copies of edge e, sorted by capacity • Place in r buckets, round robin • Each bucket will be a solution Si • No edge in any solution twice
All buckets are Feasible ek4 ek2 e1 < ek3 ek1 < First Bucket (biggest) Last Bucket (smallest)
All Buckets Feasible Suppose We have So for all buckets From total capacity: Contradicts KC inequality
Separation Only have to satisfy KC inequality for Add these cuts if violated till we get an LP solution where KC inequality holds for it’s A.
e2 e2 e3 e3 e1 e1 e1 e1 e1 e1 e2 e2 Polynomial Time Really only m+1 distinct solutions
A Scheduling Example Given n jobs J1, J2, …, Jn Job Ji has length pi, weight wi Precedence constraints: mean Jimust finish before Jj starts No preemption, one machine Cj= completion time of job Jj Goal: minimize NP-complete. We’ll get a 4-approximation
Integer Programming Formulation Subject to
Constraint: One Job at a Time Consider all (job, finish time) pairs that would run over (t-1, t] T-pj t-1 t t+1 t+2 t+pj-1 ... t-1
Precedence Constraints If job Jk finishes by time t + pk, then job Jjmust finish by time t
Fractional Schedule x* Fractional Completion Time: Midpoint: min t* such that
Approximation Algorithm • Solve LP • Compute midpoints for all jobs • Order by midpoints
Approximate Schedule is feasible • No preemption • One job at a time • Precedence constraints Midpoint of Jj < Midpoint of Jk
Proof of Quality Road Map • Relate Cj to LP values Renumber jobs by midpoint: We’ll show
Upper Bound on Completion Times t t-pj • At time tj* fractional schedule has done pj/2 work. • Since tk* tj* for k<j, schedule has done pk/2 work on Jk. • One unit of work/time unit • But by construction xjt
Lower Bound on LP values • By definition: So
Proof of Quality Therefore
Comments • Can create alternative schedules using point tj • LP-based approximation algorithms can give feasible solutions in branch and bound • Other LP-based approximation algorithms for scheduling problems are based on matching/assignment