• Nem Talált Eredményt

Multi-budgeted Directed Cuts

N/A
N/A
Protected

Academic year: 2022

Ossza meg "Multi-budgeted Directed Cuts"

Copied!
21
0
0

Teljes szövegt

(1)

https://doi.org/10.1007/s00453-019-00609-1

Multi-budgeted Directed Cuts

Stefan Kratsch1·Shaohua Li2·Dániel Marx3·Marcin Pilipczuk2 · Magnus Wahlström4

Received: 16 October 2018 / Accepted: 11 July 2019 / Published online: 2 August 2019

© The Author(s) 2019

Abstract

In this paper, we study multi-budgeted variants of the classic minimum cut problem and graph separation problems that turned out to be important in parameterized complexity:

Skew MulticutandDirected Feedback Arc Set. In our generalization, we assign colors 1,2, . . . , to some edges and give separate budgetsk1,k2, . . . ,k for colors 1,2, . . . , . For every colori∈ {1, . . . , }, letEi be the set of edges of colori.

The solutionCfor the multi-budgeted variant of a graph separation problem not only needs to satisfy the usual separation requirements (i.e., be a cut, a skew multicut, or a directed feedback arc set, respectively), but also needs to satisfy that|C∩Ei| ≤ki

for everyi ∈ {1, . . . , }. Contrary to the classic minimum cut problem, the multi- budgeted variant turns out to be NP-hard even for=2. We propose FPT algorithms parameterized byk=k1+ · · · +kfor all three problems. To this end, we develop a branching procedure for the multi-budgeted minimum cut problem that measures the progress of the algorithm not by reducingkas usual, by but elevating the capacity of some edges and thus increasing the size of maximum source-to-sink flow. Using the fact that a similar strategy is used to enumerate all important separators of a given size, we merge this process with the flow-guided branching and show an FPT bound on the number of (appropriately defined) important multi-budgeted separators. This allows us to extend our algorithm to theSkew MulticutandDirected Feedback Arc Setproblems. Furthermore, we show connections of the multi-budgeted variants with weighted variants of the directed cut problems and theChain- SATproblem, whose parameterized complexity remains an open problem. We show that these problems admit a bounded-in-parameter number of “maximally pushed” solutions (in a similar spirit as important separators are maximally pushed), giving somewhat weak evidence towards their tractability.

Keywords Important separators·Multi-budgeted cuts·Directed feedback vertex set·Fixed parameter tractability·Minimum cut

A preliminary version of this paper has been presented at IPEC 2018 [19].

Extended author information available on the last page of the article

(2)

1 Introduction

Graph separation problems are important topics in both theoretical area and applica- tions. Although the famous minimum cut problem is known to be polynomial-time solvable, many well-known variants are NP-hard, which are intensively studied from the point of view of approximation [1,2,11,13,14,18] and, what is more relevant for this work, parameterized complexity.

The notion of important separators, introduced by Marx [24], turned out to be fundamental for a number of graph separation problems such as Multiway Cut [24],Directed Feedback Vertex Set[4], orAlmost2- CNF SAT[29]. Further work, concerning mostly undirected graphs, resulted in a wide range of involved algorithmic techniques: applications of matroid techniques [20,21], shadow removal [8,27], randomized contractions [5], LP-guided branching [10,15–17], and treewidth reduction [26], among others.

From the above techniques, only the notion of important separators and the related technique of shadow removal generalizes to directed graphs, giving FPT algorithms for Directed Feedback Arc Set[4],Directed Multiway Cut[8], andDirected Subset Feedback Vertex Set[7]. As a result, the parameterized complexity of a number of important graph separation problems in directed graphs remains open, and the quest to investigate them has been put on by the third author in a survey from 2012 [25]. Since the publication of this survey, two negative answers have been obtained.

Two authors of this work showed thatDirected Multicutis W[1]-hard even for four terminal pairs (leaving the case of three terminal pairs open) [28], while Lokshtanov et al. [23] showed intractability ofDirected Odd Cycle Transversal.

During an open problem session at Recent Advancements in Parameterized Com- plexity school (December 2017) [12], Saurabh posed the question of parameterized complexity of a weighted variant ofDirected Feedback Arc Set, where given a directed edge-weighted graphG, an integerk, and a target weightw, the goal is to find a setXE(G)such thatGXis acyclic andXis of cardinality at mostkand weight at mostw. Consider a similar problemWeightedst- cut: given a directed graphG with positive edge weights and two distinguished verticess,tV(G), an integerk, and a target weightw, decide ifGadmits anst-cut of cardinality at mostkand weight at mostw. The parameterized complexity of this problem parameterized bykis open even ifGis restricted to be acyclic, while with this restriction the problem can easily be reduced toDirected Feedback Arc Set(add an arc(t,s)of prohibitively large weight).

The Weightedst- cutproblem becomes similar to another directed graph cut problem, identified in [6], namelyChain- SAT. While this problem is originally formulated in CSP language, the graph formulation is as follows: given a directed graphGwith a partition of edge setE(G)=P1P2. . .Pmsuch that eachPiis an edge set of a simple path of length at most(the input paths could have common nodes), an integerk, and two verticess,tV(G), find anst-cutCE(G)such that

|{i|C∩Pi = ∅}| ≤k. This problem can easily be seen to be equivalent to minimum st-cut problem (and thus polynomial-time solvable) for ≤ 2, but is NP-hard for ≥ 3 and its parameterized complexity (withk as a parameter) remains an open problem.

(3)

In this paper we make progress towards resolving the question of parameterized complexity of the two aforementioned problems: weightedst-cut problem (in general digraphs, not necessary acyclic ones) andChain- SAT. Our contribution is twofold.

Multi-budgeted variantWe define amulti-budgetedvariant of a number of cut prob- lems (including the minimum cut problem) and show its fixed-parameter tractability.

In this variant, the edges of the graph are colored withcolors, and the input specifies separate budgets for each color. More formally, we primarily consider the following problem.

Multi- budgeted cut

InputA directed graphG, two disjoint sets of verticesX,YV(G), an integer , and for everyi ∈ {1,2, . . . , }a setEiE(G)and an integerki ≥1.

QuestionIs there a set of arcsC

i=1Eisuch that there is no directedXY path inG\Cand for everyi ∈ [],|C∩Ei| ≤ki.

Similarly we define multi-budgeted variants of Directed Feedback Arc Set andSkew Multicut(see Sect.4for formal definitions).

We observe thatMulti- budgeted cutfor=2 reduces toWeightedst- cut as follows. Let(G,X,Y,E1,E2,k1,k2)be aMulti- budgeted cutinstance for =2. First, observe that we may assume thatE1E2= ∅, as we can replace every edgeeE1E2with two copiese1E1\E2ande2E2\E1. Second, construct an equivalentWeightedst- cutinstance(G,s,t,k, w)as follows. To constructG, first add two verticess,ttoGand edges{(s,x)|xX}and{(y,t)|yY}of prohibitively large weight. Assign also prohibitively large weight to every edgeeE(G)\(E1E2). Assign weight(k1+1)k2+1 to every edgeeE1. For every edgeeE2, addk1+1 copies ofetoGof weight 1 each. Finally, setk:=(k1+1)·k2+k1as the cardinality bound andw:=k1((k1+1)k2+1)+(k1+1)k2as the target weight. The equivalence of the instances follows from the fact that the cardinality bound allows to pick in the solution at mostk2bundles ofk1+1 copies of an edge ofE2, while the weight bound allows to pick onlyk1edges ofE1.

Thus,Multi- budgeted cutfor=2 corresponds to the case ofWeightedst- cutwhere the weights are integral and both target cardinality and weight are bounded in parameter.1This connection was our primary motivation to study the multi-budgeted variants of the cut problems.

Contrary to the classic minimum cut problem, in Sect.6 we note that Multi- budgeted Cutbecomes NP-hard for≥2.2We show thatMulti- budgeted Cut is FPT when parameterized byk =k1+ · · · +k. For this problem, our branching strategy is as follows. First, note that in the problem definition we assume that eachki

is positive, and thusk. A standard application of the Ford–Fulkerson algorithm gives a minimumX Y-cutCof sizeλandλedge-disjointX−Y pathsP1,P2, . . . ,Pλ.

1 For a reduction in the other direction, replace every arceof weightω(e)with one copy of color 1 and ω(e)copies of color 2, and set budgetsk1=kandk2=w.

2 We believe this problem must have been formulated already before and proven to be NP-hard. However, we were not able to find it in the literature, and thus we provide our own simple NP-hardness reduction for completeness.

(4)

IfC is a solution, then we are done. Similarly, ifλ > k, then there is no solution.

Otherwise, we branch which colors of the sought solution should appear on each paths Pj; that is, for every i ∈ []and j ∈ [λ], we guess if PjEi contains an edge of the sought solution, and in each guess assign infinite capacities to the edges of wrong color. If this change increased the size of a maximum flow from X toY, then we can charge the branching step to this increase, as the size of the flow cannot exceedk. The critical insight is that if the size of the maximum flow does not increase (i.e., P1, . . . ,Pλ remains a maximum flow), then a corresponding minimum cut is necessarily a solution. As a result, we obtain the following.

Theorem 1 Multi- budgeted Cut admits an FPT algorithm with running time boundO(2k2·k·(|V(G)| + |E(G)|))where k =

i=1ki.

The charging of the branching step to a flow increase appears also in the classic argument for bound of the number of important separators [4] (see also [9, Chapter 8]).

We observe that our branching algorithm can be merged with this procedure, yielding a bound (as a function ofk) and enumeration procedure of naturally defined multi- budgeted important separators. This in turn allows us to generalize our FPT algorithm toMulti- budgeted Skew MulticutandMulti- budgeted Directed Feed- back Arc Set.

Theorem 2 Multi- budgeted Skew MulticutandMulti- budgeted Directed Feedback Arc Set admit FPT algorithms with running time bound 2O(k3logk) (|V(G)| + |E(G)|)where k=

i=1ki.

The arguments forMulti- budgeted Cutare presented in Sect.3. The general- ization for important separators is contained in Sect.4.

Bound on the number of pushed solutionsWhile we are not able to establish fixed- parameter tractability of the weighted variant of the minimum cut problem (even in acyclic graphs) nor of Chain- SAT, we show the following graph-theoretic state- ment. Consider a directed graphGwith two distinguished verticess,tV(G). For two (inclusion-wise) minimalst-cutsC1,C2we say thatC1is closer to tthanC2if every vertex reachable fromsinGC2is also reachable fromsinGC1. A classic submodularity argument implies that there is exactly one closest totminimumst-cut, while the essence of the notion of important separators is the observation that there is bounded-in-knumber of minimal separators of cardinality at mostkthat are closest to t. In Sect.5we show a similar existential statement for the two discussed problems.

Theorem 3 For every integer k there exists an integer g such that the following holds.

Let G be a directed graph with positive edge weights and two distinguished vertices s,tV(G). LetF be a family of all st -cuts that are of minimum weight among all (inclusion-wise) minimal st -cuts of cardinality at most k. LetGFbe the family of those cuts C such that no other cut ofFis closer to t . Then|G| ≤g.

Theorem 4 For every integers k, there exists an integer gsuch that the following holds. Let I :=(G,s,t, (Pi)mi=1,k)be aChain- SATinstance that is a yes-instance but(G,s,t, (Pi)mi=1,k−1)is a no-instance. LetFbe a family of all (inclusion-wise) minimal solutions to I and letGFbe the family of those cuts C such that no other cut ofFis closer to t . Then|G| ≤g.

(5)

Unfortunately, our proof is purely existential, and does not yield an enumeration procedure of the “closest tot” solutions.

2 Preliminaries

For an integern, we denote[n] = {1,2, . . . ,n}. For a directed graphG, we useV(G) to represent the set of vertices ofGandE(G)to represent the set of directed edges of G. In all multi-budgeted problems, the directed graphGcomes with setsEiE(G) fori ∈ []which we refer ascolors. That is, an edgeeisof color iifeEi, and of no colorifeE(G)\

i=1Ei. Note that an edge may have many colors, as we do not insist on the setsEibeing pairwise disjoint.

Let X andY be two disjoint vertex sets in a directed graphG, an X Y-cut ofG is a set of edgesC such that every directed path from a vertex inX to a vertex inY contains an edge ofC. A cutCisminimalif no proper subset ofCis anX Y-cut, and minimumifCis of minimum possible cardinality. LetCbe anX Y-cut and letRbe the set of vertices reachable fromXinG\C. We defineδ+(R)= {(u, v)∈ E(G)|uR andv /R}and note that ifCis minimal, thenδ+(R)=C.

Let(G,X,Y, , (Ei,ki)i=1)be aMulti- budgeted cutinstance and letCbe an X Y-cut. We say thatC isbudget-respectingifC

i=1Ei and|CEi| ≤ki for everyi ∈ []. For a set ZE(G)we say thatCis Z-respectingifCZ. In such contexts, we often call Z theset of deletable edges. An X Y-cutC is aminimum Z - respecting cutif it is aZ-respectingX Y-cut of minimum possible cardinality among allZ-respectingX Y-cuts.

Our FPT algorithms start with Z =

i=1Ei and in branching steps shrink the set Z to reduce the search space. We encapsulate our use of the classic Ford–Fulkerson algorithm in the following statement.

Theorem 5 Given a directed graph G, two disjoint sets X,YV(G), a set ZE(G), and an integer k, one can in O(k(|V(G)| + |E(G)|)) time either find the following objects:

λpaths P1,P2, . . . ,Pλsuch that every Pi starts in X and ends in Y , and every edge eZ appears on at most one path Pi;

– a set BZ consisting of all edges of G that participate in some minimum Z -respecting X Y -cut;

– a minimum Z -respecting X Y -cut C of sizeλthat is closest to Y among all minimum Z -respecting X Y -cuts;

or correctly conclude that there is no Z -respecting X Y -cut of cardinality at most k.

Proof Assign capacity 1 to every edge of Z and capacity+∞to every edge not in Z. Run k+1 rounds of the Ford–Fulkerson algorithm. If the final flow exceeded k, return that there is no Z-respecting X Y-cut of cardinality at mostk. Otherwise, decompose the final flow into unit flow paths P1, . . . ,Pλ in a standard manner. For the setB, observe thatBconsists of exactly those edges that are fully saturated in the flow network, and their reverse counterparts in the residual network are not contained in a single strongly connected component of the residual network (and thus can be

(6)

MultiBudgetedCut(G, X, Y, ,(Ei, ki)i=1)

Input: A directed graphG, two disjoint set of verticesX, Y V(G), an integer, for everyi[] a setEiE(G) and an integerk.

Output: anXY cutC

i=1Eisuch that for everyi[],|CEi| ≤kiif it exists, otherwise return NO.

1.Z:=

i=1Ei; 2.return Solve(Z);

Solve(Z)

a. apply Theorem 5 to (G, X, Y, k, Z) wherek=

i=1ki, obtaining objects (Pi)λi=1, B, andC, or an answer NO;

b.ifthe answer NO is obtained,then returnNO;

c.ifCis budget-respecting,then returnC;

d.for each(A1, ..., A) such that for everyiin [],Ai[λ] and|Ai| ≤kido d.1 Z:=Z;

d.2 for eachi[]do for eachj[λ]\Aido

Z:=Z\(EiE(Pj));

d.3 D=Solve(Z);

d.4 ifD=NOthen returnD; e.returnNO;

Fig. 1 FPT algorithm forMulti- budgeted cut

discovered in linear time). Finally, observe that the sought cutCconsists of the last

edge ofBon every pathPi.

3 Multi-budgeted Cut

We now give an FPT algorithm parameterized by k = i=1ki for the Multi- budgeted cut problem. We follow a branching strategy that recursively reduces a set Z of deletable edges. That is, we start withZ =

i=1Ei (so that every solu- tion is initially Z-respecting) and in each recursive step, we look for aZ-respecting solution and reduce the setZ in a branching step.

Consider a recursive call where we look for a Z-respecting solution to the input Multi- budgeted cutinstance(G,X,Y, , (Ei,ki)i=1). That is, we look for aZ- respecting budget-respecting cut. We apply Theorem5to it. If it returns that there is noZ-respectingX Y-cut of size at mostk, we terminate the current branch, as there is no solution. Otherwise, we obtain the pathsP1,P2, . . . ,Pλ, the setB(which we will not use in this section), and the cutC.

IfCis budget-respecting, then it is a solution and we can return it. Otherwise, we perform the following branching step. We iterate over all tuples(A1, . . . ,A)such that for everyi ∈ [], Ai ⊆ [λ]and|Ai| ≤ ki. Ai represents the subset of paths P1, . . . ,Pλon which at least one edge of coloriis in the solution for eachi ∈ []. For those edges of coloriwhich are on the paths not indicated by Ai, they are not in the solution. Thus we can safely delete them fromZ. More formally, for everyi ∈ []and j ∈ [λ]\Ai, we remove fromZ all edges ofE(Pj)Ei. We recurse on the reduced setZ. A pseudocode is available in Fig.1.

(7)

Theorem 6 The algorithm in Fig.1for Multi- budgeted cutis correct and runs in time O(2k2·k·(|V(G)| + |E(G)|))where k=i=1ki.

Proof We prove the correctness of the algorithm by showing that it returns a solution if and only if the input instance is a yes-instance. The “only if” direction is obvious, as the algorithm returns onlyZ-respecting budget-respectingX Y-cuts andZ

i=1Ei

in each recursive call.

We prove the correctness for the “if” direction. Let C0 be a solution, that is, a budget-respectingX Y-cut. In the initial call toSolve,C0isZ-respecting. It suffices to inductively show that in each call toSolvesuch thatC0isZ-respecting, either the call returns a solution, orC0isZ-respecting for at least one of the subcalls. SinceC0is Z-respecting, the application of Theorem5returns objects(Pi)λi=1,B, andC. IfCis budget-respecting, then the algorithm returns it and we are done. Otherwise, consider the branch(A1,A2, . . . ,A)where Ai = {j|E(Pj)EiC0 = ∅}. SinceC0is budget-respecting,C0Z, and no edge ofZappears on more than one path Pj, we have|Ai| ≤ki for everyi ∈ []. Thus,(A1,A2, . . . ,A)is a branch considered by the algorithm. In this branch, the algorithm refines the setZ toZ. By the definition of Ai, for everyi ∈ []and j ∈ [λ]\Ai, we haveC0EiE(Pj)= ∅. Consequently, C0isZ-respecting and we are done.

For the time bound, the following observation is crucial.

Claim Consider one recursive callSolve(Z)where the application of Theorem5in line (a) returned objects(Pi)λi=1, B andC. Assume that in some recursive subcall Solve(Z)invoked in line (d.3) (Fig.1), the subsequent application of Theorem5in line (a) of the subcall returned a cut of the same size, that is, the algorithm of Theorem5 returned a cutCof sizeλ=λ. Then the cutCis budget-respecting and, consequently, is returned in line (c) of the subcall.

Proof Since|C| = λis aZ-respectingX Y-cut,ZZ, and every edgeeZappears on at most one path Pi, we have thatCconsists of exactly one edge of Z on every pathPi, that is,C= {e1,e2, . . . ,eλ}andejE(Pj)Z for every j ∈ [λ]. In other words, the paths(Pj)λj=1still correspond to a maximum flow fromXtoY with edges ofZ being of unit capacity and edges outsideZ of infinite capacity because(Pj)λj=1 are paths satisfying that any two of them are disjoint onZZandλis still equal to the size of the maximum flow. IfejEi for some j ∈ [λ]andi ∈ [], then by the construction of setZ, we have jAi. Consequently,|{j|ejEi}| ≤ |Ai| ≤ki for

everyi ∈ [], and thusCis budget-respecting.

Claim3 implies that the depth of the search tree is bounded byk, as the algorithm terminates whenλexceedsk. At every step, there are at most(2λ)(2k)different tuples(A1, . . . ,A)to consider. Consequently, there are O(2(k1)k)nodes of the search tree that enter the loop in line (d) andO(2k2)nodes that invoke the algorithm of Theorem5. As a result, the running time of the algorithm isO(2k2·k·(|V(G)| +

|E(G)|)).

(8)

4 Multi-budgeted Important Separators with Applications

Similar to the concept of important separators proposed by Marx [24] (see also [9, Chapter 8]), we definemulti-budgeted important separatorsas follows.

Definition 1 Let(G,X,Y, , (Ei,ki)i=1)be aMulti- budgeted cutinstance and letZ

i=1Eibe a set of deletable edges. LetC1,C2be two minimalZ-respecting budget-respectingX Y-cuts. We say thatC1dominates C2if

1. every vertex reachable fromX inGC2is also reachable fromX inGC1; 2. for everyi ∈ [],|C1Ei| ≤ |C2Ei|.

We say thatCis animportant Z-respecting budget-respecting X Y -cutifCis a minimal Z-respecting budget-respecting X Y-cut and no other minimalZ-respecting budget- respecting X Y-cut dominatesC.Cis animportant budget-respecting X Y -cutif it is animportant Z -respecting budget-respecting X Y -cutfor Z =

i=1Ei.

Chen et al. [4] showed an enumeration procedure for (classic) important separators using similar charging scheme as the one of the previous section. Our main result in this section is a merge of the arguments from the previous section with the arguments of Chen et al., yielding the following theorem.

Theorem 7 Let(G,X,Y, , (Ei,ki)i=1)be aMulti- budgeted cutinstance, let Z

i=1Ei be a set of deletable edges, and denote k =

i=1ki. Then one can in2O(k2logk)(|V(G)| + |E(G)|)time enumerate a family of minimal Z -respecting budget-respecting X Y -cuts of size2O(k2logk)that contains all important ones.

Theorem 2 follows from Theorem 7 via an analogous arguments as in [4]; we postpone them to Sect.4.1. First, we focus on the proof of Theorem7.

Proof of Theorem7. Consider the recursive algorithm presented in Fig.2. The recur- sive procedureImportantCut takes as an input aMulti- budgeted Cutinstance I = (G,X,Y, , (Ei,ki)i=1)and a set Z

i=1Ei, with the goal to enumerate all important Z-respecting budget-respecting X Y-cuts. Note that the procedure may output some more Z-respecting budget-respecting X Y-cuts; we need only to ensure that

1. It outputs all important ones, 2. It outputs 2O(k2logk)cuts, and 3. It runs within the desired time.

The procedure first invokes the algorithm of Theorem5on(G,X,Y,k,Z), where k=

i=1ki. If the call returned that there is noZ-respectingX Y-cut of size at mostk, we can return an empty set. Otherwise, let(Pj)λj=1,B, andCbe the computed objects.

We perform a branching step, with each branch labeled with a tuple(A1,A2, . . . ,A) where Ai ⊆ [λ] and|Ai| ≤ ki for everyi ∈ []. A branch(A1,A2, . . . ,A)is supposed to capture important cutsC0with{j|C0BE(Pj)Ei = ∅} ⊆ Ai for everyi ∈ []; that is, for everyi ∈ []andj ∈ [λ]we guess ifC0contains abottleneck edge of colori on path Pj. All this information (i.e., pathsPj, the set B, the cutC, and the setsAi) are passed to an auxiliary procedureEnum.

(9)

ImportantCut(I, Z)

Input: A Multi-budgeted cut instance I = (G, X, Y, ,(Ei, ki)i=1) and a set Z

i=1Ei.

Output: a familySof minimalZ-respecting budget-respectingXY-cuts that con- tains all important ones.

1.S:=;

2. apply the algorithm of Theorem 5 to (G, X, Y, k, Z) withk=

i=1ki, obtaining either objects (Pi)λi=1,B, andC, or an answer NO;

3.ifan answer NO is obtained,then returnS;

4.for each(A1, ..., A) such that for everyiin [],Ai[λ] and|Ai| ≤kido 4.1 S:=S ∪Enum(I, Z,(Pj)λj=1, B, C,(Ai)i=1)

5.returnS

Enum(I, Z,(Pj)λj=1, B, C,(Ai)i=1)

Input: AMulti-budgeted cutinstance I = (G, X, Y, ,(Ei, ki)i=1), a setZ

i=1Ei, a family (Pj)λj=1of paths fromXtoY such that every edge ofZappears on at most one pathPj, a setB consisting of all edges that participate in some minimumZ-respectingXY-cut, a minimumZ-respectingXY-cutCclosest toY, and setsAi[λ] of size at mostkifor everyi[]

Output: a familySof minimalZ-respecting budget-respectingXY-cuts that con- tains all cutsC0that are importantZ-respecting budget respectingXY-cuts and satisfy{j|E(Pj)BC0Ei=∅} ⊆Aifor everyi[].

a.Z:=Z;

b.for eachi[]do

for eachj[λ]\Aido Z:=Z\(BEiE(Pj));

c. apply the algorithm of Theorem 5 to (G, X, Y, k,Z), obtaining either objects (Pi)λi=1 ,B, andCor an answer NO;

d.ifλexists andλ > λ,then d.1 S:=S∪ImportantCut(I,Z);

e.else ifλexists and equalsλ,then e.1 S:=S ∪ {C} ;

e.2 for eachi[]do for eachjAido

Ai:=Ai\ {j}andAi:=Aifor everyi[]\ {i}

S:=S ∪Enum(I,Z,(Pj)λj=1,B, C,(Ai)i=1).

f.returnS

Fig. 2 FPT algorithm for enumerating important multi-budgetedZ-respectingX Y-cuts

The procedureEnumshrinks the set Z according to sets Ai. More formally, for everyi ∈ []andj∈ [λ]\Aiwe delete fromZall edges fromB∩Ei∩E(Pj), obtaining a setZZ. At this point, we check if the reduction of the setZ toZ increased the size of minimum Z-respecting X Y-cut by invoking Theorem 5on(G,X,Y,k,Z) and obtaining objects(Pj)λj=1,B,Cor a negative answer. If the size of the minimum cut increased, that is,λ > λ, we recurse with the original procedureImportantCut.

Otherwise, we add one cut toS, namelyC. Furthermore, we try to shrink one of the sets Ai by one and recurse; that is, for everyi ∈ []and every jAi, we recurse with the procedureEnumon sets Ai where Ai = Ai\{j}andAi = Ai for every i∈ []\{i}.

Let us first analyze the size of the search tree. A call toImportantCut invokes at most λ

k

(k+1)k calls to Enum. Each call to Enumeither falls back to ImportantCut ifλ > λor branches into

i=1|Ai| ≤ krecursive calls to itself.

(10)

In each recursive call, the sum

i=1|Ai|decreases by one. Consequently, the initial call toEnumresults in at most(k)krecursive calls, each potentially falling back to ImportantCut. Since each recursive call toImportantCutuses strictly larger value ofλ, which cannot grow larger thank, andk, the total size of the recursion tree is 2O(k2logk). Each recursive call toEnumadds at most one set toS, while each recursive call toImportantCutandEnumruns in timeO(2k·k·(|V(G)| + |E(G)|)). The promised size of the familySand the running time bound follows. It remains to show correctness, that is, that every important Z-respecting budget-respecting X Y-cut is contained inSreturned by a call toImportantCut(I,Z).

We prove by induction on the size of the recursion tree that (1) every call toImpor- tantCut(I,Z)enumerates all importantZ-respecting budget-respectingX Y-cuts, and (2) every call toEnum(I,Z, (Pj)λj=1,B,C, (Ai)i=1)enumerates all important Z- respecting budget-respectingX Y-cutsC0with the property that{j|EiE(Pj)BC0= ∅} ⊆ Ai for everyi ∈ [].

The inductive step for a callImportantCut(I,Z)is straightforward. Let us fix an arbitrary important Z-respecting budget-respectingX Y-cutC0. SinceC0is budget- respecting, C0 is a Z-respecting cut of size at mostk, and thus the initial call to Theorem5cannot return NO. Consider the tuple(A1,A2, . . . ,A)where for every i ∈ [],{j|E(Pj)∩EiBC0} = Ai. SinceC0is budget-respecting and the pathsPj

do not share an edge ofZ, we have that|Ai| ≤kifor everyi∈ []and the algorithm considers this tuple in one of the branches. Then, from the inductive hypothesis, the corresponding call toEnumreturns a set containingC0.

Consider now a call toEnum(I,Z, (Pj)λj=1,B,C, (Ai)i=1)and an importantZ- respecting budget-respecting X Y-cuts C0 with the property that {j|EiE(Pj)BC0 = ∅} ⊆ Ai for every i ∈ []. By the construction of Z and the above assumption,C0isZ-respecting. In particular, the call to the algorithm of Theorem5 cannot return NO. Hence, in the case whenλ > λ,C0is enumerated by the recursive call toImportantCutand we are done. Assume thenλ=λ.

Fori ∈ [], let Ai = {j|EiE(Pj)BC0 = ∅}. SinceZZ but the sizes of minimumZ-respecting andZ-respectingX Y-cuts are the same, we have BB.

Consequently,AiAi for everyi∈ [].

Assume there existsi ∈ []such that Ai Ai and let jAi\Ai. Consider then the branch(i,j) of theEnumprocedure, that is, the recursive call with Ai =Ai\{j} and Ai = Ai fori ∈ []\{i}. Observe that we have{j|EiE(Pj)BC0 =

∅} ⊆ Ai for everyi ∈ []and, by the inductive hypothesis, the corresponding call toEnum enumeratesC0. Hence, we are left only with the case Ai = Ai, that is,

Ai = {j|EiE(Pj)BC0= ∅}for everyi∈ [].

We claim that in this case C0 = C. Assume otherwise. Since |C| = λ = λ and ZZ,Ccontains exactly one edge on every path Pj. Also,CB by the definition of the set B. SinceCis the minimumZ-respecting X Y-cut that is closest toY,C= {e1,e2, . . . ,eλ}whereej is the last (closest toY) edge ofBon the pathPj

for every j ∈ [λ].

Let R0 and Rbe the set of vertices reachable from X inGC0 and GC, respectively. LetDbe a minimalX Y-cut contained inδ+(R0R). (Note thatδ+(R0R)is anX Y-cut becauseXR0RandY∩(R0R)= ∅.) Then sinceDC0C

(11)

Z,DisZ-respecting. By definition, every vertex reachable fromXinGR0is also reachable fromXinGD.

We claim thatDis budget-respecting and, furthermore, dominatesC0. Fix a color i ∈ []; our goal is to prove that|DEi| ≤ |C0Ei|. To this end, we charge every edge of colori inD\C0to a distinct edge of colori inC0\D. Since DC0C, we have thatD\C0C, that is, an edge of D\C0of colori is an edgeej for some

j∈ [λ]withejEi andejD\C0.

Recall that we are working in the case Ai = {j|EiE(Pj)BC0= ∅}. Since ejCZ, we have that jAi. Hence, there existsejEiE(Pj)BC0. By the definition ofC, ej is the last (closest toY) edge ofB onPj. Sinceej/ C0, ej = ej andej lies on the subpath of Pj betweenX and the tail ofej. This entire subpath is contained inRand, hence,ej/ D.

We chargeej toej. SinceejE(Pj)EiB(C0\D), for distinct j, the edges ej are distinct as the pathsPj do not share an edge belonging toZ andBZZ. Consequently,|D∩Ei| ≤ |C0Ei|. This finishes the proof thatDdominatesC0.

SinceC0is important, we haveD=C0. In particular,RR0. On the other hand, for everyj ∈ [λ]we have thatejCZZ

i=1Ei. In particular, there exists i ∈ []such thatejEiandjAi. Hence, we also haveEiE(Pj)BC0= ∅.

But the entire subpath ofPjfromXto the tail ofejlies inRR0, whileejis the last edge ofBonPj. Hence,ejC0. Since the choice of jis arbitrary,CC0. SinceC is anX Y-cut andC0is minimal,C=C0as claimed.

This finishes the proof of Theorem7.

4.1 Applications

TheDirected Feedback Arc Setproblem is a classic problem that played major role in the development of parameterized complexity. In this problem, given a directed graphGand an integerk, the problem is to decide if there exists an arc setSof size at mostksuch thatGShas no directed cycles. The multi-budgeted variant is defined as follows.

Multi- budgeted Directed Feedback Arc Set

InputA directed graphG, an integer, and for everyi ∈ {1,2, . . . , }a set EiE(G)and an integerki ≥1.

QuestionIs there a set of arcsS

i=1Ei such that there is no directed cycle inGSand for everyi ∈ [],|S∩Ei| ≤ki.

The first FPT algorithm for theDirected Feedback Arc Setproblem is given by Chen et al. [4]. In their algorithm, they use iterative compression and reduce the Directed Feedback Arc Setcompression problem to theSkew Edge Multicut problem. They propose a pushing lemma forSkew Edge Multicutand solveSkew Edge Multicut through enumerating important cuts. We show that for the multi- budgeted variant, a similar strategy works with the help of Theorem7. Formally, the Multi- budgeted Skew Edge Multicutproblem is defined as follows.

(12)

Multi- budgeted Skew Edge Multicut

InputA directed graphG, an integer, for everyi ∈ {1,2, . . . , }a set EiE(G)and an integerki ≥1, and a sequence(si,ti)qi=1of terminal pairs.

QuestionIs there a set of arcsC

i=1Ei such that there is no directed path fromsitotj for anyij inGCand for everyi ∈ [],|CE(i)| ≤ki? As in the case of Multi- budgeted Cut, the assumption thatki ≥ 1 for every i ∈ []impliesk.

We start by observing a direct corollary of the maximality criterium in the definition of important budget-respecting separators.

Lemma 1 Given an instance (G,X,Y, , (Ei,ki)i=1) of Multi- budgeted cut, for every minimal budget-respecting X Y -cut C there exists an important budget- respecting X Y -cut Cthat dominates C.

Similar to the pushing lemma forSkew Edge Multicut[4], we propose a pushing lemma for the multi-budgeted variant.

Lemma 2 Every yes-instance I = (G, , (Ei,ki)i=1, (si,ti)qi=1) of Skew Edge Multicut admits a solution that contains an important budget-respecting X Y -cut for X = {sq}and Y = {t1,t2, . . . ,tq}.

Proof LetC be a solution to I. Let X = {sq},Y = {t1, . . . ,tq}, andRbe the set of vertices reachable fromsqinGC. SinceCis a solution,δ+(R)Cis a budget- respecting X Y-cut; let Dδ+(R)be a minimal one. By Lemma1, there exists an important budget-respectingX Y-cutDdominatingD. LetRbe the set of vertices reachable fromsqinGD. We claim thatC:=(C\D)Dis a solution toI as well.

Suppose for contradiction that there is a directed pathPfromsitotjfor someij inG−C. IfPcontains one vertex ofR, it contradicts thatDis anX Y-cut becauseP must contain one edge ofD. ThusPis disjoint fromR. SinceRR,Pis disjoint fromR, and hencePis disjoint fromD. SincePis not cut byC=(C\D)D,P is not cut byC\D. It follows thatPis not cut byC =(C\D)D, contradicting that Cis a solution.

To complete the proof, note that for everyi ≤ []we have|DEi| ≤ |D∩Ei| sinceDdominatesD, and hence|CEi| ≤ |C∩Ei|. Consequently,Cis budget-

respecting.

Lemma2yields the following branching strategy.

Lemma 3 There is an FPT algorithm forMulti- budgeted Skew Edge Multicut running in time2O(k3logk))·(|V(G)| + |E(G)|).

Proof We perform a recursive branching algorithm where the budgetskiwill decrease, thus we allow instances with the inequalitieski ≥1 violated. Ifki <0 for somei ∈ [], then we can answer NO. Otherwise, ifq =0, then we can answer YES. Otherwise, perform a depth-first search fromsq. If no terminal ti has been reached, delete the

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

Second, Cechlárová and Schlotter in [10] asked for the parameterized complexity of a related problem, where the task is to delete at most k arcs from a directed graph to obtain a

We consider the PAC sample com- plexity problem of computing, with probability 1 −δ, an -optimal action using the smallest possible number of calls to the generative model

⇒ Transforming an Independent Set instance (G , k) into a Vertex Cover instance (G , n − k) is a correct polynomial-time reduction.. However, Vertex Cover is FPT, but Independent Set

Theorem: SHORTEST VECTOR for any and NEAREST VECTOR for any is randomized W[1]-hard to approximate for

Considering the parameterized complexity of the local search approach for the MMC problem with parameter ` denoting the neighborhood size, Theorem 3 shows that no FPT local

Task: classify which classes A of relational structures make the problem fixed-parameter tractable parameterized by the size of the query.... Two

, 9 does not hold for some position i in (F, M ) or one of the first eight properties does not hold for some i in the reversed marked fragmentation (F rev , M rev ), then we will

Theorem: [Grohe, Grüber 2007] There is a polynomial-time algorithm that finds a solution of D ISJOINT DIRECTED CYCLES with OPT/̺(OPT) cycles for some nontrivial function ̺....