• Nem Talált Eredményt

On the Parameterized Complexity of Finding Separators with Non-Hereditary Properties

N/A
N/A
Protected

Academic year: 2022

Ossza meg "On the Parameterized Complexity of Finding Separators with Non-Hereditary Properties"

Copied!
22
0
0

Teljes szövegt

(1)

On the Parameterized Complexity of Finding Separators with Non-Hereditary Properties

?

Pinar Heggernes1, Pim van ’t Hof1, D´aniel Marx2, Neeldhara Misra3, and Yngve Villanger1

1 Department of Informatics, University of Bergen, Norway.

{pinar.heggernes|pim.vanthof|yngve.villanger}@ii.uib.no

2 Computer and Automation Research Institute, Hungarian Academy of Sciences (MTA SZTAKI), Budapest, Hungary.

dmarx@cs.bme.hu

3 The Indian Institute of Science, Bangalore, India.

neeldhara@csa.iisc.ernet.in

Abstract. We study the problem of finding smalls–t separators that induce graphs having certain properties. It is known that finding a minimum cliques–tseparator is polynomial-time solvable (Tarjan 1985), while for example the problems of finding a minimum s–t separator that induces a connected graph or forms an independent set are fixed-parameter tractable when parameterized by the size of the separator (Marx, O’Sullivan and Razgon, ACM Trans. Algor., to appear). Motivated by these results, we study properties that generalize cliques, independent sets, and connected graphs, and determine the complexity of finding separators satisfying these properties. We investigate these problems also on bounded-degree graphs. Our results are as follows:

(1) Finding a minimumc-connecteds–tseparator is FPT forc= 2 andW[1]-hard for anyc≥3.

(2) Finding a minimum s–t separator with diameter at most d is W[1]-hard for any d≥2.

(3) Finding a minimumr-regulars–tseparator isW[1]-hard for anyr≥1.

(4) For any decidable graph property, finding a minimums–tseparator with this prop- erty is FPT parameterized jointly by the size of the separator and the maximum degree.

(5) Finding a connected s–t separator of minimum size does not have a polynomial kernel, even when restricted to graphs of maximum degree at most 3, unless NP⊆ coNP/poly.

In order to prove (1), we show that the naturalc-connected generalization of the well- knownSteiner Treeproblem is FPT forc= 2 andW[1]-hard for anyc≥3.

1 Introduction

One of the classic topics in combinatorial optimization and algorithmic graph theory deals with finding cuts and separators in graphs. Recently, the study of this type of problems from a parameterized complexity point of view has attracted a large amount of interest [5, 7, 13, 17–19, 23–27]. Given a graphGand two verticessandt ofG, a subset of verticesS⊆V(G)\ {s, t}

is ans–tseparatorifsandtappear in different connected components of the graphG−S. In separation problems, we are typically looking for small separators S. A natural extension of the problem is to demandG[S], i.e., the subgraph induced byS, to satisfy a certain property.

?This work is supported by the Research Council of Norway and by the European Research Council (ERC) grant 280152. An extended abstract of this paper was presented at the 38th International Workshop on Graph-Theoretic Concepts in Computer Science (WG 2012) [20].

(2)

(For convenience, when the graphG[S] has a certain property, we will say that the setS itself also has this property. For example, we say that a set S ⊆ V(G) is 2-connected if G[S] is 2-connected.) A classical result in this direction by Tarjan [28] shows that finding smallclique separators is polynomial-time solvable. To our knowledge, this is the only known polynomial- time solvable problem of this type. Therefore, we explore here the problem from the viewpoint of parameterized complexity.

Parameterized complexity associates with every instance of a problem a non-negative integer k, called theparameter. Unless specifically stated otherwise, the parameterkin this paper will always be the size of the separator we are looking for. We usenandmto denote the number of vertices and edges, respectively, in the input graph G. A parameterized problem is fixed- parameter tractable (or FPT) if every instance (x, k) can be solved in time f(k)· |x|O(1) for some functionf that only depends on k[11], where|x|is the size of the instance. By showing that a parameterized problem is W[1]-hard, we can give strong evidence that it is unlikely to be FPT; we refer to [11] for more background on parameterized complexity.

For any graph class G, let us consider the following parameterized problem.

G-Separator

Input:A graphG, two verticessandt ofG, and an integer k.

Parameter:k.

Question: Does G have an s–t separator S of size at most k such that G[S]∈ G?

If G is the class of complete graphs, then G-Separator is polynomial-time solvable by the above-mentioned result of Tarjan [28]. Furthermore, Marx et al. [24, 25] showed that the problem is fixed-parameter tractable for many natural classes G. We say that G is hereditary if, for every graph inG, each of its induced subgraphs also belongs toG.

Theorem 1 ([24, 25]). For any decidable and hereditary graph class G, the G-Separator problem can be solved in timefG(k)·(n+m).

For example, by letting G be the class of all graphs without edges, Theorem 1 shows that finding an independent set of size at mostkseparatingsandtis FPT. The proof is based on a combinatorial statement called Treewidth Reduction Theorem, which shows (roughly speaking) that all the inclusionwise minimals–tseparators lie in a bounded-treewidth part of the graph and hence they can be found efficiently. Note that ifGis hereditary, then we can always assume that the separator is inclusionwise minimal (otherwise we can remove vertices from it without leavingG).

Theorem 1 naturally raises the question what the parameterized complexity of the G- Separatorproblem is for graph classes G that arenothereditary. Perhaps the most natural candidate is the class ofconnected graphs. TheConnected Separatorproblem of deciding whether a graphGhas a connecteds–tseparator of size at mostkhas been studied by Marx et al. [25]. Although it is not immediately clear how to apply the Treewidth Reduction Theorem to this problem, Marx et al. [25] managed to extend their framework from [24] to prove the following result.

Theorem 2 ([25]).TheConnected Separatorproblem can be solved in timef(k)·(n+m).

Our results.Motivated by the results in [24, 25], we study the problem of finding small s–t separators satisfying different non-hereditary properties. Let us focus on the three tractable classes mentioned above (connected graphs, complete graphs, edgeless graphs) and try to in- vestigate further related classes.

(3)

As Connected Separator is FPT, it is natural to explore what happens if we require higher-order connectivity. It turns out that finding ac-connecteds–tseparator of size at most kremains FPT also forc= 2, but becomesW[1]-hard for anyc≥3. In order to prove this, we show that the natural c-connected generalization of the well-known Steiner Tree problem is FPT forc = 2 and W[1]-hard for any c≥3. This result could be of independent interest.

We find it somewhat surprising that the complexity jump occurs when moving fromc= 2 to c = 3 (compare this with the results of [9] where the complexity jump occurs when moving from requiring connectivity to requiring 2-connectivity).

We can generalize the class of complete graphs by considering the class of graphs with diameter at mostd. We show that the problem of finding an s–t separator of size at most k that induces a graph with diameter at mostdinGisW[1]-hard for anyd≥2. This is in stark contrast with the cased= 1, as the problem of finding acliqueseparator of size at mostk is known to be solvable in polynomial time [28].

Edgeless graphs can be thought of as 0-regular graphs. This motivates exploring the problem of finding anr-regulars–tseparator. We show that, unlike the case wherer= 0, which is FPT by Theorem 1, it isW[1]-hard to decide if a graphGhas an r-regulars–tseparator of size at mostk for anyr≥1.

All the above results are on general graphs, i.e., graph G can be arbitrary. It comes as no surprise that the problem is much easier restricted to bounded-degree graphs. In particu- lar, finding a small connected separator is FPT due to the fact that a bounded-degree graph contains only a bounded number of small connected sets. More interestingly, we show in Sec- tion 4 that forevery (not necessarily hereditary) decidable graph class G, theG-Separator problem can be can be solved in time hG(k, ∆(G))·mlogn, where ∆(G) denotes the maxi- mum degree ofG. We prove this by showing that the following problem can be solved in time f(|V(H)|, ∆(G))·mlogn: Given two graphsG and H and two verticess and t of G, decide whether G has an s–t separator S such that G[S] is isomorphic to H. This means that we can solve theG-Separator problem by simply trying all membersH ofG having at most k vertices.

Finally, we investigate the existence of polynomial kernels for the problem of finding small s–t separators. A parameterized problem is said to admit a kernel if there is a polynomial- time algorithm that transforms each instance of the problem into anequivalentinstance whose size and parameter value are bounded from above by g(k) for some (possibly exponential) function g. It is known that a parameterized problem is FPT if and only if it is decidable and admits a kernel [11]. In the desirable case thatg(k) is a polynomial ink, we say that the problem admits a polynomial kernel. Many problems have been shown to admit polynomial kernels, including classes of problems that are covered by some kernelization meta-theorems [3, 15]. Recently developed methods for proving non-existence of polynomial kernels, up to some complexity theoretical assumptions [2, 4, 16], significantly contributed to the establishment of kernelization as an important and rapidly growing subfield of parameterized complexity.

Although theConnected Separatorproblem is FPT by Theorem 2 and therefore admits a kernel [11], we show in Section 5 that this problem does not admit apolynomialkernel, even when restricted to input graphs of maximum degree at most 3, unless NP⊆coNP/poly. This means that techniques other than kernelization (e.g., treewidth reduction) seem to be essential for the efficient solution of the problemeven on bounded-degree graphs.

2 Finding s–t Separators with Higher Connectivity

Theorem 2 states that the problem of finding a connected s–t separator of size at most k is FPT. In this section, we study the parameterized complexity of finding s–t separators of

(4)

higher connectivity. A graphGisc-connectedif|V(G)|> c andG−X is connected for every X ⊆ V(G) with |X| < c. For any integer c ≥ 1, the c-Connected Separator problem takes as input a graph G, two vertices s and t of G, and an integer k (the parameter), and asks whether there is an s–t separator of size at most k that induces a c-connected graph.

Theorem 2 states that this problem is FPT when c = 1. Interestingly, it turns out that the problem remains FPT forc= 2, but becomesW[1]-hard for anyc≥3.

The algorithm in [25] for finding a minimum connecteds–tseparator uses an FPT algorithm forSteiner Treeas a subroutine. Let us recall the definition of theSteiner Treeproblem.

Steiner Tree

Input:A graphG, a setT ⊆V(G) of terminals, and an integerk.

Parameter:k.

Question:Does Ghave a connected subgraphH on at most kvertices such thatT ⊆V(H)?

TheSteiner Treeproblem is well-known to be NP-complete [22]. Dreyfuss and Wagner [12]

showed that the problem is FPT; in fact, they showed that the problem is FPT even when|T| is chosen as the parameter instead ofk. The following problem, defined for any integerc≥1, is a natural generalization of theSteiner Treeproblem:

c-Connected Steiner

Input:A graphG, a setT ⊆V(G) of terminals, and an integerk.

Parameter:k.

Question:DoesGhave ac-connected subgraphH on at mostkvertices such thatT ⊆V(H)?

A solution H to an instance (G, T, k) of the c-Connected Steiner problem is minimal if no proper subgraph of H is a solution, and H is minimum if there is no solution H0 with

|V(H0)|<|V(H)|. Thec-Connected Steinerproblem is FPT whenc= 1, as the problem is then equivalent toSteiner Tree. We show below that thec-Connected Steinerproblem remains FPT whenc= 2, but becomesW[1]-hard for higher values ofc.

Let us first describe two very simple polynomial-time reductions that imply NP-completeness of the problems studied in this section. We will also use these two reductions in Section 5 to show that none of these problems admits a polynomial kernel. For anyc≥1, thec-Connected Steinerproblem is NP-complete, as any instance ofSteiner Tree can be transformed into an equivalent instance ofc-Connected Steinerby addingc−1 universal vertices to the ter- minal setT. Similarly, the c-Connected Separatorproblem is NP-complete for anyc≥1, since we can transform any instance of c-Connected Steiner into an equivalent instance of c-Connected Separator by making two new vertices s and t adjacent to each of the terminals.

Menger’s Theorem provides an equivalent definition ofc-connectivity (see [10]): a graph isc- connected if any two of its vertices can be joined bycinternally vertex-disjoint paths. Therefore, a different way of generalizingSteiner Treewould be to require the weaker condition saying that H containsc internally vertex-disjoint paths between any two terminals. The following lemma shows that forc= 2 this is almost the same problem, as any minimal solution satisfying the weaker requirement satisfies the stronger requirement as well:

Lemma 1. LetH be a graph andT ⊆V(H)a set of vertices such that there are two internally vertex-disjoint paths between anyt1, t2∈T. IfH has no proper subgraph (containingT) having this property, thenH is2-connected.

(5)

Proof. Since there are two internally vertex-disjoint paths between anyt1, t2∈T, all vertices ofT belong to the same 2-connected componentH0 ofH. SupposeH has no proper subgraph that containsT as well as two internally vertex-disjoint paths between any two vertices ofT. Then we must haveH0=H, implying thatH is 2-connected. ut We note that forc≥3, the analog of Lemma 1 is not true. Thus the weaker requirement would result in a different problem, but we do not investigate it further in the current paper.

Our algorithm for 2-Connected Steiner crucially depends on the following structural property of any minimal solution:

Lemma 2. Let (G, T, k) be an instance of the 2-Connected Steiner problem. If H is a minimal solution, thenH−T is a forest.

Proof. SupposeH is a minimal solution. We show that every cycle inH contains at least one vertex ofT, which implies thatH−T is a forest. For contradiction, letCbe a cycle inH that contains none of the terminals. We will identify an edge eof C such that it remains true in H−ethat there are two internally vertex-disjoint paths between any two terminals. Then, by Lemma 1,H−ehas a 2-connected subgraph which is a solution, contradicting the minimality ofH.

Let us define ashortcutofCto be a pathP inH of length at least 2 between two verticesa andbofC, such that none of the internal vertices ofP are inC. We claim that every terminal t∈T lies on some shortcut ofC. To see this, consider an arbitrary edge e1 inH incident with tand an arbitrary edgee2 ofC. AsH is 2-connected, there is a cycle inH containing bothe1

ande2, and this cycle gives us the required shortcut.

Now letM be a shortest subpath ofC such that there is a shortcut P ofC between the endpointsaand bof M. LetM be the other path betweenaandb on the cycleC. Leta0 be the neighbor of a on M (possibly a0 = b). We claim that after removing the edge aa0 from H, the obtained graphH−aa0 still contains two internally vertex-disjoint paths between each pair of terminals.

By the well-known properties of the 2-connected components of graphs, the relation “being in the same 2-connected component” (or equivalently, the relation “there is a cycle containing both edges”) defined on the edges ofH −aa0 is an equivalence relation. Every edge of M is in the same equivalence class of this relation: M together with P forms a cycle containing all these edges. In other words, all edges ofM belong to the same 2-connected component of H−aa0. We claim that every terminal also belongs to this 2-connected component. Lett∈T. As observed above, there is a shortcutPtgoing throught. LetMtbe the subpath of the cycle C between the endpoints of Ptavoiding aa0. The paths Pt and Mt together form a cycle Ct. This cycle Ct contains at least one edge of M, since Mt cannot be a proper subpath of M by the minimality ofM. Thus the edges of Ct, and consequently terminal t, are in the same 2-connected component as the edges ofM. We deduce that all terminals in T belong to the same 2-connected component ofH−aa0. Hence, there are two internally vertex-disjoint paths in H −aa0 between any two terminals t1, t2 ∈ T, yielding the desired contradiction to the

assumption thatH is a minimal solution. ut

Lemma 2 tells us that we have to find an appropriate forest that connects to the terminals in an appropriate way. Fixed-parameter tractability results for finding trees (or more generally, bounded-treewidth graphs) under various technical constraints can usually be obtained using standard application of dynamic programming. A technique that has proved to be particularly useful for proving FPT results of this type is color coding, introduced by Alon, Yuster and Zwick [1]. A k-perfect family of hash functionsis a family H of functions from{1, . . . , n} to {1, . . . , k} such that for each S ⊆ {1, . . . , n} with |S| = k there exists an h ∈ H such that

(6)

h(s) 6= h(s0) for every s, s0 ∈ S, s 6= s0. The following result is due to Alon, Yuster and Zwick [1].

Theorem 3 ([1]). For any n, k ∈N, a k-perfect family of hash functions from {1, . . . , n} to {1, . . . , k} consisting of 2O(k)·lognhash functions can be constructed in2O(k)·nlogntime.

A combination of dynamic programming and color coding yields the following lemma. The proof is a standard application of dynamic programming on the trees, but we provide a proof for completeness.

Lemma 3. Let F be a forest, G an undirected graph, and c : V(F)×V(G) → Z+ a cost function. In time f(|V(F)|)·nO(1), one can find a mapping φ : V(F) → V(G) such that φ(u)φ(v)∈E(G)for everyuv∈E(F) and the total costP

v∈V(F)c(v, φ(v))is minimized.

Proof. It will be convenient to consider the forestF as a rooted tree where a subsetD⊆E(F) of edges are marked “special”, meaning that they are not part of the forest. Let us fix an ordering of the children of each vertex. LetFv be the subtree rooted at vertexv, and let Fv,i be the subtree consisting of v, the first i children of v, and all the descendants of these i children. Our approach for discoveringF inGfollows the color coding strategy, which involves coloring the graph with|V(F)|colors — that is, each vertex inGis assigned one element from C={c1, . . . , c|V(F)|}. A coloring isgood if it assigns a distinct color to each vertex ofF inG.

We describe a procedure for finding the optimalF given a good coloring ofG. By Theorem 3, there is a family of 2O(|V(F)|)·logncolorings such that one of them is guaranteed to be good, and such a family can be constructed in time 2O(|V(F)|)·nlogn. Therefore, by trying every coloring of the family, the running time of the procedure described below increases by a factor of 2O(|V(F)|)·logn.

Forx∈V(F),y∈V(G), andC0 ⊆C, letA[x, y, C0] denote the minimum cost of a mapping φofFxinto Gsuch that φ(x) =y and the images ofV(Fx) use only the colors inC0, each of them exactly once. Similarly, forx∈V(F),y ∈V(G), C0 ⊆C, and i∈Z+, let B[x, y, C0, i]

denote the minimum cost of a mappingφofFx,iintoGsuch thatφ(x) =yand the images of V(Fx,i) use only the colorsC0, each of them exactly once. Ifxhas no children ori= 0, then these values are trivial to determine. Otherwise, if x1, . . ., x` are the children of x, then we can use the recurrences

A[x, y, C0] =B[x, y, C0, `]

B[x, y, C0, i] = min{B[x, y, C0\Ci, i−1] +A[xi, yi, Ci]|Ci⊆C0, xxi6∈D⇒yyi∈E(G)}

The first recurrence requires no explanation. In the second equation, we guess all possibilities for the setCiof colors used by the subtree rooted atxiand a suitableyi=φ(xi), i.e.,yishould be adjacent toy, unlessxxi happens to be in the setDof “special” edges that we consider as removed.

The cost of an optimal mapping φ : V(F) → V(G) equals min{A[r, y, C] | y ∈ V(G)}, where r is the root of the forestF. It is easy to modify the algorithm in such a way that it finds not only the cost of an optimal mappingφ, but also the mapping itself. The algorithm

clearly runs inf(|V(F)|)·nO(1) time. ut

The structural observation of Lemma 2 and the algorithm of Lemma 3 allow us to estab- lish the fixed-parameter tractability of the 2-Connected Steinerproblem, which could be interesting in its own right. Furthermore, it will be used as a subroutine in our FPT-algorithm for finding a 2-connecteds–tseparator of size at mostk.

Theorem 4. The2-Connected Steiner problem is FPT.

(7)

Proof. Let (G, T, k) be a yes-instance of the 2-Connected Steinerproblem and letH be a minimal solution. By Lemma 2,H−Tis a forest. We try all graphsHon at mostkvertices that are candidates for being isomorphic to the solution H; that is,H is 2-connected,T ⊆V(H), and H−T is a forest. The number of such graphs is a function of k only. For each suchH, we define a cost functionc such that forx∈V(H−T) andy ∈V(G), we havec(x, y) = 0 if NH(x)∩T ⊆NG(y)∩T andc(x, y) =∞otherwise. In other words, we allow mappingxtoy only if every terminal neighbor ofxinH is also a neighbor ofy inG. Let us use the algorithm of Lemma 3 to find a mappingφ of H−T into Gminimizing the cost. If the cost of φ is 0, thenφcan be extended to a mapping ofH intoG, showing thatH is a subgraph ofG, which gives us a solution. Otherwise, we proceed with the next candidate H. If the algorithm finds no solution after processing all candidates, we can safely return “no”. ut In order to prove that 2-Connected Separatoris FPT, we will make use of the Treewidth Reduction Theorem due to Marx, O’Sullivan and Razgon [24, 25]. In fact, instead of using the Treewidth Reduction Theorem itself, we use a lemma (a slight reformulation of Lemma 2.11 in [25]) that forms its crucial ingredient. In order to state it, we need an additional definition.

LetGbe a graph andC⊆V(G). The graph torso(G, C) has vertex setC, and verticesa, b∈C are connected by an edge if ab ∈E(G) or if there is a path inG connecting a and b whose internal vertices are not inC.

Lemma 4 ([25]).Letsandtbe two vertices of a graphG, letkbe an integer, and letCbe the union of all minimals–tseparators inGof size at most k. Then there is anf(k)·(n+m)time algorithm that returns a setC0⊇C disjoint from{s, t}such that the treewidth of torso(G, C0) is at mostg(k).

Note that even ifGhas a 2-connecteds–tseparatorS of size at mostk,Gmight not have a minimal s–t separator of size at most k that is 2-connected, since 2-connectivity is not a hereditary property. However,G does contain a minimals–t separator that can be extended to a 2-connected set of size at most k. We call a set S0 ⊆ V(G) k-biconnectableif there is a 2-connected setS⊆V(G) of size at mostksuch thatS0 ⊆S.

Observation 5 LetGbe a graph. A setS0 ⊆V(G)isk-biconnectable if and only if(G, S0, k) is a yes-instance of the2-Connected Steiner problem.

The set C0 in Lemma 4 contains every minimals–t separator S0 that is k-biconnectable, but there is no guarantee thatS0 can be extended to a 2-connected set within C0. The next lemma shows that we can extendC0 to a larger set C00 such that every k-biconnectable s–t separatorS0⊆C0 can be extended to a 2-connecteds–t separatorS ⊆C00 of size at mostk.

Lemma 5. Let s and t be two vertices of a graph G, and let k be an integer. There is a set C00 ⊆V(G) such that the treewidth of torso(G, C00) is bounded by a constant depending only on k and the following holds: ifG has a 2-connected s–t separator of size at most k, then G also has a 2-connected s–t separatorS of size at most k such that S ⊆C00. Moreover, such a setC00 can be found in time h(k)·nO(1).

Proof. LetC0 ⊆V(G) be the set of Lemma 4 that contains every minimals–tseparator ofG of size at mostk, such that the treewidth of torso(G, C0) is bounded byg(k) for some function g depending only on k. We add the vertices s and t to C0; note that this only increases the treewidth of the graph torso(G, C0) by at most 2, so the treewidth of this graph is still bounded by a function ofk. LetK1, . . . , Kq be the connected components ofG−C0, and letNi be the neighborhood ofKi inC0 for 1≤i≤q. By the definition of torso, eachNi forms a clique in torso(G, C0). Since each clique of a graph must appear in a single bag of any tree decomposition

(8)

of that graph, we have |Ni| ≤ tw(torso(G, C0)) + 1, so the size of each Ni is bounded by a function ofk only.

Our algorithm for constructing C00 iterates over all i ∈ {1, . . . , q}, all non-empty subsets X⊆Ni, and all graphsFi,X on at mostk− |X|vertices. For each choice ofi,X andFi,X, the algorithm considers each of the 2|X|(k−|X|)graphsGi,Xthat can be obtained fromG[V(Ki)∪X] and Fi,X by adding a subset of edges from the set E0 ⊆ {xy | x ∈ X, y ∈ V(Fi,X)}. For each Gi,X, we run the algorithm of Theorem 4 to check if there is a solution Hi,X for the 2-Connected Steiner problem with instance (Gi,X, X∪V(Fi,X), k). If so, we takeHi,X to be the minimum such solution; otherwise we let Hi,X = ∅. For each Hi,X, we mark all the vertices of Hi,X that belong to Ki. Finally, we define C00 to be the set consisting of all the vertices ofC0 plus all the vertices that were marked during this entire process.

In order to prove the correctness of this algorithm, let us consider a 2-connected s–t sep- arator S of size at mostk in G such that |S\C00| is as small as possible. We need to show that |S\C00| = 0. For contradiction, we assume that |S\C00| ≥ 1. Let Ki be a connected component of G−C0 such that Ki contains a vertex of S \C00, let X = S ∩Ni, and let Fi,X =G[S\(V(Ki)∪X)]. Note thatX 6=∅. Also note thatX∪V(Fi,X) is ak-biconnectable set in the graphG[V(Ki)∪X∪V(Fi,X)]. Hence, by Observation 5, (G[V(Ki)∪X∪V(Fi,X)], X∪ V(Fi,X), k) is a yes-instance of 2-Connected Steiner. SinceX 6=∅, in some iteration of the algorithm, we considered a graph Gi,X that is isomorphic to G[V(Ki)∪X ∪V(Fi,X)] and hence found a minimum solution Hi,X of 2-Connected Steiner for exactly the instance (G[V(Ki)∪X∪V(Fi,X)], X∪V(Fi,X), k). Let S0=V(Hi,X)∪X∪V(Fi,X). By construction, S0is 2-connected. Note thatS∩C0is ans–tseparator, since otherwise there would be a minimal s–tseparator of size at mostkinGthat contains a vertex outsideC0, contradicting Lemma 4.

SinceS∩C0 ⊆S0, the set S0 is an s–t separator. It is clear that S0 ⊆C00, which means that

|S0\C00|= 0. Hence|S0\C00|<|S\C00|, contradicting the minimality ofS.

For each i∈ {1, . . . , q}, we test at most|Ni|k setsX ⊆Ni, and for each of these setsX, we test at most 2k2 different graphsGi,X. For each graphGi,X, we mark at mostkvertices of Ki, so the total number of vertices in Ki that are marked is at mostk·2k2· |Ni|k. Recall that the size of eachNi is bounded by a function of konly, which implies that the same holds for

|C00∩V(Ki)|and consequently for the treewidth of torso(Ki, C00∩V(Ki)). It follows that the difference between the treewidth of torso(G, C00) and the treewidth of torso(G, C0) is a constant depending on k (see also Lemma 2.9 in [25]), implying that the treewidth of torso(G, C00) is bounded by a function of k. Finding the set C0 can be done in time f(k)·(m+n) by Lemma 4. For each choice ofi, the possible number of different graphsGi,X, and consequently the number of instances of 2-Connected Steinerwe have to solve, is at mostk·2k2· |Ni|k. Since 2-Connected Steineris FPT by Theorem 4, the overall running time of the algorithm ish(k)·nO(1) for some functionhthat depends only onk. ut Theorem 6. The2-Connected Separator problem is FPT.

Proof. Let (G, s, t, k) be an instance of 2-Connected Separator. We start by constructing the setC00⊆V(G) of Lemma 4. LetG= torso(G, C00). We assign a color to each edgeuv in G: we coloruvblack ifuvis also an edge inG, and we coloruvred otherwise. By Lemma 5, Gcontains a 2-connected s–t separatorS of size at most k if and only ifG contains ans–t separator S of size at most k such that deleting the red edges from G[S] results in a 2- connected graph. The theorem now follows from Courcelle’s Theorem [8] and the fact that this problem can be expressed in monadic second-order logic (see [25]). ut We now show that the c-Connected Steiner problem becomes hard when the connec- tivity of the solution is required to be at least 3. In the proof of Theorem 7 below, as well as

(9)

in the hardness proofs in the next section, we give parameterized reductions from the Mul- ticolored Clique problem. This problem takes as input a graph G, an integer k, and a partition ofV(G) intok independent sets C1, . . . , Ck calledcolor classes. The objective is to decide whether there exists a subsetS ⊆V(G) such that|S| =k,G[S] is a complete graph, and|S∩Ci|= 1 for all 1≤i≤k; such a setS is called amulticolored clique. This problem is known to beW[1]-hard when parameterized byk[14].

Theorem 7. c-Connected SteinerisW[1]-hard for any c≥3.

Proof. We first show that the theorem holds for c = 3. We reduce from Multicolored Clique. Note thatMulticolored CliqueremainsW[1]-hard when we assume thatk≥3, and we make this assumption in the proof below. Let (G, k) be an instance ofMulticolored Cliquewith color classesC1, . . . , Ck. Starting fromG, we construct a graphG0as follows. We first subdivide every edge uv∈E(G) exactly once by adding a vertexxuv, deleting the edge uv, and adding the edgesuxuv, vxuv. We then add a number ofterminalsas follows. For every 1≤i < j≤k, we add a terminalgi,j and make it adjacent to all verticesxuv withu∈Ci and v∈Cj. For every 1≤i≤k, we add a terminalgi and make it adjacent to all vertices inCi. We then add two terminalsa1, a2 and make both them adjacent togi for every 1≤i≤k. We also add two terminalsb1, b2and make both of them adjacent togi,j for every 1≤i < j ≤k.

This finishes the construction of the graphG0. We defineT to be the set of all terminals inG0, and we definek0= 2k+k(k−1) + 4. We show that (G, k) is a yes-instance ofMulticolored Cliqueif and only if (G0, T, k0) is a yes-instance of 3-Connected Steiner.

First suppose thatGhas a multicolored clique X, and letci=X∩Ci for every 1≤i≤k.

LetS⊆V(G0) be the set containing each of thekvertices inX, each of thek(k−1)/2 vertices in the set{xcicj |ci, cj ∈X}, and each of thek+k(k−1)/2 + 4 terminals inG0. We claim that G0[S] is a 3-connected subgraph of G0 on at most k0 vertices that contains all the terminals.

Note that |S| = 2k+k(k−1) + 4 = k0. It remains to show that G0[S] is 3-connected. For convenience, we defineA={a1, a2} ∪ {gi|1≤i≤k},B ={b1, b2} ∪ {gi,j|1≤i < j≤k}and C=S\(A∪B) =X ∪ {xcicj | ci, cj ∈X}. Recall that we may assume the number of color classesCi to be at least 3. Hence there is a matching MA ⊆E(G0) containing at least three edges with one endpoint inAand one endpoint inC, as well as a matchingMB⊆E(G0) with at least three edges betweenBandC. In order to show thatSinduces a 3-connected subgraph in G0, it suffices to show that for every pair of distinct verticess, s0∈S, the graphG0[S]− {s, s0} is connected. This clearly is the case if {s, s0} = {a1, a2} and if {s, s0} = {b1, b2}. Suppose that {s, s0} 6={a1, a2} and {s, s0} 6={b1, b2}. Then each of the graphs G0A =G0[A\ {s, s0}], G0B=G0[B\ {s, s0}] andG0C=G0[C\ {s, s0}] is connected. Moreover, due to the existence of the matchingsMA andMB inG0, there is at least one edge betweenG0A andG0C and at least one edge betweenG0B andG0C. This implies that the graphG0[S]− {s, s0} is connected.

For the reverse direction, suppose G0 has a 3-connected subgraph G0[S] on at most k0 vertices that contains all the terminals. The 3-connectedness ofG0[S] implies that every vertex inS has degree at least 3 inG0[S]. Hence each of the terminals, apart froma1, a2, b1, b2, must have at least one neighbor inSthat is not a terminal. Recall that|S| ≤k0= 2k+k(k−1) + 4, and that there arek+k(k−1)/2 + 4 terminals inG0. HenceScontains at mostk+k(k−1)/2 vertices that are not terminals. This implies that each terminal, apart froma1, a2, b1, b2, has exactly one neighbor in S that is not a terminal. For each of the terminals gi, letci be this neighbor, and for eachgi,j, letxi,jbe this neighbor.Scontains no other vertices than the ones mentioned above. Since every vertex inS must have degree at least 3 inG0[S] and each of the verticesxi,j has degree exactly 3 inG0, we know that both non-terminal neighbors ofxi,j in G0 belong toS, for every 1≤i < j≤k. This means that, for every 1≤i < j≤k, vertexxi,j

is adjacent toci and cj. We conclude that the vertices{c1, . . . , ck}form a multicolored clique inG.

(10)

We can easily modify the above reduction in order to show thatc-Connected Steineris W[1]-hard for any fixed c≥4. After constructingG0 as described in the reduction forc = 3, we simply add a clique of c−3 additional terminals to G0, make each of them universal by making them adjacent to all vertices inG0, and increase the parameterk0 byc−3. The result follows from the observation that the connectivity of a graph increases by exactly 1 each time

a universal vertex is added to the graph. ut

Since we can transform an instance ofc-Connected Steinerinto an equivalent instance of c-Connected Separator by making two new vertices s and t adjacent to each of the terminals, Theorem 7 readily implies the following result.

Theorem 8. c-Connected SeparatorisW[1]-hard for any c≥3.

3 More W [1]-Hardness Results on General Graphs

We say that a graphGis r-regular if the degree of every vertex in Gis exactly r. For every r≥0, letr-Regular Separator denote the problem of deciding whether an input graphG has ans–tseparatorS of size at mostksuch thatG[S] isr-regular. Since the class of 0-regular graphs is hereditary, Theorem 1 implies that 0-Regular Separator, i.e., the problem of finding an s–t separator that is an independent set of size at most k, is FPT. We show that r-Regular SeparatorisW[1]-hard for everyr≥1. Note that the class ofr-regular graphs isnothereditary for anyr≥1.

Theorem 9. r-Regular SeparatorisW[1]-hard for any r≥1.

Proof. Let r ≥ 1 be an integer. We show that r-Regular Separator is W[1]-hard by a reduction fromMulticolored Clique. Let (G, k) be an instance ofMulticolored Clique with color classes C1, . . . , Ck. We create a graph G0 as follows. We start with a copy of the complement ofG. For every color classCi, we add a cliqueXionrvertices, and we make each vertex inXi adjacent to every vertex inCi. Let X =Sk

i=1Xi. Finally, we add two verticess andt, and make both these vertices adjacent to every vertex inX. We show that (G, k) is a yes-instance ofMulticolored Cliqueif and only ifG0 has anr-regulars–tseparator of size at most (r+ 1)k.

SupposeGhad a multicolored clique C={c1, . . . , ck}, whereci ∈Ci for every 1≤i≤k.

Note that the setC forms an independent set inG0. Consider the setC∪X. Since every path froms tot in G0 contains a vertex of X, the set C∪X separates sfrom t. Moreover, C∪X has size (r+ 1)kand induces anr-regular subgraph inG0. For the reverse direction, suppose there exists ans–tseparatorSof size at most (r+ 1)kinG0such thatG0[S] isr-regular. Every vertex inX is adjacent to bothsandt, so we must haveX ⊆S. Since G0[S] isr-regular and every vertex inX has degreer−1 inG0[X] by construction, every vertexxi∈X has exactly one neighborci in S\X, which means thatci∈Ci. Moreover, the vertices{c1, . . . , ck} must form an independent set inG0, implying that {c1, . . . , ck} is a multicolored clique inG. ut Thediameterof a graphGis the maximum distance between any two vertices inG, where the distance between two vertices u and v is defined as the number of edges in a shortest path from u to v. As mentioned earlier, the problem of finding an s–t separator that forms a cliqueis well-known to be solvable in polynomial time [28]. Since cliques induce subgraphs of diameter 1, it is natural to consider the problem of finding an s–t separator that induces a subgraph of diameter 2, or, more generally, of any fixed diameterd≥2. Note that for any d≥2, the class of graphs with diameter dis not hereditary; consider for example a chordless cycle on 2d+ 1 vertices. The class of graphs with diameter 1, however,ishereditary.

(11)

C1

C2

Ck

v1 v10

v2 v20

vk v0k

s

t

Fig. 1.The graphH constructed from an instance (G, k) ofMulticolored Clique, as described in the cased≥3 in the proof of Theorem 10. Edges between color classes have note been drawn.

Thed-Diameter Separatorproblem is to decide if an input graphGhas ans–tseparator Sof size at mostksuch thatG[S] has diameterd. We now show thatd-Diameter Separator isW[1]-hard for anyd≥2. The reductions in the proof of Theorem 10 below also show that the problem of finding ans−t separatorS of size at mostksuch thatG[S] has diameterat mostdisW[1]-hard for anyd≥2.

Theorem 10. d-Diameter Separator isW[1]-hard for anyd≥2.

Proof. In order to keep the reductions as clear as possible, we first consider the case d≥3, after which we deal with the slightly trickier cased= 2.

Case 1:d≥3.

Let (G, k) be an instance of theMulticolored Cliqueproblem with color classesC1, . . . , Ck. For any fixedd≥3, we construct an instance (H, l) ofd-Diameter Separatorfrom (G, k) in the way described below, where we distinguish between odd and even values ofd.

If d= 2p+ 1 for some p≥1, we create the graph H as follows. Start with a copy of G, and add two verticess andt. For every 1≤i≤k, add a path Pi onpvertices. Let vi and vi0 be the degree 1 vertices ofPi (vi =vi0 ifp= 1). Makevi adjacent to bothsand t, and make vi0 adjacent to every vertex in Ci. Finally, we set l = (p+ 1)k. See Figure 1 for a schematic representation of the graphH; for clarity, edges between the color classes have not been drawn.

We show thatG has a multicolored clique of size k if and only ifH has an s–t separator of sizel that induces a subgraph of diameterdinH.

SupposeGhas a multicolored cliqueX ={c1, . . . , ck}, whereci∈Ci for every 1≤i≤k.

LetS be the set containing the vertices of X, as well as the vertices of every pathPi. SinceS contains each of the vertices vi, and those vertices are the only neighbors ofsand t in H, S clearly is ans–tseparator. For any 1≤i < j≤k, the unique shortest path betweenvi andvj

inH[S] uses all the vertices of the pathsPiandPj, as well as the verticesciandcj. Hence the distance betweenviandvj inH[S] is 2p+ 1. For every other pair of vertices inS, the distance inH[S] is smaller. HenceS induces a subgraph of diameter 2p+ 1 =dinH. Finally, the size ofS is (p+ 1)k=l, since it contains pvertices for each of thek pathsPi, as well as each of thekvertices ofX.

For the reverse direction, suppose that there exists an s–t separator S of size at most l such thatH[S] has diameterd. Note that anys–t separator must contain each of the vertices vi, since these vertices are adjacent to boths an t. Hence S contains each of the vertices vi. SinceH[S] has diameter d, we know that, in particular, H[S] is connected. By construction, this implies thatS must contain all the vertices of each of the pathsPi, which amounts topk vertices in total. It also implies thatS∩Ci 6=∅ for every 1≤i≤k. The assumption thatS

(12)

has sizel= (p+ 1)k implies thatS contains exactly one vertex from each of the color classes Ci. For every 1≤i≤k, letci be the only vertex inS∩Ci, and letX={c1, . . . , ck}. Suppose thatX has two verticesci andcj that are not adjacent. Then the distance betweenvi and vj is greater than 2p+ 1 inH[S], contradicting the assumption thatH[S] has diameterd. Hence the vertices ofX form a multicolored clique inG.

If d = 2p for some p ≥ 2, then we create H as we did for odd values of d, with two small modifications: each path Pi hasp−1 vertices instead of pvertices (and now vi =v0i if p= 2), and every edge between any two color classes, i.e., every edge of the copy ofGin H, is subdivided exactly once. We setl=pk+ k2

.

SupposeGhas a multicolored cliqueX ={c1, . . . , ck}, whereci∈Ci for every 1≤i≤k.

For every two vertices ci and cj in X, let yij be the vertex in H that subdivided the edge cicj, and let Y be the set containing all k2

of these vertices yij. We define S to be the set containing the vertices ofX∪Y, as well as the vertices of every pathPi. It is clear thatS is ans–t separator. For any 1≤i < j ≤k, the unique shortest path between vi and vj in H[S]

uses all the vertices of the pathsPi andPj, as well as the verticesci, xij, andcj. Hence the distance betweenvi andvj inH[S] is 2p. For every other pair of vertices inS, the distance in H[S] is smaller. HenceS induces a subgraph of diameter 2p=dinH. Finally, the size ofS is (p+ 1)k=l, since it containsp−1 vertices for each of thekpathsPi, as well as each of thek vertices ofX, and each of the k2

vertices ofY.

Now suppose that there exists an s–t separator S of size at most l such that H[S] has diameter d. Similar to the case for odd d, we know that S contains all the vertices of each of the paths Pi, which amounts to (p−1)k vertices in total. We also know thatS∩Ci 6= ∅ for every 1≤i≤k. This leaves a budget of at most k2

vertices. The assumption thatH[S]

has diameterdand the restrictions imposed by the budget imply thatS contains exactly one vertex, sayci, from every color class Ci, as well as the vertexyij for every two verticesci and cj belonging to S. By the construction of H, it follows that the vertices {c1, . . . , ck} form a clique inG.

Case 2:d= 2.

Let (G, k) be an instance of theMulticolored Cliqueproblem with color classesC1, . . . , Ck. We construct an instance (H, l) ofDiameter-2 Separator from (G, k) as follows (see also Figure 2, where a schematic drawing of the graphH is given). We start with a copy ofG. For every color classCi, we introduce a pair of verticesuiandvi, and for every pair of color classes Ci andCj, we introduce four vertices wij,xij, yij and zij. Finally, we introduce vertices s, t andg. For every 1≤i≤k, we make the verticesuiandviadjacent to all the vertices inCi, and g is made adjacent to all the vertices in every color class. We add an edge between each pair of vertices in the setC ={wij, xij, yij, zij |1≤i, j ≤k} ∪ {g}, i.e., we makeC into a clique.

The verticesui,vi, and all the vertices inCare made adjacent to bothsandt. Finally, for all 1≤i < j≤k, we introduce the edgeswijui, wijuj, xijui, xijvj, andyijvi, yijuj, zijvi, zijvj. To complete the construction, we setl= 3k+ 4 k2

+ 1. We now show thatGhas a multicolored clique of sizekif and only if there exists ans–tseparator of sizel that induces a subgraph of diameter 2 inH.

SupposeGhas a multicolored cliqueX ={c1, . . . , ck}, whereci∈Ci for every 1≤i≤k.

Notice that the vertices of{ui, vi |1≤i≤k} ∪C form ans–tseparator. To complete this set into ans–tseparator of diameter 2, we include g and the vertices ofX. Let S denote thes–t separator thus obtained. Letuandvbe two distinct vertices inS. The following case analysis shows that there is either an edge betweenuandv, or they have a common neighbor inS.

– Ifu∈C andv∈C, then (u, v)∈E(H) sinceC is a clique.

– Ifu∈X and v∈X, then (u, v)∈E(H) sinceX is a multicolored clique.

(13)

u1

v1

u2

v2

uk

vk

s

t

w12

x12

y12

z12

C g

C1

C2

Ck

Fig. 2.The graphH constructed from an instance (G, k) ofMulticolored Clique, as described in the cased= 2 in the proof of Theorem 10. Many vertices and edges have been omitted for clarity; the bold edges indicate thatgis adjacent to all the vertices in every color class.

– Ifu∈C andv∈X, theng is a common neighbor ofuandv.

– Ifu=ui andv=vi, thenci is a common neighbor ofuandv.

– If u∈ C and v∈ {ui, vi}, then eitheruand v are adjacent, or, for any j 6=i, one of the verticeswij, xij, yij, zij is a common neighbor ofuandv.

– If u ∈ {ui, vi} and v ∈ {uj, vj}, then one of the vertices wij, xij, yij, zij is a common neighbor ofuandv.

– Ifu=ci andv∈ {uj, vj}, thencj is a common neighbor ofuandv.

HenceG[S] has diameter 2. Notice thatS has size 3k+ 4 k2

+ 1 =l.

For the reverse direction, supposeSis ans–tseparator of sizelsuch thatH[S] has diameter 2. Notice that{ui, vi|1≤i≤k} ∪C⊆S, since each of these vertices is adjacent to bothsand t. Notice further that|{ui, vi|1≤i≤k} ∪C|= 2k+ 4 k2

+ 1. SinceSis a separator of sizel, this means that we have a budget ofk vertices remaining. The graphH[S] has diameter 2, so ui andvi have a common neighbor inS, and consequentlyS∩Ci6=∅, for every 1≤i≤k. The fact that the remaining budget isk implies that contains exactly one vertex from each color classCi. Let ci denote the vertex inS∩Ci, and letX ={c1, . . . , ck}. We now argue that X forms a clique inG. For contradiction, suppose there exists a pair (i, j) such thatcicj ∈/ E(H).

All neighbors of vj in the separator S belong to the set C∪ {cj}, and ci is not adjacent to any of those vertices. Note, in particular, thatci is adjacent tog, butvj is not. Henceci and vj have no common neighbor in S, contradicting our assumption that S is ans–t separator inducing a subgraph with diameter 2. We conclude thatCis a multicolored clique inG, which

completes the proof of the theorem. ut

4 Finding s–t Separators in Graphs of Bounded Degree

Theorem 1 states that G-Separator is FPT for any decidable and hereditary graph class G. In the previous sections, we identified several non-hereditary graph classesG for whichG- SeparatorisW[1]-hard on general graphs. In this section, we prove that for any decidable (but not necessarily hereditary) graph classG, the G-Separator problem is FPT parameterized jointly by the size of the separator and the maximum degree. We point out that there are

(14)

several graph classesG for whichG-Separatoris NP-complete on graphs of bounded degree;

the class of connected graphs is just one example (see Theorem 15 in Section 5).

In order to obtain the main result of this section, we study the following problem:

Pattern Separator

Input:Two graphsGandH, and two verticessandt ofG.

Question:DoesGhave ans–tseparatorS such thatG[S] is isomorphic to H?

We show thatPattern Separatoris FPT parameterized jointly by the number of vertices in the “pattern” graphH and the maximum degree ofG. Note that this is obviously the case ifH is connected, as any vertex in a graph with maximum degree ∆ is contained in at most

|V(H)| connected vertex subsets of size|V(H)|. The situation is less obvious when we allow H to be disconnected. We will use a variant of the color coding technique of Alon, Yuster and Zwick [1] to reduce the Pattern Separatorproblem to the problem of finding an s–t separator that has a certain hereditary property, which enables us to invoke Theorem 1.

For the remainder of this section, letG andH be two graphs, let sand tbe two vertices ofG, and let H1, . . . , Hc be the connected components of H. We usenand m to denote the number of vertices and edges inG, respectively. Let ψbe a (not necessarily proper) coloring ofG. A subset of verticesV0 ⊆V(G) iscolorfulifψcolors no two vertices ofV0 with the same color. For any subsetC0 of colors, we say thatV0 ⊆V(G) isC0-colorfulif|V0|=|C0|and every vertex inV0 receives a different color fromC0.

Definition 1. Letψ:V(G)→ {1,2, . . . , c, c+ 1}be a(c+ 1)-coloring ofG. We say thatψis H-goodif Ghas ans–tseparatorS satisfying the following properties:

(i) each connected component ofG[S]is colored monochromatically with a color from{1, . . . , c};

(ii) no two connected components ofG[S] receive the same color;

(iii) the connected component ofG[S]with colori is isomorphic toHi; (iv) every vertex inNG(S)receives color c+ 1.

It immediately follows from Definition 1 that (G, H, s, t) is a yes-instance of Pattern Separator if and only ifGhas anH-good coloring. The main idea of our algorithm is that finding a separatorSsatisfying these requirements essentially boils down to finding a separator that is a colorful independent set, which is fixed-parameter tractable by the results of [24, 25].

The following lemma plays a crucial role in our algorithm forPattern Separator.

Lemma 6. Given a(c+ 1)-coloringψofG, we can decide ing(|V(H)|)·(n+m)time whether ψisH-good.

Proof. We describe an algorithm for deciding whether a given (c+ 1)-coloring ψ of Gis H- good. Let B be the set of vertices in Gwith color c+ 1. For every connected component X of the graphG−B that is not monochromatic, we recolor all the vertices ofV(X) with color c+ 1 in G, and set B =B∪V(X). After this step, every connected component ofG−B is monochromatic. For every 1≤i≤c, letGi be the subgraph ofGinduced by the vertices with colori. For every value ofifrom 1 up toc, we check, for each connected component X of the graphGi, whetherX is isomorphic toHi. If not, we color all the vertices of V(X) with color c+ 1 inG, and setGi=Gi−V(X). If at any point we find thatGidoes not have any vertices, then ψ cannot satisfy condition (iii) in Definition 1, so we output “no”. Suppose that, after this step, each connected component ofGi is isomorphic toHi, for every 1≤i≤c. We then repeatedly contract edges with both endpoints in the same subgraph Gi, until we obtain a

(15)

graphG0 in which the vertices with colors 1, . . . , cform an independent set. Also note thatG0 contains at least one{1, . . . , c}-colorful independent setS, as otherwise the algorithm would have returned “no” already.

Claim 1: Coloring ψ is H-good if and only if G0 has an s–t separator S0 such that S0 is a {1, . . . , c}-colorful independent set.

We prove Claim 1 as follows. SupposeψisH-good, and letSbe ans–tseparator ofGsatisfying the four properties in Definition 1. Due to properties (i) and (iv) in Definition 1, each of the connected components of the subgraphG[S] was contracted to a single vertex when the graph G0 was obtained from G. For 1 ≤i ≤ c, let si be the vertex in G0 that corresponds to the connected component ofG[S] that is isomorphic to Hi. Due to properties (i) and (ii), the set S0={s1, . . . , sc} is{1, . . . , c}-colorful, and property (iv) ensures thatS0 is an independent set inG0. SinceS is ans–tseparator inG, every path fromstotinGcontains a vertex ofS. We only contracted edges inGto obtainG0, so every path from sto t inG0 contains a vertex of S0, implying thatS0 is ans–tseparator inG0.

For the reverse direction, supposeG0 has ans–tseparator S0 such thatS0 is a{1, . . . , c}- colorful independent set. Consider the unique vertexsi∈S0with colori. By the construction of G0,sicorresponds to a connected component of the subgraphGiinG, and such a component is isomorphic toHi; thus property (iii) is satisfied. Property (ii) follows from the assumption that S0 is colorful. Recall that every connected component of the subgraph G−B that contained more than one color from 1, . . . , cwas recolored with color c+ 1 in the very first step of the algorithm. Since after that step we only contracted edges in G to obtain G0, property (i) is satisfied. Recall that all the vertices inG0 with a color in {1, . . . , c} form an independent set.

Hence for each of those vertices, and the ones inS0 in particular, all neighbors have colorc+ 1.

This means that every vertex inNG(S) must have had colorc+ 1 as well, implying property (iv). This finishes the proof of Claim 1.

The graphG0 can be obtained fromGinO(n+m) time. Due to the above claim, it remains to show that we can decide ing(|V(H)|)·(n+m) time whether the graphG0has ans–tseparator S0 such thatS0 is a{1, . . . , c}-colorful independent set. We call such a setS0a solutionbelow.

Note that the property “being a {1, . . . , c}-colorful independent set” is not hereditary, since only sets of cardinalityc can have this property. The next claim shows that we can reduce the problem of finding a solution inG0 to the problem of finding a smalls–t separator that does satisfy a certain hereditary property.

Claim 2: GraphG0 has a solution if and only if G0 has an s–t separatorS00 of size at most c such thatS00 is an independent set that is C0-colorful for some C0⊆ {1, . . . , c}.

We prove Claim 2 as follows. IfG0 has ans–tseparatorS0 such thatS0 is a{1, . . . , c}-colorful independent set, then we can simply takeS00=S0. For the reverse direction, supposeG0 has ans–tseparatorS00 of size at mostcsuch thatS00 is an independent set that isC0-colorful for someC0 ⊆ {1, . . . , c}. Recall that all the vertices with colors 1, . . . , cform an independent set in G0, and that G0 contains at least one {1, . . . , c}-colorful independent setS. Hence we can extendS00 into a solution S0 by adding to S00 exactly those vertices ofS that have a color from{1, . . . , c} \C0. This finishes the proof of Claim 2.

Note that the s–t separatorS00 in Claim 2 has the property “being an independent set of size at most c all whose vertices have a different color from{1, . . . , c}”. This is a hereditary property. Consequently, we can decide if such a separatorS00exists ing(|V(H)|)·(n+m) time by Theorem 1, as Marx et al. [25] point out that Theorem 1 remains true for graphs having a fixed finite number of colors (since c+ 1≤ |V(H)|+ 1, the number of colors in the graphs

(16)

we consider does not depend on n). Claims 1 and 2 imply that S00 exists if and only if ψ is

H-good, which completes the proof. ut

We now use a variant of the color coding technique to show that Pattern Separatoris FPT parameterized jointly by the number of vertices inH and the maximum degree ofG.

Theorem 11. Pattern Separator can be solved inf(|V(H)|, ∆(G))·mlogn time.

Proof. Let (G, H, s, t) be an instance of Pattern Separator. We define k = |V(H)| and

∆=∆(G). Suppose (G, H, s, t) is a yes-instance, and letSbe ans–tseparator ofGsuch that G[S] is isomorphic toH. Let H1, . . . , Hc be the connected components of H, and letSi ⊆S be such that G[Si] is isomorphic to Hi for 1 ≤ i ≤ c. Since |S| = |V(H)| = k, and every vertex in S has at most∆ neighbors,|NG[S]| ≤(∆+ 1)k. As a result of Theorem 3, we can construct a (∆+ 1)k-perfect familyΨ of hash functions from {1, . . . , n} to{1, . . . ,(∆+ 1)k}, consisting of 2O((∆+1)k)·lognhash functions. We will interpret each hash function in Ψ as a (∆+ 1)k-coloring of G. We construct a larger family of coloringsΨ0 by adding toΨ, for every coloringψ∈Ψ, all colorings that can be obtained fromψ by permuting the colors. Since the total number of colors in any coloring inΨ is at most (∆+ 1)k, the new familyΨ0 has at most ((∆+ 1)k)!·2O((∆+1)k)·logncolorings.

In order to use Lemma 6, we need to transform the (∆+ 1)k-colorings in Ψ0 into (c+ 1)- colorings. For every coloring ψ0 ∈ Ψ0, we define a (c+ 1)-coloring ψ00 by assigning color 1 to every vertex v ∈ V(G) for which 1 ≤ ψ0(v) ≤ |V(H1)|, color i to every v for which 1 + Pi−1

j=1|V(Hj)| ≤ψ0(v)≤Pi

j=1|V(Hj)|for every 2≤i≤c, and colorc+ 1 to everyvfor which

|V(H)|+ 1 ≤ψ0(v) ≤ (∆+ 1)k. Let Ψ00 be the family of all colorings ψ00 thus constructed.

We claim thatΨ00 contains anH-good coloring. By the definitionΨ, there exists aξ∈Ψ that colors every vertex in NG[S] with a different color. Since Ψ0 contains all colorings that can be obtained from ξ by permuting the colors, there exists a coloringξ0 ∈Ψ0 that satisfies the following properties: 1 ≤ ξ0(v) ≤ |S1| for every v ∈ S1, 1 +Pi−1

j=1|Sj| ≤ ξ0(v) ≤ Pi j=1|Sj| for every v ∈ Si, and |S|+ 1≤ ξ0(v)≤(∆+ 1)k for every v ∈ NG(S). Letξ00 ∈ Ψ00 be the (c+ 1)-coloring obtained fromξ0 in the way described above. It follows from Definition 1 that ξ00 isH-good.

From the above it is clear that, given an instance (G, H, s, t) of Pattern Separator where Ghas maximum degree at most ∆, we can construct a family Ψ00 of (c+ 1)-colorings of G such that Ψ00 contains an H-good coloring if and only if (G, H, s, t) is a yes-instance.

The size of Ψ00 is bounded by ((∆+ 1)k)!·2O((∆+1)k)·logn, and Ψ00 can be constructed in ((∆+ 1)k)!·2O((∆+1)k)·nlogntime by Theorem 3. Finally, we can check for each coloring in Ψ00 whether or not it isH-good in g(k)·(n+m) time by Lemma 6 for some functiong that does not depend onn. This yields an overall running time off(k, ∆)·mlognfor some function

f that only depends onk and∆. ut

We now use Theorem 11 to show that the G-Separator problem is FPT parameterized jointly by the size of the separator and the maximum degree of the input graphG.

Theorem 12. For any decidable classG, theG-Separatorproblem can be solved inhG(k, ∆(G))·

mlogntime.

Proof. Let (G, s, t, k) be an instance of G-Separator. We generate all graphsH on at most k vertices that belong to G. Note that there are at most 2k2 such graphs H, and since G is decidable, we can generate all of them in fG(k) time for some function fG. For each of the generated graphsH, we solvePattern Separatorwith the graphsGandH as input. This can be done inf(k, ∆(G))·mlogntime for each graphH due to Theorem 11. It is clear that

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

1.2 Related Works on Parameterized Graph Modification Problems The F-Vertex Deletion problems corresponding to the families of edgeless graphs, forests, chordal graphs, interval

We use this meta-theorem to show the existence of an FPT time algorithm for the Subset Token Swapping problem, restricted to nowhere-dense graph classes?. In particular, this

We use this meta-theorem to show the existence of an FPT time algorithm for the Subset Token Swapping problem, restricted to nowhere-dense graph classes?. In particular, this

On the other hand, parameterized complexity theory may help to justify the shield provided by computational complexity: if a problem belongs to one of the parameterized hardness

We know that bounded fractional hypertree width implies polynomial-time solvability [Marx 2010a] and Theorem 7.1 shows that unbounded submodular width implies that the problem is

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

, 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

Observation: If problem P has a linear vertex-kernel and P parameterized by the number of vertices can be solved by branching, then P is in BranchFPT : there is an LPPT-reduction to