instructor neelima gupta [email protected]. table of contents lp –rounding dual fitting...

61
Instructor Neelima Gupta [email protected]

Upload: maximillian-wheeler

Post on 19-Dec-2015

224 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

InstructorNeelima Gupta

[email protected]

Page 2: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality
Page 3: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Table of ContentsLp –rounding

Dual Fitting

LP-Duality

Page 4: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Linear Programming ProblemA linear programming (LP) problem is an optimization

problem in which we minimize or maximize a linear objective function subject to a given set of linear constraints.

Example:Minimize 3x1 − 5x2 + + 3x3 + 2x4 subject to:

3x1 + 4x2 = 6−x3 + 2x1 − x2 ≥ 22x5 ≤ −3.5x3 + .5x4 = .8xi ≥ 0 for all i

Page 5: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Feasible SolutionA feasible solution to a linear program is a

solution that satisfies all constraints.

Optimal SolutionAn optimal solution to a linear program is a

feasible solution with the largest(smallest) objective function value for a maximization(minimization) problem.

Solutions

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 6: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Many optimization problems involve selecting a subset of a given set of elements.Examples:A vertex cover is a subset of vertices.A spanning tree is really a subset of edges.A knapsack solution is a subset of items.

Can be formulated as LPs with integrality constraints.

Page 7: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Integer ProgramAn Integer Program (IP) is an LP with Integrality

Constraints

Integrality Constraints: Some or all the variables are constrained to be integers.

Page 8: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

LPs can be solved efficiently (polynomially but slowly).IPs generally cannot be solved efficiently (it is NP hard). Some

specific IPs can be solved efficiently. Actually, their LP optimal is guaranteed to be integral.

Solving Linear/Integer Programming Problems

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 9: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Using Indicator Variables

Many selection problems can be formulated as IPs using indicator variables (or 0-1 variables).An indicator variable is defined for each element . A value of 1 indicating the selection of the element and a value of 0 indicating otherwise.

Page 10: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

vertex cover Set Cover Knapsack

Few Examples are :

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 11: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Example: Unweighted Vertex CoverVariables: {xv | v V }.∈

The IP:

Minimize ∑ xv

s.t.

xu + xv ≥ 1 (u, v) E,∀ ∈

xv {0, 1} v V.∈ ∀ ∈

Page 12: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Example: KnapsackLet the item names be {1, . . . , n}.Variables: {xi | 1 ≤ i ≤ n}.

The IP:

Minimize ∑i cixi

s.t.

∑i sixi ≤ K,

xi {0, 1} 1 ≤ i ≤ n.∈ ∀

Page 13: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Solving Linear/Integer Programming Problems

LPs can be solved efficiently (polynomially but slowly).IPs generally cannot be solved efficiently (it is NP hard).

Some specific IPs can be solved efficiently. Actually, their LP optimal is guaranteed to be integral.

Page 14: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

LP Relaxation (Drop the integrality constraint)Example: Unweighted Vertex CoverThe IP:

Minimize ∑v xv

s.t.

xu + xv ≥ 1 (u, v) E,∀ ∈

xv {0, 1} v V∈ ∀ ∈ .

The LP relaxation:Minimize ∑v xv

s.t.

xu + xv ≥ 1 (u, v) E,∀ ∈

xv >= 0 v V∀ ∈ .

Page 15: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Variables: {xv | v V }.∈The IP:

Min ∑Cv xv

where Cv : cost associated with vertex

xv : indicator variable

s.t: xu + xv ≥ 1 (u, v) E∀ ∈

xv {0, 1} ∈ v V∀ ∈

Example: Weighted Vertex Cover

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 16: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Example: Weighted Vertex CoverThe IP:

Min ∑Cv xv

s.t: xu + xv ≥ 1 (u, v) E ∀ ∈

xv {0, 1} ∈ v V∀ ∈

The LP relaxation: Min ∑Cv xv

s.t: xu + xv ≥ 1 (u, v) E∀ ∈

xv ≥ 0 v V∀ ∈

LP Relaxation (Drop the integrality constraint)

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 17: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality
Page 18: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

If xv ≥ ½, round it up to 1

Else round it down to 0.

Here xv is the solution obtained from LP E.g:

LP: ¼ c1 + ½ c2 + ¾ c3 + 4∕5 c4

IP : c2 + c3 + c4

LP rounding

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 19: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Let (u,v) ∈ E Since the solution of LP is feasible, values of xv , v ∈ V, satisfy

xu + xv ≥ 1 (1)

⇒ atleast one of xu and xv ≥ ½

Assume x’u and x’v be the solutions obtained after rounding, then at least one of them must be 1, i.e.

x’u + x’v ≥ 1

So the solution, obtained after rounding, is feasible.

Claim 1: Solution Obtained is feasible

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 20: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

According to the strategy some of the variables have been increased to a maximum of double & some have been reduced to 0, i.e Cv’ <= 2Cv.

Claim 2: C(S) ≤ 2LOPT

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 21: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

So,C(S): cost of solution obtained by IP

C(S) ≤ ∑v’ Cv’ xv’

≤ 2 ∑v Cv xv ( x’v ≤ 2* Xv )

= 2 LPOPT

Hence claim 2 follows

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 22: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

A finite set (universe) U of n elements, U= {e1, e2,…, en}, a collection of subsets of U i.e. S1, S2,

…., Sk

with some cost, select a minimum cost collection of these sets that covers all elements of U.

Set Cover Problem

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 23: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

IP:IP:• Indicator variable xs, xs ∈ {0,1}

xs =0 if set S is not picked

xs =1 if set S is picked

Min ∑s Cs xs

s.t.∑s:e belongs to S xs ≥ 1 ∀ e ∈ U

xs = {0,1}

LP Relaxation:LP Relaxation:

Min ∑s Cs xs

s.t.∑s:e belongs to S xs ≥ 1 ∀ e ∈ U

xs > 0Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 24: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Let f denote the maximum frequency of any element in U Si

Find an optimal solution to LP-Relaxation

xs >1/f round it to 1

xs <1/f discard the set, i.e. round it down to 0.

LP rounding for SC

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 25: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Claim 1: solution is feasibleClaim 2: It gives factor f approximation

Claims

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 26: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Let, ei ∈ U , 1≤i≤n

S be the collection of subsets of U em : 1<m <n belongs to l subsets of S where 1<l<k

Since the solution of LP is feasible i.e. values of xs s ∈ S obtained satisfies xs1

+ xs2 + xs3

+ ….+ xsl >1 (1)

⇒ atleast one of xs1, xs2, xs3,…., xl >1/f

⇒ x’s1 + x’s2 + x’s3 +….+ x’l> 1

Where x’si is the solution obtained after rounding. Thus it is feasible.

Claim 1: Solution is feasible

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 27: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

For each set s ∈ Collection of picked sets(S), xs has been increased by a factor of atmost f.

Let C(s): Cost of our solution

Therefore,

C(S) ≤ ∑s Cs x’s s ∀ ∈ S≤ f ∑s Cs xs ( x’s ≤ f* xs)= f LPOPT

Hence it is a factor ’f’ approximation.Note: f factor could be large. Later we’ll see a

technique of rounding that gives O(log n) factor.

Claim 2: Factor f approximation

Thanks to Bhavya Dhingra(06),Garvita Sharma(09),Archikana Biswas(05)

Page 28: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality
Page 29: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Linear Programming - ExampleMinimize 8x1 + 5x2 + 5x3 + 2x4 subject to:

3x1 + 4x2 ≥ 6

3x2 + x3 + x4 ≥ 5

xi ≥ 0 for all i

x = (2, 1,0, 3) is a feasible solution. 8*2 + 5*1 + 2*3 = 27 is an upper bound.

Page 30: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

What is the Lower Bound?Minimize 8x1 + 5x2 + 5x3 + 2x4 subject to:

3x1 + 4x2 ≥ 6

3x2 + x3 + x4 ≥ 5

xi ≥ 0 for all i

LB: 8x1 + 5x2 + 5x3 + 2x4 ≥ 3x1 + 4x2 ≥ 6

Better LB: 8x1 + 5x2 + 5x3 + 2x4 ≥ (3x1 + 4x2 ) + (3x2 + x3 + x4) ≥ 6+5 = 11

Page 31: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

How to compute a good LBMinimize 8x1 + 5x2 + 5x3 + 2x4 subject to:

3x1 + 4x2 ≥ 6 ……………….y1

3x2 + x3 + x4 ≥ 5……………y2

xi ≥ 0 for all i

Assign a non-negative coefficient yi to every inequality such that8x1 + 5x2 + 5x3 + 2x4 ≥ y1 (3x1 + 4x2 ) + y2(3x2 + x3 + x4 )

Then, LHS ≥ 6y1 + 5y2.

We are interested in finding yi’s such that RHS is maximum. This leads to our dual problem.

Page 32: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

The corresponding dual for the given example will be:

max 6y1 + 5y2

such that,3y1 < 8

4y1 + 3y2 < 5

y1 < 5

y2 < 2

and, yi > 0 for all i

Thanks to Divya Narang(8), Gautam Pahuja(10), Harshi Verma(11), Monika Bisla(14)

Page 33: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Weak Duality TheoremTheorem: If x and y are feasible then,

>

Proof: > = >

n

1j=

jj xc n

1=i

ii y b

n

1j=

jj xc j

n

j

x)y a(m

1=i

iji,

1

i

m

i

y) xa(n

1j=

jji,

1

m

1=i

ii y b

Thanks to Divya Narang(8), Gautam Pahuja(10), Harshi Verma(11), Monika Bisla(14)

Page 34: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Set Cover

xs is 1 iff set S in included in the cover.

The Primal :

Objective : min ∑ Cs xs

s.t > 1 U

xs = {0,1}

LP relaxation: xs > 0

eSeS

sx:

Thanks to Divya Narang(8), Gautam Pahuja(10), Harshi Verma(11), Monika Bisla(14)

Page 35: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Introduce an indicator variable ye for each of the constraints in primal.The Dual :

objective: max s.t < CSi

for i

= 1 to k

iSee

ey:

iSee

ey:

Thanks to Divya Narang(8), Gautam Pahuja(10), Harshi Verma(11), Monika Bisla(14)

Page 36: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Example S = { x, y, z, w}S1 = { x, y}

S2 = { y, z}

S3 = { x, w, y}

Let xs1 , xs2 , xs3 be an indicator variable for S1 ,

S2 , S3 respectively.

Let Cs1 , Cs2 , Cs3 is the cost of S1 , S2 , S3

respectively.Thanks to Divya Narang(8), Gautam Pahuja(10), Harshi Verma(11), Monika Bisla(14)

Page 37: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

PrimalMin : Cs1

xs1 + Cs2 x2 + Cs3 x3

Subject toxs1

+ xs3 > 1 (yx)

xs1 + xs2

+ xs3 > 1 (yy)

xs2 > 1 (yz)

xs3 > 1 (yw)

xs1, xs2, xs3 > 0

Thanks to Divya Narang(8), Gautam Pahuja(10), Harshi Verma(11), Monika Bisla(14)

Page 38: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

DualMax: yx + yy + yz + yw

Subject to

yx + yy < Cs1

yy + yz < Cs2

yx + yy + yw < Cs3

yx , yy , yz , yw > 0

Thanks to Divya Narang(8), Gautam Pahuja(10), Harshi Verma(11), Monika Bisla(14)

Page 39: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

From set cover via lp

Page 40: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality
Page 41: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Complementary Slackness Conditions

Page 42: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Relaxed Complementary Slackness Conditions

Page 43: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Example: Weighted Vertex CoverPrimal:Min ∑Cv xv

s.t: xu + xv ≥ 1 (u, v) E∀ ∈

xv {0, 1} ∈ v V∀ ∈

Dual:Max ∑ye

s.t:

∑e:e is incident on v ye < Cv v V∀ ∈

ye {0, 1} ∈ e E∀ ∈

Page 44: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Primal Dual Schema 1

U = empty, y = 0For each edge e = (u, v)

ye = min {c(u) − ∑e′:u∈e′ ye′ , c(v) − ∑e′:v∈e′ ye′ }

U = U union argmin {c(u) − ∑e′:u∈e′ ye′ , c(v) − ∑e

′:v∈e′ ye′ }

Output U

Page 45: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

5

4

3

2 31

3

2

7

Thanks to Neha& Neha Katyal

Page 46: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

5

4 (1)

3 (0)

Ye =3

For every edge pick minimum of two verticesMin{4,3} = 3 Set ye=3 U has vertex having red color

12 3

3

2

7

Thanks to Neha& Neha Katyal

Page 47: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

5(4)

4 (1) (0)

3(0)

Ye =1

Ye =3

Min{1,5} = 1 Set ye=1

12 3

3

2

7

Thanks to Neha& Neha Katyal

Page 48: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

5(4)

4 (1) (0)

3(0)

Ye =1

Ye =3

Min{1,0} = 0 Set ye=0Min{2,0} = 0 Set ye=0 Min{3,0} = 0 Set ye=0

Ye

=0Ye

=0Ye

=012 3

3

2

7

Thanks to Neha& Neha Katyal

Page 49: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

5(4)(0)

Ye =4

7(3) 4 (1) (0)

3(0)

Ye =1

Ye =3

Ye

=0Ye

=0Ye

=0

3

2

Thanks to Neha& Neha Katyal

Page 50: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Ye =0

3

4 (1) (0)

3(0)

Ye =1

Ye =3

Ye

=0Ye

=0Ye

=0

5(4)(0)

Ye =4

7(3)

2

Thanks to Neha& Neha Katyal

Page 51: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

2 (0)

3 (1)

Ye =2

4 (1) (0)

3(0)

Ye =1

Ye =3

Ye

=0Ye

=0Ye

=0

5(4)(0)

Ye =4

7(3)

Ye =0

Red-colored nodes form a vertex-cover

Thanks to Neha& Neha Katyal

Page 52: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

2 (0)

3 (1)

Ye =2

4 (1) (0)

3(0)

Ye =1

Ye =3

Ye

=0Ye

=0Ye

=0

5(4)(0)

Ye =4

7(3)

Ye =0

Red-colored nodes form a vertex-cover

Thanks to Neha& Neha Katyal

Page 53: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Solution is feasibleTrivial, since the algorithm runs for every

edge.

Let e= (u,v) be an edge.Suppose if possible, none of the xu and xv has

been set to 1 i.e constraints corresponding to u and v have not yet gone tight and we have a ye that can be raised. That means the algorithm has not yet completed.

Page 54: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Solution is 2 factorFor every xv > 0, dual constraint is tight

(trivially).

For every edge e = (u,v), 1 < xu + xv < 2

Hence, by relaxed CSC, cost of the solution is at most twice the OPT.

Page 55: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Primal-Dual Schema 2 (Ignore)Raise the dual variables uniformly until one

or more of the constraints become tight. Freeze the dual variables contributing to these constraints. Set the corresponding primal variable to 1.

If more than one constraint becomes tight, take them one by one in an arbitrary order.

Page 56: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

5

4

3

2 31

3

2

7

Thanks to Neha& Neha Katyal

Page 57: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

5

4

3 (1)

Ye =3/4

12 3

3

2

7

Ye =3/4Ye =3/4

Ye =3/4

Ye =3/4Ye =3/4

Ye =3/4Ye =3/4

Page 58: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

5

4

3 (1)

Ye =3/4

12 3

3

2

7

Ye =3/4Ye =3/4

Ye =3/4

Ye =3/2

Ye =3/2Ye =3/2

Ye =3/2

Page 59: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

5

4

3 (1)

Ye =3/4

12 3

3

2

7

Thanks to Neha& Neha Katyal

Ye =3/4Ye =3/4

Ye =3/4

Ye =3/2

Ye =7/4Ye =7/4

Ye =3/2

Page 60: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Solution is feasibleLet e= (u,v) be an edge.Suppose if possible, none of the xu and xv has

been set to 1 i.e consraints corresponding to u and v have not yet gone tight and we have a ye that can be raised. That means the algorithm has not yet completed.

Page 61: Instructor Neelima Gupta ngupta@cs.du.ac.in. Table of Contents Lp –rounding Dual Fitting LP-Duality

Solution is 2 factorFor every xv > 0, dual constraint is tight

(trivially).

For every edge e = (u,v), 1 < xu + xv < 2

Hence, by relaxed CSC, cost of the solution is at most twice the OPT.