+ All Categories
Home > Documents > P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla...

P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla...

Date post: 19-Dec-2015
Category:
View: 217 times
Download: 1 times
Share this document with a friend
Popular Tags:
49
P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010
Transcript
Page 1: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

P-Center & The Power of Graphs

A part of the facility location problem set

By Kiril Yershov and Alla Segal

For Geometric Optimizations courseFall 2010

Page 2: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

The P-Center problemGiven n cities and the distances

between all pairs of cities, we aim to choose p cities as centers so that the furthest distance of a city from a center is minimized.

A problem from the facility location problems set.

Page 3: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

What is facility locating?

‘GOOD’

SERVICE

Client needs this kind of service.

Facility provides some kind of

service.

Page 4: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Location problems in most general form can be stated as follows: a set of clients originates demands for some kind

of goods or services. the demands of the customers must be supplied

by one or more facilities. the decision process must establish where to

locate the facilities. issues like cost reduction, demand capture,

equitable service supply, fast response time etc drive the selection of facility placement.

Page 5: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

The basic elements of location models:

a universe, U, from which a set C of client input positions is selected,

a distance metric, d: U x U → R+, defined over the universe R+,

an integer, p ≥ 1, denoting the number of facilities to be located, and

an optimization function g that takes as input C a set of client positions and p facility positions and returns a function of their distances as measured by the metric d.

Page 6: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Problem statement

• Select a set F of p facility positions in universe U that minimizes g(F,C).

Page 7: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Models of the universe of clients and facilities

• Continuous space

Universe is defined as a region, such that clients and facilities may be placed anywhere within the continuum, and the number of possible locations is uncountably infinite.

Page 8: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

• Discrete space

Universe is defined by a discrete set of predefined positions.

• Network space

Universe is defined by an undirected weighted graph. Client positions are given by the vertices. Facilities may be located anywhere on the graph.

Models of the universe of clients and facilities

Page 9: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Where should the radio tower be located?

• Tower may be positioned anywhere – (continuous)

• Tower may be positioned in some available slots – (discrete)

• Tower may be located on the roadside – (network)

Page 10: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Distance metric

Distance metric between two elements of the universe further differentiates between specific problems

• Euclidean, Manhattan, etc.

• Network distance

Page 11: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

P-Centers:Optimization function is maximum

The objective function is the most significant characterization of a facility location problem.

• p-center problem

Given a universe U, a set of points C, a metric d, and a positive integer p, a p-center of C is a set of p points F of the universe U that minimizes

maxjεC {miniεF dij}.

Page 12: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

p-centerP=2

Page 13: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

p-centerP=2

Page 14: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Applications of p-center (1/2)

Find appropriate location of branch offices.◦ It could be cost-effective if the branch offices place

as close as possible to any offices.

Page 15: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

3-center

Euclidean p-center

Page 16: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

ReminderNP – “nondeterministic polynomial time”NP-Problem is a problem that its possible

solution can be verified in polynomial time.

NP-Hard Problem is at least as hard as the hardest problems in NP.

NP-Complete problem is both NP and NP-Hard.

Page 17: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Summary of known complexities

Time complexities of algorithmic solutions to the Euclidean p-center problem

• Drezner 1984, Hoffmann 2005 (arbitrary p and d = 1)

• Megiddo 1983 (p=1, d=2), Linear programming.

• Agarwal et al 1993, Chazelle et al. 1995 (p = 1 and d fixed)

• Chan 1999 (p=2, d=2)

• Agarwal and Sharir 1998 (p=2, d arbitrary)

• Agarwal and Procopuic 1998 (p fixed, d arbitrary)

Page 18: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

P-Center is NP-HardKariv and Hakimi proved in ‘79 that

p-center problem is NP-Hard.

We will show a stronger claim: P-center best possible approximation is of factor 2.

Page 19: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

ApproximationPTAS: a C-approximation, where C=1+e

for any e>0We saw some problems with PTAS.

Does every problem has a PTAS?

Page 20: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Best Possible ApproximationA polynomial c-approximation algorithm

is called “Best Possible” if there is no algorithm with a better approximation value.

Formally: c-approximation is best possible if the problem of approximation within c-e is NP-Complete for any e>0, but that limit can be reached in polynomial time.

Page 21: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Best Possible ApproximationSuch best possible results were found

only for bottleneck problems.

Page 22: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Bottleneck ProblemsThe solution has some value that needs

to be minimized or maximized.The value of the solution is the weight of

one of the edges of the graph.We can add one smallest edge at a time

and examine the resulting graph for the required condition

Page 23: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

P-Center: Factor 2 is best possibleLEMMA: The problem of approximating

P-Center (with triangle inequality) within a factor of (2-e) is NP-Complete for any e>0.

Proof: By reduction from the dominating set problem.

Page 24: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Factor 2 is best possible - ProofDominating set problem:

◦To determine whether in a given graph there is a set of vertices DS of size ≤ P that “dominates” all vertices, i.e. such that all vertices are in DS or adjacent to DS.

◦ It is well known and proven that Dominating Set is NP-Hard.

Page 25: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Factor 2 is best possible - ProofReduction:

◦Given a Dominating set problem G=(V,E), we construct a complete graph with the following weights: w(e) = 1 if e is from E w(e) = 2 if e is not from E

◦ In this complete graph the existence of p-center is equivalent to the existence of a dominating set of size ≤ p in G.

Page 26: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

INTERMISSION

Page 27: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Metric p-center Input: G=(V,E) complete

undirected graph with edge costs satisfying the triangle inequality

For any set S V and a vertex v, define connect(v,S): cost of cheapest edge from v to a

vertex in S

Output: S V with |S| = p that minimizes max_v{connect(v,S)}

u v

x w

),(),(),(

,,

wvcvucwuc

Vwvu

Triangle InequalityCost Function Satisfies

3 3

4

5

5

Page 28: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

A 2-approximation algorithmThe value of the solution is the weight of one of

the edges of the graph.

Sort the edges in nondecreasing coste1, e2, …, em

Page 29: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Approach

Let Gi be the subgraph obtained by deleting all edges that are costlier than ei from G

5

6 8 9

5

46 8

5

46

46

44

G

5

46

7

8 9

Page 30: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Dominating set

a

b c

d e

a

b c

d e

a

b c

d e

a

b c

d e

a

b c

d e

Input

Page 31: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Equivalence between…p-center

◦ Any weight of edge between a vertex and some chosen vertex is not more than OPT.

Dominating set of Gi

◦ Any vertex is connected to some chosen vertex by a edge with weight less or equal than OPT.

4 5

5 4

6

7

9 8

8

6

a

b c

d e

4

5 4

a

b c

d e

cost (ei*) = OPT.

Page 32: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Crucial observationIf OPT = cost(ei) for some iThen

◦Gi must have a dominating set of size pOf course, we don’t know how to

compute dominating sets optimallyBut we can compute a lower bound on

OPT and utilize this lower bound to test Gi

Page 33: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Power of GraphsA major technique for finding best possible

approximations for bottleneck problems.Given a graph G=(V,E)the square graph G2=(V,E2)E2 is the set of all edges between vertices

that have a path of length 1 or 2 between them.

Weight is set accordingly.Gt is similar with edges between vertices

that have a path of length up to t.

Page 34: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

LemmaGiven a graph H, let H^2 denote a graph

containing an edge (u,v) whenever H has a path of length 2 between u and v

Given a graph H, let I be an independent set in H^2. Then|I| dom(H) = size of the minimum dominating

set in H

Page 35: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Square of a graph

H H2

H’ H’2

H’’ H’’2

Page 36: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

ProofLet D be the dominating set in HH contains |D| starsEach of these stars will

be a clique in H^2Any independent set can pick at most one

vertex from each clique

H D star clique

Page 37: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

p-center algorithmConstruct G1^2, G2^2, …, Gm^2Compute a maximal independent set Mi

for each Gi^2Find the smallest index i such that

|Mi| pCall this index jReturn Mj

Page 38: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Algorithm

Input: graph G, pos. int. p.

1. Construct G12, …,

Gm2.

2. Find a maximal independent set Mi

for each Gi2.

3. Find the smallest index j s.t. |Mi| ≦ p.

4. Return Mj.G

5

46

7

8 9

777

5

46 8 9

5

46 8

5

46

5

46

5

44

Page 39: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

AlgorithmInput: graph G, pos.

int. p.1. Construct G1

2, …, Gm

2.2. Find a maximal

independent set Mi

for each Gi2.

3. Find the smallest index j s.t. |Mj| ≦ p.

4. Return Mj. G

5

46

7

8 9

777

5

46 8 9

5

46 8

5

46

5

46

5

44

p=2

Page 40: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Analysiscost(ej) OPT

◦ej : index chosen by the algorithm◦OPT: Cost incurred by the optimum p-center

solutionProof:

◦For all i < j, we have |Mi| > p◦But then dom(Gi) |Mi| > p◦So OPT is more than cost(ei)

Page 41: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

2 approximation proofFirst observe that every maximal

independent set is also a dominating set◦Suppose not. Then there must be a non-

dominated vertex. This vertex can be added to the independent set contradicting maximality

So, our independent set in Gi^2 is also a dominating set in Gi^2

But not necessarily in Gi. However,

Page 42: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

2 approximation proofDominating set = set of centers of stars in Gi

2.

Gi2 Gi

Some edgesdoes notappear in Gi.

The edgeexists in Gi

2.

In Gi, these twovertices are connected with a path length=2.

Gi2

Page 43: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

But what is the cost?Suppose u is a vertex in Mj and v is

adjacent to udistance(u,v) <= 2cost(ej) <= 2*OPT

◦by triangle inequality

Conclusion: Cost of our solution is at most twice the cost of optimal solution.

Page 44: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Weighted p-center

p =2

5 4

6

9 8

6a b

c d

5 4

6

9 8

6a b

c d

5 4

6

9 8

6a b

c d 5 4

6

9 8

6a b

c d

10 20

10 105 4

6

9 8

6a b

c d

5 4

6

9 8

6a b

c d

W = 30.

p-center Weighted p-center

Weightson vertices

Page 45: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Weighted p-centerWeighted p-center is a generalization of

p-center.

p =25 4

6

9 8

6a b

c d

5 4

6

9 8

6a b

c d

5 4

6

9 8

6a b

c d

5 4

6

9 8

6a b

c d

1 1

1 15 4

6

9 8

6a b

c dW = 2.

5 4

6

9 8

6a b

c d

Weighted p-center

Page 46: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Not exactly the same p-center

◦# vertices in an independent set in H2 # vertices ≦in a minimal dominating set of H

Weighted p-center◦Sum of weights of vertices in an independent set in

H2 Sum of weights of vertices in a minimal ≦dominating set of H

?

HH2

10 10

20 30

10

30

10

20

Page 47: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Adjacent vertices with min. weights(u): vertex adjacent to u in H with the

minimum weight.◦u can be s(u).◦Not in H2.

a b

c d

15 20

10 25

s(a)=a,

s(b)=a,

s(c)=c,

s(d)=c.

H

a b

c d

15 20

10 25

H2

Page 48: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Now the approach is similarCan be proved that weight(I) <= weight(D).

Weight(I) = {s(u)|u in I}, I is for H^2 Weight(D) = sum of weights of nodes in D. D is for H

1. Construct G12, …, Gm

2. 2. Compute a maximal independent set, Mi , in each

graph Gi2.

3. Si={si(u): u belongs to Mi}4. Find the minimum index j s.t. w(Si) <= W.5. Return Sj.GIVES 3 APPROXIMATION

Page 49: P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.

Questions?


Recommended