Laboratoire d'Analyse et Modélisation de Systèmes pour l'Aide à la Décision
CNRS UMR 7024
CAHIER DU LAMSADE 162
Juin 1999
Master-slave strategy and polynomial approximation
Laurent Alfandari, Vangelis Th. Paschos
Résumé ii
Abstrat ii
1 Introdution 1
2 Master-slave tratable problems 2
3 Master-slave tratable network-design problems 5
3.1 Minimum spanning treeof depth 2 . . . 5
3.2 Minimum bounded-diameter spanning forest . . . 7
3.3 Edge-overing bytrees . . . 9
4 Disussion: introduing a new kind of redution 11
Referenes 12
A Pseudo-redution and maximization paking problems 14
A.1 Dualmaster-slave approximation . . . 14
A.2 Pseudo-redution and improved approximations for unweighted graph-paking
problems. . . 15
Résumé
De nombreuxproblèmesdeminimisation onsistantàouvrir lessommetsoulesarêtes
d'ungraphe pardessous-graphessontlassiquementmodélisésparunproblèmede seto-
vering.Si lenombredesous-graphesest polynomialen
n
,es problèmespeuventalors êtreapprohés àrapport logarithmique parl'algorithme glouton standardpourle set overing.
Nous étendons la lasse des problèmes approximables parette approhe à des problèmes
de ouverture et de partitionnement où le nombre de sous-graphes peut être exponentiel
en
n
,enrevisitantunetehniqueappelée((
maître-eslave))
etenl'étendantàdesproblèmespondérés.Nousappliquonsnalementl'approhemaître-eslaveàdeuxproblèmesdedimen-
sionnementderéseauetunproblèmedeoneptiondeiruitséletroniquesandeproduire
desrésultatspositifsd'approximationpouresproblèmes.
Mots-lé: problèmesombinatoires,omplexité,algorithme polynomiald'approximation,
NP-omplétude,ouvertured'ensembles,dimensionnementdesréseaux,graphe,arbre,fret.
Master-slave strategy and polynomial approximations
Abstrat
A lot ofminimization overingproblems ongraphsonsistin overingvertiesoredges
bysubgraphs verifying aertain property. These problems an beseenas partiular ases
ofset-overing.Ifthenumberofsubgraphsispolynomialintheorder
n
oftheinput-graph, then these problems an be approximated within logarithmi ratio bythe lassial greedyset-overing algorithm. We extend the lass of problems approximable by this approah
to overing problems where the number of andidate subgraphs is exponential in
n
, byrevisitinganoldtehniquealledmaster-slaveandextendingittoweightedmasteror/and
slaveproblems. Finally,weusethemaster-slavetoolto provesomepositiveapproximation
resultsfortwonetwork-designandaVLSI-designgraph-problems.
Keywords: ombinatorial problems,omputationalomplexity,polynomial-timeapproxi-
mationalgorithm,NP-ompleteness,set-overing,networkdesign,graph,tree,forest.
Given an NP-hard optimization problem
Π
, one is interested in ndinga polynomial time ap-proximationalgorithm(PTAA)
A
withagoodperformaneratio,thisratiobeingusuallydenedas the worst, over all instanes of a given size, of the values of the fration measure of the
solution returned byalgorithm
A
over the measureof an optimalsolution.Let us restrit ourselves to NP-hard minimization overing graph-problems onsisting in
overingvertiesoredgesbysubgraphs verifyingaertainproperty. Someoftheseproblemsan
beapproximated bythe following thought proess: at eah step, one tries to over a maximum
number of elements (verties or edges, depending on the denition of the problem) among the
unoveredvertiesor edges. Themaximization problem solved ateah step isalled the slave
whih servesthemaster, the (original)minimizationproblem. The termsslave and master
aredueto Simon ([13 ℄)whopointsoutthe fatthatiftheslave-problem ispolynomialthen the
masteroneisapproximablewithin
O(log n)
. Thenitusesthisfatin ordertoprovethatifsomemasterproblems areapproximate-equivalent,soarethe orrespondingslaveones(two problems
are saidapproximate-equivalent ifthey are linked byapproximation-preserving redutions, i.e.,
redutionsalong whihapproximationboundsandinaproximabilityresults aretransferredfrom
one to the other).
A lassial example ofmaster-slave approximation isthe one given by Johnson(in [8 ℄,algo-
rithm D3 at the end of setion 7 devoted to graph-oloring). At eah iteration this algorithm
omputes a maximum independent set of the surviving graph, it olors its verties by a new
olor and removes them from the graph. The master problem in this ase is the minimum
graph-oloring, whilethe slave oneisthe maximum independent set (forreasonsofeonomywe
do not dene here well-known NP-omplete problems suh asgraph-oloring, independent set,
set-overing,set-paking,dominatingset, hittingset,et.;theirdenitionsaregivenin[6℄). The
drawbak of D3 is exatly that it is not polynomial, sine it uses a maximum independent set
omputation. In anyase, it ahieves approximationratio
O(ln n)
at worst.Here,werstextendthemaster-slavestrategytoNP-hardweightedoveringandpartitioning
problems. Butour main purpose is to add a ontribution towards asystemati lassiation of
NP-omplete problems with respet to their approximability and, also, to bring to the fore a
uniedwaytoobtainapproximationresultsforaertainlassofproblemsforwhihahievement
oflogarithmiratiosisnot obvious. Forthis,wedenethe lassM-STofmaster-slavetratable
problems, approximable, in polynomial time, within logarithmi ratio. Informally speaking,
givenapartiular unweighted NP-hardgraph-overingproblem
Π
,wetrytoshowthatΠ
anbemodeled asa set-overing problem, nomatterifthe size ofthe obtained set-overing instaneis
exponentialinthesizeofthegeneriinstaneof
Π
. Theset-overinginstaneobtainedinludesas groundsetthesetofobjets(vertiesoredges)tobeovered,andasset-systemallthesubgraphsableto beinluded into afeasible solution. Via thismodeling,
Π
an be solved bythe followingkind ofgreedy iterative proedure G:at eahiteration tryto over the maximum number of the
unoveredobjets. Ifoneanmodeltheproblemathandintermsofset-overing,andifonean
prove thatovering the maximum number of unovered objetsan beperformedin polynomial
time (even ifthe expliit onstrution of the set-overing instane isexponential), then one has
proved that
Π
belongs to the lass M-ST. Sine G is a kind of simulation of the greedy set-overing algorithm, one an onlude that
Π
, aswell asevery M-ST problem, isapproximable within approximation ratio equal to the one of the greedy set-overing algorithm; this ratiois
O(log n)
([14 ℄). In other words, insteadof developing and analyzing a proper approximation algorithmforeverygraph-overingproblem,werathertrytoprovethatitsatisestheonditionsofinlusion in M-ST (letus notethatproof ofthe inlusion ofa problemin lassM-ST isnot
trivialatall). Then,approximabilityof
Π
withinlogarithmiratioensuesimmediately. Usingthiswenotethatahievement oflogarithmiapproximationratiosforthemis,toourknowledge,new
and seems non-trivial. At the end of the paper, we try to insribe the master-slave game into
the formalframework ofanewkindofredution,bymeansofwhihwe showthat, insome way,
setovering isompleteforthe lassM-ST.Finally, letus notethatinlusionin lassM-STis
interesting, not only for proving logarithmi ratios, but also for proving lower approximability-
bounds(inapproximability results). Plainly, as it is proved in [1℄, two of the problems studied
arenotapproximable within
(1 − ǫ) ln n
,∀ǫ > 0
. Inlusionof themin M-STonstitutesaproofthat master-slave approximation is the best one an do in order to approximately solve these
problems.
In what follows, given an instane
I
of an NP-hard problemΠ
and a PTAA A forΠ
, wedenotebyOPT(
I
)theoptimalvalueofI
,byA(I
)thevalueofthesolutionofI
providedbyA,andwesaythatalgorithmA approximates
Π
withinratioρ
ifA(I)/OP T (I ) ≤ ρ
,for everyinstaneI
of
Π
.2 Master-slave tratable problems
We denote by
S P
the set of subgraphs of a graphG = (V, E)
satisfying a property or a pred-iate
P
, byV (G)
(resp.,E(G)
) the vertex-set (resp., edge-set) ofG
, byn
its order (|V |
) anddene the following lass.
Denition 1. ConsideranNP-hardminimizationgraph-problem
Π
andapropertyP
; supposethat (i) a feasible solution of
Π
is an element of2 S P
and (ii) a ost funtion¯ c
, omputablein polynomial time, is assoiated with
S ∈ S P
suh that the ost of a solutionS ′
ofΠ
isc(S ′ ) = P S∈S ′ c(S) ¯
. ThenΠ
is master-slave tratable (M-ST) i it satises the following onditions:[M-ST-1℄ a solution
S ′
ofΠ
is•
either aP
-over (i.e., asubsetS ′ ⊂ S P
suhthat∪ S∈S ′ V (S) = V
),•
or aP
-partition (i.e., a subsetS ′ ⊂ S P
suh that∪ S∈S ′ V (S) = V
and forS, S ′ ∈ S ′
,V (S) ∩ V (S ′ ) = ∅
), and everyP
-over ofG
an be polynomially transformed into aP
-partition of at most the sameost;[M-ST-2℄ givenabinaryvetor
~u ∈ {0, 1} n
assoiatedwithV
,the (slave)problemofndingthesubgraph
S ∗ = argmax S∈S P { P v∈V (S) u[v]/¯ c(S)}
isin P.For the ase ofedge-over or partition, wesimplyreplae
v
bye
andV
byE
.Theabovedenitiongeneralizesthelassialmaster-slavemethod([13℄)where,
∀S ∈ S P
,c(S) = ¯ 1
, i.e., wherec(S ′ ) = |S ′ |
. Note thatinthe aseof partitioning, ifpropertyP
ishereditary(i.e.,every subgraph of
S
satisesP
wheneverS
satisesP
), then ondition[M-ST-1℄of denition1is always satised. However, anypartitioning problem doesnot satisfyondition [M-ST-1℄; for
instane, from a set-over one annot systematially obtain a set-partition of the same weight,
or ardinality.
WenowshowthatM-STproblemsareapproximablewithinlogarithmiratiobythefollowing
simulation of the lassial greedy weighted set-overing (WSC) algorithm.
BEGIN /*MSGREEDY*/
(1) FOR
v ∈ V
DOu[v] ← 1
OD(2)
S ′ ← ∅
;(3) WHILE
∃v ∈ V : u[v] = 1
DO(4)
S ∗ ← argmax S∈S P { P v∈V(S) u[v]/¯ c(S)}
;(5)
S ′ ← S ′ ∪ {S ∗ }
;(6) FOR
v ∈ V(S ∗ )
DOu[v] ← 0
OD(7) OD
(8) OUTPUT
S ′
; (*OUTPUTh(S ′ )
;*)END. /*MSGREEDY*/
Inthe abovealgorithm,
u[v]
indiates wether vertexv
is unovered(u[v] = 1
) or not (u[v] = O
)atthe urrentstepof theWHILE loop. Funtion
h
atline(8) polynomially transformsaP
-overintoa
P
-partition(when dealingwithapartitioning-problem). Foredge-overingorpartitioning problems,simplyreplaev
(resp.,V
) bye
(resp.,E
).Theorem 1. If
Π
is M-ST, then MSGREEDY polynomially approximatesΠ
withinmin{1 + ln ∆ Π , ln n − ln ln n + 0.78}
iftheostsofeverysubgraphsatisfyingP
are allidential, andwithin1 + ln ∆ Π
otherwise, with∆ Π = max S∈S P {|S|}
.Proof. We prove the theorem for vertex-overing and partitioning problems, the proof being
quite similarin ase of edge-overing or partitioning. Letus transform an instane
G = (V, E)
of
Π
into an instaneϕ(G) = (C, S) ¯
of WSC in the following way. LetC = V
be the groundelementsetin
ϕ(G)
,andforeverysubgraphS ∈ S P
,addasetS ¯ = V (S)
withweightw( ¯ S) = ¯ c(S)
in
S ¯
(note that the number of sets| S| ¯
an be exponential inn
). Under this transformation, thereisa1-1orrespondenebetween thesolutionsofΠ
onG
andthe solutionsofWSConϕ(G)
onstruted as above, i.e.,
{S 1 , S 2 , . . . , S t }
is aP
-over forG
i{ S ¯ 1 , S ¯ 2 , . . . , S ¯ t }
is a set-overfor
ϕ(G)
and, moreover the ost of theP
-over ofG
is the same as the total weight of theset-over of
ϕ(G)
. Hene,OPT(G) = OPT(ϕ(G))
. Now, the greedy algorithm for the WSC-instane
(C, S) ¯
an be re-written in the following way.BEGIN /*WSCGREEDY*/
FOR
c ∈ C
DOu[c] ← 1
ODS ¯ ′ ← ∅
;WHILE
∃c ∈ C : u[c] = 1
DO¯ S ∗ ← argmax ¯ S∈ S ¯ { P c∈ ¯ S u[c]/w( ¯ S)}
;S ¯ ′ ← S ¯ ′ ∪ { ¯ S ∗ }
;FOR
c ∈ ¯ S ∗ ∩ C
DOu[c] ← 0
ODOD
OUTPUT
S ¯ ′
;END. /*WSCGREEDY*/
Sine subgraph
S ∈ S P
(resp., vertex-setV
) inG
orresponds to setS ¯
(resp., ground setC
)in
ϕ(G)
, thensolutionS ′ = {S 1 , S 2 , . . . , S t }
omputedbyalgorithmMSGREEDYforG
orrespondsto the over
S ¯ ′ = { S ¯ 1 , S ¯ 2 , . . . , S ¯ t }
forϕ(G)
, andc(S ′ ) = w( ¯ S ′ )
. Hene,c(S ′ )/OP T (G) = w( ¯ S ′ )/OP T (ϕ(G))
.If a feasible solution for
Π
is not aP
-over but aP
-partition, then by ondition [M-ST-1℄P
-overS ′
anbetransformedinpolynomialtimeintoaP
-partitionS ′′
satisfyingc(S ′′ ) ≤ c(S ′ )
.The approximation ratio of WSCGREEDY is bounded above by
1 + ln ∆ SC
, where∆ SC = max S∈ ¯ S ¯ {| S|} ¯
in the weighted ase ([4 ℄), and byln |C| − ln ln |C| + 0.78
in the unweightedase([14 ℄). Sine in
ϕ(G)
,∆ SC = ∆ Π
and|C| = n
, the proofis ompleted.Let us remark here that all problems linked to set-overing by approximation-preserving
redutionsas,for example,thedominating set,the hittingset, aversionoftheoloringproblem
where the input graph has stability number bounded above by a xed positive onstant, et.,
are M-ST ones. Algorithm D3of [8℄ mentioned above is indeeda simulation of WSCGREEDY for
not in P.
Simon,in [13 ℄,mentionsthatifthe(unweighted) slave-problem isnot solvablein polynomial
time, but is approximable within a fator
ρ ≤ 1
, then the (unweighted) master an be polyno- miallyapproximated with aratio(1/ρ) ln n
. Ofourseρ
an depend onan instane-parameter.Notethatanaïve appliation ofthisresultto graph-oloring,where ateahroundone olorsa
maximal independent set insteadof a maximum one, doesnot improve the bestapproximation
ratio for oloring. Plainly, the best ratio
(log n) 2 /n
([3℄) for the maximum independent set impliesa ration/ log n
for oloring. Thisratio, obtained byJohnson ([9℄) in 1974,has been re-peatedlyimprovedsinethen. WeanextendSimon'sresulttotheweighted asewheretheosts
ofthe subgraphs in
S P
arenot onstrained tobeidential. Letus rsttransformdenition1 toinlude a larger lassofminimization problems.
Denition 2. Aminimizationgraph-problem
Π
isextendedmaster-slave tratable (EM-ST)i itsatisesondition[M-ST-1℄ofdenition1and if,given abinaryvetor~u ∈ {0, 1} n
assoiatedwith
V
,theproblemofndingthe subgraphS ∗ = max S∈S P { P v∈V (S) u[v]/¯ c(S)}
ispolynomially approximable within ratioρ ≤ 1
.Theorem 2. An EM-ST problem
Π
ispolynomially approximable within(1/ρ)(1 + ln ∆ Π )
.Proof. Consider the transformation of an instane
G = (V, E)
ofΠ
into a set-overing in- stane(C, S) ¯
as shown in the proof of theorem 1; now, denote by WSCGREEDYo
the version ofWSCGREEDY where, at eah iteration, insteadof the set maximizing the ratio
P
c∈ S ¯ u[c]/w( ¯ S)
, aset,theassoiatedratioofwhihisatleast
ρ
timesthemaximumone(ρ ≤ 1
)ishosen,andrevisitthe analysisof WSCGREEDYpresented in[4℄. Suppose, withoutlossofgenerality, thatthesolution
omputed byWSCGREEDY
o
is,after
r
iterations, the set{ S ¯ 1 , S ¯ 2 , . . . , S ¯ r }
. Nowletu r j = P c∈ S ¯ j u[c]
at step
r
of WSCGREEDYo
,m = | S| ¯
andw j = w( ¯ S j )
; letx ∗ = (x ∗ j ) j=1,...,n
denote the inidenevetor of an optimal over and let
s j
be the largest supersriptr
suh thatu r j > 0
. The sameanalysisasChvatal's leads tothe following assertion:
WSCGREEDY o (C, S) ¯ ≤
m
X
j=1 s j
X
r=1
u r j − u r+1 j w r
u r r !
x ∗ j .
Now, set
S ¯ r
seleted at stepr
satisesu r r /w r ≥ ρ(u r j /w j )
,∀j
, thenWSCGREEDY o (C, S) ¯ ≤ 1 ρ
m
X
j=1 s j
X
r=1
u r j − u r+1 j u r j
! w j x ∗ j .
In[4℄ itis shownthat
P s j
r=1 (u r j − u r+1 j )/u r j ≤ H(| S ¯ j |)
, whereH(k) = P k i=1 (1/i)
. Consequently,WSCGREEDY o (C, S) ¯ ≤ 1 ρ
m
X
j=1
H(| S ¯ j |)w j x ∗ j ≤ 1
ρ H(∆ SC )OP T (C, S). ¯
As
H(∆ SC ) ≈ 1 + ln ∆ SC
, we get the ratio of the laim for WSC and transfer this ratio toproblem
Π
thanksto the 1-1 orrespondene between solutions ofΠ
and solutions of(C, S) ¯
, asshownin the proof oftheorem 1.
In the next setion, we use the result of theorem 1 to study the approximation of some
network-design problems onsistingof overing or partitionning verties or edgesbysubgraphs,
the number of andidate subgraphs being exponential in the size ofthe input-graph.
3.1 Minimum spanning tree of depth 2
Considerthe following ommuniation problem. Givenaset
V
ofitiesandan extraityr
,nda subset
V ′ ⊂ V
(where one wishes to onstrut relay stations), suh that every ity inV ′
isonneted to
r
and every ity inV \ V ′
is onneted to a ity ofV ′
, and suh that the totallength ofonnetions isminimum. Formally, the problemis the following.
Minimum-weight rooted spanningtree of depth 2 (RST2).
Given a omplete graph
G = (V ∪ {r}, E )
with positive integer distanesd ~
on its edges,nda tree
T
spanningV ∪ {r}
, minimizing quantityP e∈E(T ) d(e)
, and suhthat, for anyvertex
v ∈ V
, the number of edgesinT
in the path onnetingv
tor
isat most 2.Reallthata star
S v,X
isa treespanningv ∪ X
suhthatall verties ofX
have degree1 in thetree. Let
v
be the enter of the star and all the quantity|X|
the degree of the star. Welaimthat RST2isequivalent tothe following problem.
Minimum-weight spanning star-forest.
Given a omplete graph
K |V |
, a ost-vetord ~
on edges anda weight vetorw ~
onverties,nd a spanning forest of stars, i.e., a olletion of stars
F = {S v 1 ,X 1 , S v 2 ,X 2 , . . . , S v t ,X t }
partitioning
V
and minimizingc(F ) = P t i=1 [w(v i ) + P x∈X i d(v i , x)]
.In fat, given
G = K |V ∪{r}|
, one an onsider the (omplete) subgraph ofG
indued byV
andset
w(v) = d(vr)
,v ∈ V
. In the sequel, when speaking for RST2, we will refer to the latterproblem. The proof of the NP-ompleteness of RST2 aswell as further positive and negative
approximation resultsabout itan be found in [2℄. Finally, Note thatthe total number of stars
in a ompletegraph of order
n
isn2 n−1
, exponential inn
.Theorem 3. RST2is M-ST;onsequently, it isapproximable within
(1 + ln n)
.Proof. We rst prove ondition [M-ST-1℄. Consider a star-over
F = {S v j ,X j : j = 1, . . . , |F|}
and the following proedure.
BEGIN /*POSTPROCESS
(F)
*/let
V c = {v j : j = 1, . . . , |F|}
;FOR
j ← 1
TO|F|
DOonsider
S v j ,X j
;IF
∃x ∈ X j , (x ∈ V c ) OR (x ∈ X i , i < j)
THENS v j ,X j ← S v j ,(X j \{x})
FIIF
∃i < j, v i = v j
THENF ← (F \ {S v i ,X i , S v j ,X j }) ∪ {S v i ,(X i ∪X j ) }
FIOD
OUTPUT
F
;END. /*POSTPROCESS
(F)
*/Theabove proedureisakindofpost-proessingtransformingastar-overto astar-partitionof
at most the same ost. Star-adjustment operations performed here onsist of edge-removals or
star-groupings whihdonot inreasethe ost ofthe nalsolutionobtained. So,the seond part
of ondition[M-ST-1℄in denition1 issatised.
Letus denoteby
c(S ¯ v,X ) = w(v) + P x∈X d(v, x)
the ostfuntionassoiatedwith starS v,X
.Wenowprovethat,givenabinaryvetor
~u
on|V |
omponents, theslaveproblemofndingstarS v ∗ ,X ∗ = argmax
S v,X
u[v] + P
x∈X
u[x]
¯ c(S v,X )
= argmin
S v,X
w(v) + P
x∈X
d(v, x) u[v] + P
x∈X
u[x]
ispolynomial(ondition [M-ST-2℄). Letus denote by
R(S v,X ; ~u)
the last ofthe above ratios.Observe rst thatif a vertex
x ∈ X ∗
satisesu[x] = 0
, then removingx
fromX ∗
does nothange the value of
R(S v ∗ ,X ∗ ; ~u)
; so, supposewithoutlossofgenerality, thatu[x] = 1
,∀x ∈ X ∗
.Also suppose that the verties in
V
are labelled byv i
,i = 1, . . . , n
, and onsider the followingproedurending, given
~u
, starS v ∗ ,X ∗ = argmin S v,X {R(S v,X ; ~u)}
.BEGIN /*SLAVE_RST2(
~ u
)*/min
_ratio ← ∞
;FOR
i ← 1
TOn
DOV i ← {v ∈ V \ {v i } : u[v] = 1}
;FOR
j ← |V i |
DOWNTO 1 DOlet
X j = {v ′ 1 , v ′ 2 , . . . , v ′ j }
be the list of verties ofV i
sorted in suh a way that
d(v i , v ′ 1 ) ≤ d(v i , v ′ 2 ) ≤ . . . ≤ d(v i , v ′ j )
;OD
j ← 0
;X 0 ← ∅
;WHILE
R(S v i ,X j + 1 ;~ u) < R(S v i ,X j ; ~ u)
ANDj < |V i |
DOj ← j + 1
ODIF
R(S v i ,X j ; ~ u) < min
_ratio
THENmin
_ratio ← R(S v i ,X j ;~ u)
;SOL ← S v i ,X j
;FI
OD
OUTPUT SOL;
END; /*SLAVE_RST2(
~ u
)*/InordertoprovethatproedureSLAVE_RST2orretlyndsinpolynomialtimethestarminimiz-
ingratio
R
over allstarsofG
, we rst provethat, for axedv i
, itorretlynds in polynomialtime the star minimizing
R
over all stars with enterv i
. Then the orretness-result follows immediatelysineallvertiesareexaminedaspossiblestar-enters. Forreasonsofsimpliity, werestrit ourselves to the ase where
u[v i ] = 1
, the proof for the aseu[v i ] = 0
being ompletelyanalogous. Consider rst the problemof determining, for a xed
|X| = j
,j = 0, 1, . . . , |V i |
, thequantity
min X {(w(v i ) + P x∈X d(v i , x))/(|X| + 1)}
. Sine the list(v 1 ′ , v ′ 2 , . . . , v |V ′
i | )
is sorted ininreasing orderwith respetto the distanes of itselements from
v i
, we get(settingv ′ 0 = v i
):|X|=j min {R(S v i ,X ; ~u)} =
w(v i ) +
j
P
k=0
d(v i , v k ′ ) j + 1
min X
w(v i ) + P
x∈X
d(v i , x) (|X| + 1)
= min
j=0,...,|V i |
w(v i ) + P j
k=0
d(v i , v k ′ ) j + 1
.
Let
U j = R(S v i ,X j ; ~u) = (w(v i ) + S j )/(j + 1)
withS j = P j k=1 d(v i , v ′ k )
. Proedure SLAVE_RST2inrements
j
whileU j
dereases inj
and stops as soon asU j
inreases. In order to ompletethe proof, we now prove that when
U j
starts inreasing, it will never derease again, i.e., ifU j+1 − U j ≥ 0
, thenU j+2 − U j+1 ≥ 0
. Let usstudy the sign ofU j+1 − U j
.U j+1 − U j = w(v i ) + S j + d(v i , v ′ j+1 )
j + 2 − w(v i ) + S j
j + 1
= 1
(j + 1)(j + 2)
h (j + 1) h w(v i ) + S j + d(v i , v j+1 ′ ) i − (j + 2)(w(v i ) + S j ) i
= 1 (j + 1)(j + 2)
h (j + 1)d(v i , v ′ j+1 ) − w(v i ) − S j i = 1 j + 2
h d(v i , v ′ j+1 ) − U j i .
Supposenow that
U j+1 − U j ≥ 0
; we shallshowthatU j+2 − U j+1 ≥ 0
.U j+2 − U j+1 = 1
j + 3
d(v i , v j+2 ′ ) − U j+1
= 1
j + 3 d(v i , v j+2 ′ ) − (j + 1)U j + d(v i , v j+1 ′ ) j + 2
!
≥ 1
j + 3 d(v i , v ′ j+1 ) − (j + 1)U j + d(v i , v j+1 ′ ) j + 2
!
= 1
j + 3
j + 1 j + 2
d(v i , v j+1 ′ ) − U j
=
j + 1 j + 3
(U j+1 − U j ) ≥ 0
andtheorretnessof SLAVE_RST2follows;sineitrunsin
O(n 2 )
, ondition[M-ST-2℄issatised.Consider now the following algorithm for RST2.
BEGIN /*MASTER_RST2*/
F ← ∅
;FOR
v ∈ V
DOu[v] ← 1
;WHILE
∃v ∈ V
suh that u[v℄ = 1 DOS v ∗ ,X ∗ ← SLAVE
_RST2(~ u)
;F ← F ∪ {S v ∗ ,X ∗ }
;FOR
v ∈ S v ∗ ,X ∗
DOu[v] ← 0
OD;OD
OUTPUT POSTPROCESS(F);
END. /*MASTER_RST2*/
Obviously, the omplexity of algorithm MASTER_RST2 is
O(n 3 )
. In all, we have proved thatdenition1 appliesfor RST2; furthermore,
∆ RST2 ≤ n
andthe result ofthe theorem follows.Theresultoftheorem3anbeslightlymodiedtoapplyeveninthe restritedaseofRST2
where the degree of a star in anysolution hasto be bounded by a positive integer onstant
k
.It suesto add, in the WHILE loop of proedure SLAVE_RST2, an exit-riterion ifthe number
j
of unovered(i.e., having
~u
-values equal to 1) neighbours ofv i
beomesgreater thank
and thefollowing orollaryholds.
Corollary 1 . There exists a PTAA with ratio
1 + ln (k + 1)
for the restrition of RST2 wherethe degree of a starin any solutionhas tobe at most
k
.Sineatree ofdepth 2isofdiameter4,appliation ofalgorithm MASTER_RST2onsidering every
vertexof
V
asa potential rootleads to the following orollary.Corollary 2. The 4-diameter minimum spanning tree problem is approximable within ratio
1 + ln n
.3.2 Minimum bounded-diameter spanning forest
In this setion we prove that the minimum
k
-diameter spanning forest problem, alledk
-DSFin what follows, is M-ST and, sine itis an unweighted problem, itadmits a PTAA ahieving
ratio
ln n − ln ln n + 0.78
.Minimum k-diameter spanning forest.
Givenagraph
G = (V, E)
, ndaminimum-ardinalitypartitionofV
intotreesofdiameterat most
k
, (the diameter of a treeT
is the maximum number of edges in a path betweenany pairof verties in
T
).Thisproblem isNP-hard (redution from minimum dominating set for
k = 2
, [6℄). Therest ofthe setionis devotedto the proof ofthe following theorem.
Theorem 4.
k
-DSFis M-STand, onsequently, approximable withinln n − ln ln n + 0.78
.Proof. Let us rst prove satisfation of ondition [M-ST-1℄; onsider the following proedure,
reeivingasinputs a set
V 0 ⊂ V
and apositiveintegerr
.BEGIN /*SPANF(
V 0 , r
)*/F ← ∅
;V c ← V 0
;FOR
i ← 1
TOr
DOV i ← Γ(V i−1 ) \ V c
;FOR
v ∈ V i
DOlet
v ′
be a vertex ofΓ(v) ∩ V i−1
;add
vv ′
inF
;OD
V c ← V c ∪ V i
;OD
OUTPUT
F
;END; /*SPANF(
V 0 , r
)*/In the output
F
of proedure SPANF,every vertex ofV i
is linked to a unique vertex ofV 0
by aunique path of length
i
. Consequently,F
is a forest of size|V 0 |
and ofdepthr
. Moreover, thisforest is maximal, in the sense that it ontains all verties of
V
linked to some vertexofV 0
bya path of at most
r
edges. Now, letF = {T 1 , . . . , T t }
be a over ofV
by trees of diameter atmost
k
(over in the sense thatavertex ofV
an belongto more than one treeofF
).•
Ifk = 2r
, letr i
be a root ofT i
(i.e., a vertex ofV (T i )
suh that anyother vertex inT i
islinked to
r i
by a path of at mostr
edges) and onsiderV 0 = {r i : i = 1, . . . , t}
. For thisase, proedure SPANF
(V 0 , r)
polynomially transforms tree-overF
into a tree-partition of at most the sameardinality, satisfying ondition[M-ST-1℄.•
For the ase wherek = 2r + 1
, a tree of diameter at mostk
an be seen as omposedof two rootedtrees of depth at most
r
having their roots onneted byan edge whih wewill all edge-root in the sequel; let
r i r i ′
be an edge-root ofT i
(i.e., an edge ofE(T i )
suh that any othervertex in
T i
is onneted either tor i
, or tor i ′
by a path of at mostr
edges) and onsider
E 0 = {r i r i ′ : i = 1, . . . , t}
; moreover, letV 0
be the set of vertiesendpoints of an edge in
E 0
. A modied version of SPANF an be used here. It onsistsof rst alling SPANF
(V 0 , r)
to normally produe a set of trees of depthr
, next of ndingin
E 0
a maximal mathingM ⊂ E 0
and, nally, of unifying trees having edges ofM
asedge roots; let us denote by MSPANF
(E 0 , r)
this modied version of SPANF and byF ′
theforestomputed. Sineeveryvertexof
V
notinV 0
iswithindistaneatmostr
fromV 0
,F ′
is indeeda partition of
V
into trees of diameter at mostk = 2r + 1
, ontaining|M|
treeshaving edgesof
M
asedgeroots, and|V ′ |
other trees(V ′ ⊂ V 0
denoting the setofvertiesof
V 0
unsaturatedbyM
). Now,sineM
ismaximalforE 0
,everyvertexofV ′
isonnetedby an edge (in
E 0
) to a vertex ofV 0 \ V ′
. Hene,|E 0 | ≥ |M | + |V ′ |
, i.e.,|F | ≥ |F ′ |
andondition[M-ST-1℄is satised.
Consider now the following algorithm for
k
-DSF. Instrutions between parentheses refer to the asek = 2r + 1
; in this ase, remark that, when alled from a single edgee
, proedureMSPANF(e,r) onstruts a maximal tree of depth
r
and edge-roote
, i.e., a tree ontaining allverties of
V
lyingwithin distaneat mostr
from anendpoint ofe
.(1)
r ← ⌈k/2⌉
;(2)
F ← ∅
;(3)
V 0 ← ∅
;(4) FOR
v ∈ V
DOu[v] ← 1
OD(5) WHILE
∃v ∈ V, u[v] = 1
DO(6)
max ← 0
;(7) mark all verties of V (* all edges of E *) as unvisited;
(8) WHILE
∃v 0 ∈ V
(*∃v 0 v ′ 0 ∈ E
*) unvisited DO(9)
T ← SPANF({v 0 }, r)
(*MSPANF({v 0 v ′ 0 }, r)
*);(10) IF
P
v∈T u[v] > max
THEN(11)
T ∗ ← T
;(12)
max ← P v∈T u[v]
;(13) FI
(14) mark
v 0
(*v 0 v ′ 0
*) as visited;(15) OD
(16)
F ← F ∪ {T ∗ }
;(17)
V 0 ← V 0 ∪ {v 0 }
; (*E 0 ∪ {v 0 v ′ 0 }
*)(18) FOR
v ∈ V(T ∗ )
DOu[v] ← 0
OD(19) OD
(20) OUTPUT
SPANF(V 0 , r)
; (*MSPANF(E 0 , r)
*)END.
We shall nally prove that lines (6) to (15) of algorithm MASTER_k-DSF orretly solve the
slave problem, hene satisfying ondition [M-ST-2℄, i.e., that tree
T ∗
at line (16) maximizesquantity
P
v∈V (T ) u[v]
, whereT
ranges over all trees of diameter at mostk
. We shallallT opt
an optimal tree. Sine
T opt
has diameter at mostk
, then ifk
is even (resp., odd) there existsavertex
v opt
(resp.,anedgee opt
)suhthateveryvertexofT opt
islinkedtov opt
(resp.,tooneoftheendpoints of
e opt
) by a path of length at mostr = ⌈k/2⌉
. On the other hand,proedure SPANF(resp., MSPANF),alled byalgorithm MASTER_k-DSFfromeveryvertex
v 0
(resp., edgev 0 v ′ 0
) ofG
produes a maximal tree of root
v 0
(resp., edge-rootv 0 v 0 ′
) and depthr
. LetT ˆ
be the treeomputed by SPANF (resp., MSPANF), when alled from
v opt
(resp.,e opt
). AsT ˆ
is maximal, itontains all the verties linked to
v opt
(resp.,e opt
) by paths of length at mostr
; onsequently,V (T opt ) ⊂ V ( ˆ T )
andP v∈V (T opt ) u[v] ≤ P v∈V ( ˆ T ) u[v] ≤ P v∈V (T ∗ ) u[v]
; hene, treeT ∗
is alsooptimal.
Obviously, the above algorithm is polynomial; moreover,
∆ kDSF ≤ n
andthis ompletes theproofof theorem4.
3.3 Edge-overing by trees
Thelastproblemstudiedin thispaper, denotedbyECT,isanedge-overingproblemfrequently
met inVLSI-design whenever one tries tominimize the ost ofthe iruit onnexions ([11 ℄).
Edge-overing by weighted trees.
Given a graph
G = (V, E)
and positive integer valuationsd ~
on its edges, nd a olle-tion of trees
F = {T 1 , . . . , T t }
satisfying∪ i=1,...,t {E(T i )} = E
and minimizingc(F ) = P
1≤i≤t c(T ¯ i )
,where¯ c(T ) = max e∈E(T ) {d(e)}
.To our knowledge, the omplexity of ECT is still open. Therefore, sine no exat polynomial
algorithm is known, wedevise a PTAA ahievingapproximation ratio
O(ln n)
.mation ratio bounded above by
1 + ln n
.Proof. Condition [M-ST-1℄ of denition 1 issatised sine every feasible solution of ECT is a
over of
E
by trees (theostof whih isthe sumof the ostsofthe solution-trees).Weshallnowshowthatondition[M-ST-2℄isalso satised. Given a0-1vetor
~u
assoiatedwith
E
, we showthatsolution of the slave-problem, i.e., omputation ofT ∗ = argmax
T
R(T ; ~u) = P
e∈E(T )
u[e]
¯ c(T )
an be performedin polynomial time.
Let
E δ = {e ∈ E : d(e) ≤ δ}
, andG δ = (V, E δ )
. Moreover, we denote byd(G)
thequantity
max e∈E {d(e)}
, and byd(G)
, the quantitymin e∈E {d(e)}
. Consider now the followingproedureoptimally solving the slave problem.
BEGIN /*SLAVE_ECT(
~ u
)*/(1)
max ← 0
;(2)
δ ← d(G)
;(3) WHILE
δ ≥ d(G)
DO(4)
argmax T { P e∈E(T) u[e]} = T ∗ ← KRUSKAL(G δ )
;(5)
δ ← ¯ c(T ∗ ) − 1
;(6) IF
R(T ∗ ;~ u) > max
THEN(7)
max ← R(T ∗ ;~ u)
;(8) retain
T ∗
;(9) FI
(10) OD
(11) output
T ∗
;END; /*SLAVE_ECT(
~ u
)*/Algorithm KRUSKAL in line (4) is a modied version of the lassial minimum weight spanning
tree algorithm ([10℄) where, instead of a minimum-distane edge, a maximum-distane one is
seleted at eah step in graph
G δ
. Moreover, let us note thatKRUSKAL(G δ )
treatsu[e]
's (andnot
d[e]
's)asedge-distanes (e ∈ E δ
). SineKRUSKAL runsin timeO(|E| log |E|)
, andthe WHILEloop willbe exeutedat worst
|E|
times, then the whole proedure ispolynomial.We now prove that proedure SLAVE_ECT orretly solves the slave problem for ECT, i.e.,
the output-tree
T ∗
satisesT ∗ = argmax T R(T ; ~u)
. Suppose that the WHILE loop of the aboveproedure is exeuted
p
times and denote, fori = 1, . . . , p
, byδ i
the value ofδ
onsidered inline (3) and by
T i ∗
, the treeT ∗
omputed in line (4), at thei
th exeution of the WHILE loop.We have, for
i = 1, . . . , p
,c(T ¯ i ∗ ) = δ i+1 + 1
. Moreover, setδ p+1 = δ p − 1
, and observe thatδ p = d(G)
andδ 1 = d(G)
. Consider now, at some exeutioni
ofthe WHILEloop,1 ≤ i ≤ p − 1
,a tree
T
suh thatδ i+1 + 1 ≤ ¯ c(T ) ≤ δ i
. We haveP e∈E(T ) u[e] ≤ P e∈E(T ∗
i ) u[e]
, otherwiseT
would have been seleted instead of
T i ∗
by KRUSKAL. Sine¯ c(T ) ≥ ¯ c(T i ∗ )
, one immediately getsR(T i ∗ ; ~u) ≥ R(T; ~u)
. So,T i ∗ = argmax δ i+1 +1≤¯ c(T )≤δ i {R(T ; ~u)}
andfor thenaltreeT ∗
obtainedat line (11),the following holds:
T ∗ = argmax
i=1,...,p {R(T i ∗ ; ~u)} = argmax
i=1,...,p
(
δ i+1 +1≤¯ max c(T )≤δ i
R(T ; ~u) )
= argmax
δ p ≤¯ c(T )≤δ 1
{R(T; ~u)} .
So,sine
δ p = d(G)
andδ 1 = d(G)
, the optimalityofproedureSLAVE_ETCforthe slaveproblemisonluded.
for ECT.
BEGIN /*MASTER_ECT*/
C ← ∅
;FOR
e ∈ E
DOu[e] ← 1
ODWHILE
∃e ∈ E
withu[e] = 1
DOT ∗ ← SLAVE
_ECT(~ u)
;C ← C ∪ {T ∗ }
;FOR
e ∈ E(T ∗ )
DOu[e] ← 0
ODOD
OUTPUT
C
;END. /*MASTER_ECT*/
Let us note that, if all edge-distanes are idential, ECT onsists in nding the minimum-
ardinality edge-over by trees. In this ase, proedure SLAVE_ECT is nothing else but a single
all of KRUSKAL(G)(line (4)).
Before losing this setion, letus reall our introdutoryremark thatthe rsttwo problems
are provably inapproximable within
(1 − ǫ) ln n
([1 ℄), and thus lie among the hardest problemsof the lassAPX
(log n)
. Consequently, the ratio attained hereis asymptotiallyoptimal.4 Disussion: introduing a new kind of redution
A usual way for transferring (positive or negative) approximation results from a problem to
another is by approximation-preserving redutions (
A
-redutions [12℄,P
-redutions [5℄, ontin-uous redutions [13℄, et.). In these redutions the general underlying idea is that, given two
problems
Π
andΠ ′
(let us suppose wlog that these problems are minimization ones), one an polynomially transform a generi instaneI
ofΠ
into an instaneI ′
ofΠ ′
; next, on the hy-pothesis that a
ρ
-approximation PTAA A exists forΠ ′
, one shows how aΠ ′
-solutionS ′
forI ′
an be polynomially transformed to a
Π
-solutionS
forI
suh that if|S ′ |/OPT(I ′ ) ≤ ρ
then|S|/OPT(I ) ≤ c(ρ)
, for somec : [1; ∞[→ [1; ∞[
, where|S ′ | = A(I ′ )
and|S|
denotes the size(ardinalityorvalue)ofsolution
S
. Usuallypeopleallapproximation-preserving theredutions wherec(ρ) = ρ
.Intuitively, theorem1 (aswell asthe results of setion3) desribes, in some sense,a kindof
redution fromanM-ST problemto WSC.Ofourse,sine thisredution isnot polynomial
(thenumber of setsisin all theases studied exponential in
n
,the order ofthe graph), itisnotapproximation-preserving in the ommon sense. However, we feel that there still exist strong
approximationlinksbetweentheseproblems andthegreedy algorithmfor setovering,and that
these linksan bewritten in a formalway. We thus introdue the following kindof redution.
Denition 3. Let
Π
andΠ ′
be two minimization problems, andA Π ′
be a PTAA forΠ ′
. Apseudo-redution from
Π
to(Π ′ , A Π ′ )
isa triple(ϕ, ψ, A Π )
suh that[1℄
ϕ
transformsaninstaneI
ofΠ
into aninstaneI ′ = ϕ(I )
ofΠ ′
;[2℄
ψ
transformsaΠ ′
-solutionS ′
forI ′
intoaΠ
-solutionS = ψ(S ′ )
forI
suhthat∃c : [1; ∞[→
[1; ∞[
,|S ′ |/OPT(I ′ ) ≤ ρ = ⇒ |S|/OPT(I) ≤ c(ρ)
;[3℄
A Π
is a PTAA forΠ
and, ifS
andS ′
denote the solutions returned byA Π
andA Π ′
onI
and
I ′
, respetively, thenS = ψ(S ′ )
.We willdenoteby
Π ֒ → (Π ′ , A Π ′ )
thefatthatΠ
ispseudo-reduibleto(Π ′ , A Π ′ )
withc(ρ) = ρ
.Pseudo-redution diers from lassial redutions by the fat that funtions
ϕ
andψ
are notonstrained to be omputable in time polynomial in
|I |
, and that, givena PTAAA Π ′
forΠ ′
, weareonlyinterested,in solutionsomputed byalgorithm
A Π ′
inI ′
. Anothermeaningfuldiereneisalsothatsolution
S = ϕ(S ′ )
forI
isnotontruted polynomiallyfromS ′
(I ′
isnot,ingeneral,onstrutible in polynomial time), but it is onstruted diretly on
I
by a kind of simulationof algorithm
A Π ′
. SineA Π ′ (I ′ )/OPT(I ′ ) ≤ ρ = ⇒ A Π (I )/OPT(I ) ≤ c(ρ)
, ifc(ρ) = ρ
, then thepseudo-redution an be onsidered as approximation-preserving. We thus have the following
proposition.
Proposition 1. If
Π ֒ → (Π ′ , A Π ′ )
andA Π ′
approximately solves (inpolynomialtime)Π ′
withinratio
ρ
, thenΠ
is polynomially approximable withinρ
.We haveseen in the proofoftheorem 1that, for overing (resp., partitioning) M-STproblems,
triple
(ϕ, ψ, MSGREEDY)
(resp.,(ϕ, ψ ◦ h, MSGREEDY)
) satisesdenition3. We an thus reover aonept ofompleteness to our pseudo-redution.
Proposition 2. WSCisM-ST-hard, inthesensethat
∀Π ∈
M-ST,Π ֒ → (WSC, WSCGREEDY)
.From propositions 1 and 2 we nd again our former result, namely every M-ST problem is
approximable within logarithmi ratio.
Referenes
[1℄ L.Alfandari. Approximationdeproblèmesde ouverture etdepartitionnementde graphes.
PhD Thesis. LAMSADE, UniversitéParis-Dauphine. Inpreparation.
[2℄ L.AlfandariandV.Th.Pashos. Approximatingtheminimum-weight rootedspanningtree
with radius lessthan two. Manusript, 1997.
[3℄ B. B. Boppana and M. M. Halldórsson. Approximating maximum independent sets by
exluding subgraphs. BIT,32(2):180196,1992.
[4℄ V. Chvátal. A greedy-heuristi for the set overing problem. Math. Oper. Res.,4:233235,
1979.
[5℄ P. Cresenzi and A. Panonesi. Completeness in approximation lasses. In Pro. Funda-
mentals of Computation Theory,number 380 in Leture Notes in Computer Siene,pages
116126. Springer Verlag, 1989.
[6℄ M. R. Garey and D. S. Johnson. Computers and intratability. A guide to the theory of
NP-ompleteness. W. H.Freeman, SanFraniso, 1979.
[7℄ D.S. Hohbaum. Eientboundsfor thestableset, vertexover andsetpakingproblems.
Disrete Appl. Math.,6:243254, 1983.
[8℄ D. S. Johnson. Approximation algorithms for ombinatorial problems. J. Comput. System
Si., 9:256278, 1974.
[9℄ D. S. Johnson. Worst-ase behavior of graph-oloring algorithms. In Pro. South-Eastern
Conferene on Combinatoris,GraphTheory andComputing, pages513528, 1974.
[10℄ J. B. Kruskal. On the shortest spanning subtree of a graph and the traveling salesman
problem. Pro. Amer. Math.So.,7(1):4850, 1956.
Optimization. Université Paris I, 1991.
[12℄ A. Panonesi and D. Ranjan. Quantiers and approximation. In Pro. STOC'90, pages
446456, 1990.
[13℄ H. U. Simon. On approximate solutions for ombinatorial optimization problems. SIAM
J. Dis. Math.,3(2):294310, 1990.
[14℄ P. Slavík. A tight analysis ofthe greedy algorithm for set over. In Pro. STOC'96,pages
435441, 1996.
[15℄ G. Yu and O.Goldsmidt. Onloallyoptimal independent sets and vertex overs. InPro.
International Fedration for Information Proessing,pages 533542, 1993.