• Tidak ada hasil yang ditemukan

Graph, networks and design2

N/A
N/A
Protected

Academic year: 2017

Membagikan "Graph, networks and design2"

Copied!
7
0
0

Teks penuh

(1)

The Complexity of the Network

Design Problem

D. S. Johnson

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

Bell Laboratories Murray Hill, New Jersey

J.

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

K. Lenstra

Mathematisch Centrurn Amsterdam, The Netherlands A. H. G. Rinnooy Kan Erasmus University

Rotterdam, The Netherlands

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

ABSTRACT

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

I n the network design problem we are given a weighted un- We wish t o find a subgraph which connects a l l directed graph.

the original v e r t i c e s and minimizes the sum

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

of t h e shortest path weights between a l l v e r t e x pairs, subject t o a budget con-

s t r a i n t on the sum

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

of i t s edge weights. I n t h i s note Me estab- l i s h NP-completeness f o r t h e nekwork design problem, even f o r

the simple case where a l l edge weights are equal and the budget r e s t r i c t s the choice t o spanning t r e e s .

the development of enumerative optimization methods and of approximation algorithms, such as those described i n a recent paper by R. Dionne and M . Florian.

This r e s u l t j u s t i f i e s

INTRODUCTION

In the network design problem we are given a weighted un-

We wish to find a subgraph which connects all directed graph.

the original vertices and minimizes the sum of the shortest path weights between all vertex pairs, subject to a budget con- straint on the sum of its edge weights. In this note we estab- lish NP-completeness [7,81 for the network design problem. Briefly, this result implies that a polynomial-bounded method for its solution could be used to construct similar algorithms for a large number of combinatorial problems which are notorious for their computational intractability, such as the travelling salesman problem and the multicommodity network flow problem. Since none of these problems are known to be solvable in poly- nomial time, NF-completeness of the network design problem justifies the development of enumerative optimization methods and of approximation algorithms, such as those described by R. Dionne and M. Florian [ 2 ] .

Networks, Vol. 8 (1978) 279-285 0028-3045/78/0008-0279$01.00

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

(2)

280

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

JOHNSON, LENSTRA AND

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

RINNOOY KAN

For our purposes, we formulate the problem in the follow- ing way.

NETWORK DESIGN PROBLEM (NDP): Given an undirected graph

G =

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

(V,E), a weight function L: E + EJ,a budget B and a critericn threshold C (B,C ~lN),does there exist a sub-

graph G' = (V,E') of G with weight

1

L({i,j)) B

{it j )EE

'

and criterion value F(G')

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

5

C, where F(G') denotes the

sum of the weights of the shortest paths in G' between all vertex pairs?

By way of introduction to a quite involved NP-completeness proof for a simplified version of NDP, we shall first present a simple proof establishing NP-completeness for the general NDP.

Theorem

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

1:

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

NDP

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

is NP-compZete.

Proof: Consider the following problem.

KNAPSACK:

there exist a subset S C T = 11,.

.

.

,t3 such that

isS

Given positive integers t,al,

...,

a ,b, does

t

1

ai = b?

We will show that KNAPSACK is reducible to NDP, i.e., that for any instance of KNAPSACK an instance of NDP can be con- structed in polynomial-bounded time such that solving the in- stance of NDP solves the instance of KNAPSACK as well. The theorem then follows from the NP-completeness of KNAPSACK [71

and the fact that NDP belongs to

NP,

since any feasible subgraph can be recognized as such in polynomial time.

fine an instance of NDP

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

as follows:

Given any instance of KNAPSACK, we write A =

1

ai and de- iET
(3)

THE NETWORK DESIGN PROBLEM 281

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

KNAPSACK:

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

t =

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

4, al = 2 , a =

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

3 , a 3 - = 5, a

2 4 =

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

6 , b = 7 .

NDP: G & L :

q7-p

B = 39, C = 2 4 9 .

Fig. 1 Equivalent instances of KNAPSACK and NDP.

It is easily seen that any feasible NDP solution can be

*

assumed to contain a star graph G = (V,{{O,i>,{O,i'>: iET});

G

an edge {i, i' } to G

the criterion value by ai, since {i,i'} will appear only in

the shortest path between i and i'.

lows in a straightforward way.

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

0

*

has weight 2A = B-b and criterion value 4 t A = C+b. Adding

increases the weight by a and decreases

*

i

The equivalence now fol-

However, since KNAPSACK can be solved in O(tb) time [ l l

,

Theorem 1 does not exclude the existence of a similar pseudo-

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

pozynomiaz algorithm [41 for NDP; the above construction cru- cially depends on allowing arbitrary positive integers as edge weights and budget. As a stronger result, we shall now prove

that NDP is NP-complete even in the simple case where all edge weights are equal and the budget restricts the choice to span- ning trees.

SIMPLE NETWORK DESIGN PROBLEM (SNDP): NDP with

L({i,j)) = 1 for all {i,j) E E and B = IVI-1.

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

Theorem 2: SNDP i s NP-compZete.

Proof:

problem [3,61.

[image:3.504.104.359.82.285.2]
(4)

282

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

JOHNSON, LENSTRA

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

AND

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

RINNOOY KAN

We

of

EXACT 3-COVER:

3-element subsets of a set T =

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

{ T ~ ,

...,

T

there exist a subfamily S' C S of pairwise disjoint sets such that

u

U = T?

will show that EXACT 3-COVER is reducible to SNDP.

SNDP as follows:

Given a family S = Cu l,...,u

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

1

of

S

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

1 ,

does

3t

U E S '

Given any instance of EXACT 3-COVER, we define an instance

V = R

u

S

u

T,

R = {Po,P1,.

.

.

,P 1:

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

1,

r = Css + CST + CTT,

E = I{pi,p01: i = l ,

...,

rlu{Epo,ul: U E S I U { { U , T ~ : T E U E S ~ ,

+ 'ST 'TT'

c

=

cRR

+

CRS

+

CRT

+

css

2 2

where C = r

,

CRs = 2rs+s, C = 9rt+6t, Css = s -s,

'ST

RR RT

= 9st-6t, CTT = 18t2-12t.

Figure 2 illustrates this reduction. We will prove that EXACT 3-COVER has a solution if and only if G = (V,E) contains a spanning tree with criterion value at most C.

that G is connected, i . e . ,

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

We assume

u

u = T.

UES

SNDP : G:

C = 17656.

[image:4.504.65.451.202.638.2]
(5)

THE NETWORK DESIGN PROBLEM

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

283

Let G'

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

= (V,E') be some spanning tree of G and let F (GI)

PQ denote the sum of the weights of all shortest paths in G' be- tween vertex sets P and Q (P,QCV).

for all i = 1,.

.

-,re If { p ,a)

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

jf E' for some u

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

E S, then

We clearly have {pi,Po) EE'

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

0

F(G') > FRR(G')

+

FRS(G')

+

FRT(G')

?.

''RR + 'RS

+

2(r+l)

+

CRT

> c;

therefore, we may assume that

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

{ P ,U) E E' for all U E S. It

follows that in G' each vertex in T is adjacent to exactly one vertex in S. Straightforward calculations show that we now have

0

F (G') = C for P = R,S and Q =

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

R,S,T.

PQ PQ

Denoting the number of vertices in S being adjacent in G' to exactly h vertices in T by s (h=0,1,2,3), we have

h

(GI ) = 4 (3t (3t-1)/2) F~~

-

2 ] { { ~ , - r l I : T + T I , {{u,TI,{u,T~IIcE* for some u

e s I [

2

= (18t -6t)

-

(2s +6s3)

2

-

-

CTT

+

6(t-s3)

-

2s2.

if and only if s = t,

= 'TT 3

It is easily seen that FTT(G')

s

to F(G') < C, the second one to the existence of an EXACT

3-COVER solution. This completes the proof. 0

= s1 = 0, so = s-t. The first condition is now equivalent

2

Various related types of network design problems have been discussed in the literature; an excellent survey has been given by R. T. Wong [lo]. For instance, the problems dealt with by A. J. Scott [9] are generalizations of NDP and hence NP-complete.

Another variation has been introduced by T. C. Hu 151.

(6)

284 JOHNSON, LENSTRA

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

AND RINNOOY KAN

are equal can be solved by polynomial time

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

[SI; for the case

where all requirements are equal, NP-completeness follows easily as a corollary to Theorem 2.

Finally, we mention some results with respect to the com- plexity of a network design problem due to F. Maffioli. Given

a weighted graph with a specific vertex p

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

and an integer k, we

wish to find a spanning tree of minimum total weight subject

to the constraint that each subtree incident with p contains

at most k other vertices. The case k =

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

2 can be formulated as

a matching problem; the case k =

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

3 can be proved NP-complete

by a reduction of 3-DIMENSIONAL MATCHING, even if all edge weights are equal.

mFERENCE S

1.

2.

3 .

4.

5.

6.

7.

Bellman, R. E. and S. E. Dreyfus, Applied Dynamic Program-

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

m i n g , Princeton University Press

,

Princeton, New Jersey, 1962.

Dionne, R. and M. Florian, "Exact and Approximate Algo- rithms for Optimal Network Design," to appear in Networks,

9, 1, 1979.

Garey, M. R., R. L. Graham and D. S. Johnson, "Some

NP-complete Geometric Problems, It

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

Proc.

8 t h Annual ACM

Symp. T'heorey Comput., 1976, pp. 10-22.

Garey, M. R. and D. S. Johnson, "Strong NP-Completeness

Results: Motivation, Examples and Implications," J .

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

A s s O C .

Comptrt. Mach., 25, 1978, pp. 499-508.

Hu, T. C., "Optimum Communication Spanning Trees," S I M J .

CompUt., 3, 1974, pp. 188-195.

Hyafil, L. and R. L. Rivest, "Constructing Optimal Binary Decision Trees is NP-Complete," I f i f O m I U t i O f i Processing

Letters, 5 , 1976, pp. 15-17.

(7)

THE NETWORK DESIGN PROBLEM

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

285

8. Karp, R. M., "On the Computational Complexity of Combina-

torial Problems," Netuorks,

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

5, 1975, pp. 45-68.

9. Scott, A.

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

J., "The Optimal Network Problem: Some Computa- tional Procedures," Trans. Res.,

zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA

3, 1969, pp. 201-210.

10. Wong, R. T., "A Survey of Network Design Problems," Work- ing Paper OR 053-76, Operations Research Center, Massa- chusetts Institute of Technology, Cambridge, Massachusetts, 1976.

Gambar

Fig. 1 Equivalent instances of KNAPSACK and NDP.
Fig. 2 Equivalent instances of EXACT 3-COVER and SNDP.

Referensi

Dokumen terkait

IMPLEMENTASI JARINGAN SYARAF TIRUAN BACKPROPAGATION DALAM ANALISIS PEMBERIAN KREDIT KEPADA PARA DEBITUR.. Universitas Pendidikan Indonesia | repository.upi.edu

Antrian dengan sistem working vacation umumnya telah diklasifikasikan ke dalam dua kategori sesuai dengan kebijakan vacation ; (1) jika server tidak menemukan pelanggan setelah

1.Pokja UPBU H.AS.Hanandjoeddin, Kementerian Perhubungan Tahun Anggaran 2017 dengan ini Mengumumkan Pemenang Hasil Pelelangan Sederhana dengan Pascakualifikasi Pekerjaan Pengadaan

Pokja 08 (Delapan) Pengadaan Barang/Jasa Bandar Udara Japura Rengat, akan melaksanakan Pemilihan Langsung dengan Pascakualifikasi untuk paket pekerjaan konstruksi sebagai

Pada hari ini Kamis tanggal Dua belas bulan Mei tahun Dua ribu enam belas, kami Pokja Pengadaan Barang BBRVBD Cibinong ULP Kementerian Sosial RI sehubungan

Setiap organisasi dalam melakukan aktivitas yang dianggap penting mendokumentasikan kegitan yang dilakukan oleh organisasi tersebut (baik merencanakan suatu kegiatan

Hampir semua pemberitaan disajikan dalam bentuk feature walaupun ada juga dalam bentuk gambara-gambar yang menarik, karena target pembaca majalah Ninetyniners Magazine

[r]