• Nem Talált Eredményt

Bounded-Treewidth Graphs: Chordality Is the Key to Single-Exponential Parameterized Algorithms ∗†

N/A
N/A
Protected

Academic year: 2022

Ossza meg "Bounded-Treewidth Graphs: Chordality Is the Key to Single-Exponential Parameterized Algorithms ∗† "

Copied!
13
0
0

Teljes szövegt

(1)

Bounded-Treewidth Graphs: Chordality Is the Key to Single-Exponential Parameterized Algorithms ∗†

Édouard Bonnet

1

, Nick Brettell

2

, O-joung Kwon

3

, and Dániel Marx

4

1 Department of Computer Science, Middlesex University, London, UK 2 School of Mathematics and Statistics, Victoria University of Wellington,

Wellington, New Zealand

3 Logic and Semantics, Technische Universität Berlin, Berlin, Germany

4 Institute for Computer Science and Control, Hungarian Academy of Sciences, (MTA SZTAKI), Budapest, Hungary

Abstract

It has long been known thatFeedback Vertex Setcan be solved in time 2O(wlogw)nO(1)on graphs of treewidthw, but it was only recently that this running time was improved to 2O(w)nO(1), that is, to single-exponential parameterized by treewidth. We investigate which generalizations of Feedback Vertex Set can be solved in a similar running time. Formally, for a class of graphs P, Bounded P-Block Vertex Deletion asks, given a graph G on n vertices and positive integersk andd, whetherGcontains a setSof at mostk vertices such that each block ofGShas at mostdvertices and is inP. Assuming thatP is recognizable in polynomial time and satisfies a certain natural hereditary condition, we give a sharp characterization of when single-exponential parameterized algorithms are possible for fixed values ofd:

ifP consists only of chordal graphs, then the problem can be solved in time 2O(wd2)nO(1), ifP contains a graph with an induced cycle of length`>4, then the problem is not solvable in time 2o(wlogw)nO(1)even for fixedd=`, unless the ETH fails.

We also study a similar problem, calledBounded P-Component Vertex Deletion, where the target graphs have connected components of small size instead of having blocks of small size, and present analogous results.

1998 ACM Subject Classification G.2.1 Combinatorial Algorithms, G.2.2 Graph Algorithms

Keywords and phrases fixed-parameter tractable algorithms, treewidth, feedback vertex set

Digital Object Identifier 10.4230/LIPIcs.IPEC.2017.7

1 Introduction

Treewidth is a measure of how well a graph accommodates a decomposition into a tree-like structure. In the field of parameterized complexity, many NP-hard problems have been shown to have FPT algorithms when parameterized by treewidth; for example,Coloring,Vertex Cover,Feedback Vertex Set, andSteiner Tree. In fact, Courcelle [6] established a

All authors were supported by ERC Starting Grant PARAMTIGHT (No. 280152) and ERC Consolidator Grant SYSTEMATICGRAPH (No. 725978). The third author was also supported by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (ERC consolidator grant DISTRUCT, agreement No. 648527).

The full version can be found in [5],https://arxiv.org/abs/1704.06757.

© Édouard Bonnet, Nick Brettell, O-joung Kwon, and Dániel Marx;

licensed under Creative Commons License CC-BY

(2)

meta-theorem that every problem definable in MSO2 logic can be solved in linear time on graphs of bounded treewidth. While Courcelle’s Theorem is a very general tool for obtaining algorithmic results, for specific problems dynamic programming techniques usually give algorithms where the running timef(w)nO(1) has better dependence on treewidthw. There is some evidence that careful implementation of dynamic programming (plus maybe some additional ideas) gives optimal dependence for some problems (see, e.g., [12]).

ForFeedback Vertex Set, standard dynamic programming techniques give 2O(wlogw) nO(1)-time algorithms and it was considered plausible that this could be the best possible running time. Hence it was a remarkable surprise when it turned out that 2O(w)nO(1) algorithms are also possible for this problem by various techniques: Cygan et al. [7] obtained a 3wnO(1)-time randomized algorithm by using the so-called Cut & Count technique, and Bodlaender et al. [2] showed there is a deterministic 2O(w)nO(1)-time algorithm by using a rank-based approach and the concept of representative sets. This was also later shown in the more general setting of representative sets in matroids by Fomin et al. [11].

Generalized feedback vertex set problems. We explore the extent to which these results apply for generalizations ofFeedback Vertex Set. TheFeedback Vertex Setproblem asks for a setS of at mostkvertices such thatG−Sis acyclic, or in other words, every block ofGSis a single edge or vertex. We consider generalizations where we allow the blocks to be some other type of small graph, such as triangles, small cycles, or small cliques; these generalizations were first studied in [4]. The main result of this paper is that the existence of single-exponential algorithms is closely linked to whether the small graphs we are allowing are all chordal or not. Formally, we consider the following problem:

BoundedP-Block Vertex Deletion Parameter: d,w Input: A graphGof treewidth at mostw, and positive integersdandk.

Question: Is there a setSof at mostkvertices inGsuch that each block ofGS has at most dvertices and is inP?

The result of Bodlaender et al. [2] implies that whend= 2,BoundedP-Block Vertex Deletioncan be solved in time 2O(w)nO(1). Our main question is for which graph classesP can this problem be solved in time 2O(w)nO(1), when we regard das a fixed constant. A graph ischordal if it has no induced cycles of length at least 4. We show that ifP consists of only chordal graphs, then we can solve this problem in single-exponential time for fixedd.

ITheorem 1. LetP be a class of graphs that is block-hereditary, recognizable in polynomial time, and consists of only chordal graphs. Then Bounded P-Block Vertex Deletion can be solved in time 2O(wd2)k2n on graphs withn vertices and treewidthw.

The condition thatP is block-hereditary ensures that the class of graphs with blocks inP is hereditary; a formal definition is given in Section 2. We complement this result by showing that ifP contains a graph that is not chordal, then single-exponential algorithms are not possible (assuming ETH), even for fixedd. Note that ifP is block-hereditary and contains a graph that is not chordal, then this graph contains a chordless cycle on`>4 vertices and consequently the cycle graph on `vertices is also inP.

ITheorem 2. IfP contains the cycle graph on `>4vertices, then BoundedP-Block Vertex Deletionis not solvable in time 2o(wlogw)nO(1) on graphs of treewidth at mostw even for fixed d=`, unless the ETH fails.

Baste et al. [1] recently studied the complexity of a similar problem, where the task is to find a set of vertices whose deletion results in a graph with no minor in a given collection

(3)

of graphsF, parameterized by treewidth. WhenF={C4}, this is equivalent toBounded P-Block Vertex DeletionwhereP ={K2, K3}, and the complexity they obtain in this case is consistent with our result.

Whether this lower bound of Theorem 2 is best possible when P contains a cycle on

`>4 vertices remains open. However, as partial evidence towards this, we note that when P contains all graphs, the result by Baste et al. [1] implies that thatBounded P-Block Vertex Deletion can be solved in time 2O(wlogw)nO(1) when d is fixed, as the minor obstruction setF consists of all of 2-connected graphs withd+ 1 vertices.

Bounded-size components. Using a similar technique, we can obtain analogous results for a slightly simpler problem, that we callBounded P-Component Vertex Deletion, where we want to remove at most kvertices such that each connected component of the resulting graph has at mostdvertices and belongs toP. If we have only the size constraint (i.e., P contains every graph), then this problem is known asComponent Order Connec- tivity[9]. Drange et al. [9] studied the parameterized complexity of a weighted variant of theComponent Order Connectivityproblem; their results imply, in particular, that Component Order Connectivity can be solved in time 2O(klogd)n, but isW[1]-hard parameterized by onlyk ord. The corresponding edge-deletion problem, parameterized by treewidth, was studied by Enright and Meeks [10].

ITheorem 3. Let P be a class of graphs that is hereditary, recognizable in polynomial time, and consists of only chordal graphs. Then BoundedP-Component Vertex Deletion can be solved in time 2O(wd2)k2non graphs with nvertices and treewidth w.

ITheorem 4. IfP contains the cycle graph on`>4vertices, thenBoundedP-Component Vertex Deletion is not solvable in time2o(wlogw)nO(1) on graphs of treewidth at mostw even for fixedd=`, unless the ETH fails.

The result of Baste et al. [1] implies that when P contains all graphs, Bounded P- Component Vertex Deletion can be solved in time 2O(wlogw)nO(1). When dis not fixed, one might ask whether Bounded P-Component Vertex Deletion admits an f(w)nO(1)-time algorithm; that is, an FPT algorithm parameterized only by treewidth. We provide a negative answer: the problem is W[1]-hard whenP contains all chordal graphs, even parameterized by both treewidth andk. Furthermore, two stronger lower bound results hold, under the assumption of the ETH.

ITheorem 5. LetP be a hereditary class containing all chordal graphs. Then Bounded P-Component Vertex DeletionisW[1]-hard parameterized by the combined parameter (w, k). Moreover, unless the ETH fails, (1) this problem has no f(w)no(w)-time algorithm;

and (2) it has nof(k0)no(k0/logk0)-time algorithm, wherek0 =w+k.

Techniques. A pair (G, S) consisting of a graph G and a vertex subset S of G will be called a boundaried graph, and an S-block of Gis a block of Gcontaining an edge with both endpoints in S. The algorithm for Bounded P-Block Vertex Deletion uses several lemmas on S-blocks of boundaried graphs (G, S), which appear in Section 3. The key property is the following: (*) when we merge two boundaried graphs (G, S) and (H, S) into a graph G0, to decide whether eachS-block of G0 is some fixed target graph that is chordal, it is sufficient to know, for each non-trivial blockB of G[S] or H[S], some local information aboutB in theS-block containingB inGorH, respectively. We think of target graphs as labeled graphs where any two vertices in the same block have distinct labels in

(4)

{1, . . . , d}, and the local information referred to in (*) is the set of labels of neighbors ofB in theS-block containingB. The related result is stated as Proposition 6. This will be used to determine whether each of theS-blocks ofG0 is one of the target graphs inP. After then, to decide whetherG0 is a required graph, it remains to check that the whole graph has no chordless cycle, since there is a possibility of linking two controlled blocks by a sequence of uncontrolled blocks in both sidesGandH, and thus creating a chordless cycle in G0. This second part can be dealt with in a similar manner to the single-exponential time algorithm forFeedback Vertex Set, using representative-set techniques.

2 Preliminaries

We follow the terminology of Diestel [8], unless otherwise specified. A vertexv ofGis acut vertexif the deletion ofvfromGincreases the number of connected components. We sayG isbiconnected if it is connected and has no cut vertices. Note that every connected graph on at most two vertices is biconnected. Ablock of Gis a maximal biconnected subgraph ofG.

We sayGis 2-connected if it is biconnected and|V(G)|>3. An induced cycle of length at least four is called achordless cycle. A graph ischordal if it has no chordless cycles. For a class of graphsP, a graph is called aP-block graph if each of its blocks is inP. A classC of graphs isblock-hereditary if for every G∈ C and every biconnected induced subgraphH of G, H ∈ C. For two integers d1, d2 withd1 6d2, let [d1, d2] be the set of all integers i withd16i6d2, and for a positive integer, let [d] := [1, d]. For a functionf :XY and X0X, the functionf0:X0Y where f0(x) =f(x) for allxX0 is called therestriction off onX0, and is denotedf|X0. We also say thatf extendsf0 to the set X.

Blockd-labeling. Ablockd-labelingof a graphGis a functionL:V(G)→[d] such that for each blockB ofG,L|V(B) is an injection. IfGis equipped with a blockd-labelingL, then it is called a(block)d-labeled graph, and we callL(v) thelabel ofv. Twod-labeled graphs GandH are label-isomorphic if there is a graph isomorphism from Gto H that is label preserving. For biconnected blockd-labeled graphsGandH,H ispartially label-isomorphic toGifH is label-isomorphic to the subgraph ofGinduced by the vertices with labels inH.

Treewidth. A tree decompositionof a graphGis a pair (T,B) consisting of a treeT and a family B = {Bt}t∈V(T) of sets BtV(G), called bags, satisfying the following three conditions: (1)V(G) =S

t∈V(T)Bt, (2) for every edgeuvof G, there exists a nodet ofT such thatu, vBt, (3) fort1, t2, t3V(T),Bt1Bt3Bt2 whenevert2is on the path from t1 tot3 inT. The width of a tree decomposition (T,B) is max{|Bt| −1 :tV(T)}. The treewidth ofGis the minimum width over all tree decompositions ofG. A tree decomposition (T,B={Bt}t∈V(T)) isnice ifT is a rooted tree with root noder, and every nodet ofT is one of the following: (1) aleaf node: t is a leaf ofT andBt=∅; (2) anintroduce node: t has exactly one childt0 andBt=Bt0∪ {v}for somevV(G)\Bt0; (3) aforget node: t has exactly one childt0 andBt=Bt0\ {v} for somevBt0; or (4) ajoin node: t has exactly two childrent1 andt2, andBt=Bt1=Bt2.

Boundaried graphs. For a graphGandSV(G), the pair (G, S) is aboundaried graph.

WhenGis ad-labeled graph, we simply say that (G, S) is ad-labeled graph. Twod-labeled graphs (G, S) and (H, S) are said to becompatibleifV(G−S)V(H−S) =∅,G[S] =H[S], andGandH have the same labels onS. For two compatibled-labeled graphs (G, S) and (H, S), thesumof two graphs (G, S)⊕(H, S) is the graph obtained from the disjoint union of

(5)

GandH by identifying each vertex inS and removing an edge if multiple edges appear. We denote byLGLH the function fromV((G, S)⊕(H, S)) to [d] where forvV(G)∪V(H), (LGLH)(v) =LG(v) ifvV(G) and (LGLH)(v) =LH(v) otherwise. For two unlabeled

boundaried graphs, we define the sum in the same way, but ignoring the label condition.

A block of a graph is non-trivial if it has at least two vertices. For a boundaried graph (G, S), a blockB of Gis called anS-block if it contains an edge ofG[S]. Note that every non-trivial block ofG[S] is contained in a uniqueS-block ofGbecause two distinct blocks share at most one vertex. Let (G, S) be a boundaried graph. We defineAux(G, S) as the bipartite boundaried graph with bipartition (C1,C2) and boundary C2 such that (1)C1is the set of components ofG, andC2 is the set of components ofG[S], (2) forC1∈ C1andC2∈ C2, C1C2E(Aux(G, S)) if and only ifC2is contained inC1. When (G, S) and (H, S) are two compatibled-labeled graphs,Aux(G, S)Aux(H, S) is well-defined, asGandH have the same set of components onS. For a setS and a setX of subsets ofS, letInc(S,X) be the bipartite graph on the bipartition (S,X) where forvS andX ∈ X,v andX are adjacent inInc(S,X) if and only ifvX. For a boundaried graph (G, S), whenP is the partition of the setCof components ofG[S] such that two components ofG[S] are in the same part if and only if they are in the same component ofG, we denote byInc(C,P)∼Aux(G, S).

3 Lemmas about S-blocks

We present several lemmas regarding S-blocks. For a biconnected d-labeled graph Q, a d-labeled graph (G, S) isblock-wise partially label-isomorphic toQif everyS-blockB ofGis partially label-isomorphic toQ. For two compatibled-labeled graphs (G, S) and (H, S) with labelingsLG andLH respectively, we say (G, S) and (H, S) areblock-wise Q-compatible if 1. (G, S) and (H, S) are block-wise partially label-isomorphic toQ; and

2. for every non-trivial block B of G[S], letting B1 andB2 be the S-blocks of Gand H that contain B, respectively, LG(NB1(V(B))\S)LH(NB2(V(B))\S) =∅, and, for

`1LG(NB1(V(B))\S) and`2LH(NB2(V(B))\S), the vertices inQwith labels`1

and `2are not adjacent.

We describe sufficient conditions for when, given a chordal labeled graph Q, the sum of two given labeled graphs (G, S) and (H, S), each partially label-isomorphic toQ, is also partially label-isomorphic toQ.

I Proposition 6. Let Q be a biconnected d-labeled chordal graph. Let (G, S) and (H, S) be two block-wiseQ-compatible d-labeled graphs such that Aux(G, S)Aux(H, S) has no cycles. Then(G, S)⊕(H, S)is block-wise partially label-isomorphic toQ.

We use the following essential property of chordal graphs.

I Lemma 7. Let F be a connected graph and let Q be a connected chordal graph. Let µ:V(F)→V(Q)be a function such that for every induced pathp1· · ·pm inF of length at most two,µ(p1), . . . , µ(pm)are pairwise distinct andµ(p1)· · ·µ(pm)is an induced path ofQ.

Thenµis an injection and preserves the adjacency relation.

ILemma 8. Let(G, S)and(H, S)be two compatibled-labeled graphs such thatAux(G, S)⊕

Aux(H, S)has no cycles. (1) IfF is anS-block of(G, S)⊕(H, S) anduv is an edge inF, then uv is contained in some S-block ofG or H. (2) Suppose eachS-block of G or H is chordal. IfF is anS-block of (G, S)⊕(H, S)anduvw is an induced path inF such that u andw are not contained in the sameS-block ofGorH, thenvS, and there is an induced path q1q2· · ·q` from u=q1 tow=q` inFv such that eachqi is a neighbor of v.

(6)

Proof of Proposition 6. LetFbe anS-block of (G, S)⊕(H, S). LetLGandLHbe labelings ofGandH, respectively, and letL:=LGLH. We may assume |V(F)|>3. By Lemma 8, every edge ofF is contained in someS-block ofGorH. Thus, foruvE(F), we haveL(u)6=

L(v) and the vertices with labelsL(u) andL(v) are adjacent inQ. Moreover, since (G, S) and (H, S) are block-wise partially label-isomorphic toQ, we haveL(V(F))⊆LQ(V(Q)).

Letµ:V(F)→V(Q) such that for eachvV(F),L(v) =LQ(µ(v)).

To apply Lemma 7, it is sufficient to prove that if uvw is an induced path inF, then L(u) 6= L(w) and µ(u)µ(v)µ(w) is an induced path in Q. Since (G, S) and (H, S) are block-wise partially label-isomorphic toQ, if all ofu, v, ware contained in an S-block ofG orH, then it follows from the given condition. We may assumeuandware not contained in the sameS-block ofGorH. Then by (2) of Lemma 8,vS, and there is an induced pathq1q2· · ·q` fromu=q1 tow=q` inFv such that eachqi is a neighbor ofv.

We show that for i ∈ {1, . . . , `−2}, L(qi), L(qi+1), L(qi+2) are pairwise distinct, and µ(qi)µ(qi+1)µ(qi+2) is an induced path ofQ. If all ofqi, qi+1, qi+2 are contained inGorH, then they are contained in the sameS-block asv, and the claim follows. We may assumeqi

andqi+2 are in distinct graphs ofGS andHS. Then theS-block containingqi, qi+1, v and theS-block containingqi+1, qi+2, vshare the edge qi+1v. Since (G, S) and (H, S) are block-wiseQ-compatible,L(qi)6=L(qi+2) andµ(qi) is not adjacent to µ(qi+2) inQ.

We verify that µ(q1)µ(q2)· · ·µ(q`) is an induced path ofQ. Suppose this is false, and choosei1, i2∈ {1,2, . . . , `}withi2i1>1 and minimumi2i1such thatµ(qi1) is adjacent toµ(qi2) inQ. By minimality,µ(qi1)· · ·µ(qi2−1) andµ(qi1+1)· · ·µ(qi2) are induced paths and have length at least 2. Thusµ(qi1)· · ·µ(qi2) is an induced cycle of length at least 4, contradicting the assumption thatQis chordal. Therefore,µ(q1)µ(q2)· · ·µ(q`) is an induced path ofQ, and, in particular, L(u)6=L(w) andµ(u) andµ(w) are not adjacent in Q, as required. By Lemma 7, we conclude thatF is partially label-isomorphic toQ. J

Using Lemma 8, we can also prove the following.

ILemma 9. LetAbe a set, let(G, S)and(H, S)be two compatibled-labeled graphs, and let Bbe the set of non-trivial blocks inG[S]. Supposeg:B →Ais a function where eachS-block of G or H is chordal, Aux(G, S)Aux(H, S) has no cycles, and for every B1, B2 ∈ B whereB1 andB2 are contained in anS-block of GorH,g(B1) =g(B2). IfF is anS-block of (G, S)⊕(H, S)andB1, B2∈ Bwhere V(B1), V(B2)⊆V(F), theng(B1) =g(B2).

I Proposition 10. Let (G, S) and (H, S) be two compatible d-labeled graphs such that every S-block of (G, S)⊕(H, S)is chordal. Then(G, S)⊕(H, S)is chordal if and only if Aux(G, S)Aux(H, S)has no cycles.

Proof. We briefly sketch the proof of one direction. Suppose thatAux(G, S)Aux(H, S) has a cycleC1A1C2A2− · · · −CnAnC1 where C1, . . . , Cn are components of G[S]. For eachi ∈ {1, . . . , n}, let Pi be the shortest path from Ci toCi+1 in Ai, and let vi, wi be the end vertices of Pi where viV(Ci) and wiV(Ci+1). Let Qi be the shortest path fromwi tovi+1 inCi+1. We may assumen>3; it is easy when n= 2. Then v1P1Q1P2Q2− · · · −PnQnv1 is a cycle in (G, S)⊕(H, S), but is not necessarily a chordless cycle. We claim that it contains a chordless cycle. Letxbe the vertex following v2 in P2, and let y be the vertex preceding wn in Pn. Take a shortest path P from x toy in the pathyQnP1Q1x. Clearly P has length at least 2, asxand y are contained in distinct connected components ofGorH. Also, every internal vertex ofP has no neighbors in the other path of the cyclev1P1Q1P2Q2− · · · −PnQnv1between xandy. So, if we take a shortest pathP0 fromxto y along the other part of the cycle v1P1Q1P2Q2− · · · −PnQnv1, thenPP0 is a chordless cycle. J

(7)

4 Bounded P-Block Vertex Deletion

We prove Theorem 1. We first focus on S-blocks of boundaried graphs (G, S). For each non-trivial block of G[S], we guess its final shape, as ad-labeled biconnected graph, and store the labelings of the vertices and their neighbors in the S-block of G containing it.

Collectively, we call this information a characteristic of (G, S). Using characteristics, we controlS-blocks in (G, S)⊕(H, S), where (H, S) is a compatibled-labeled graph. By the previous step, we may assume that everyS-block of (G, S)⊕(H, S) is inP and has at most dvertices. Note that (G, S)⊕(H, S) still may have a chordless cycle. By Proposition 10, if we assume that everyS-block of (G, S)⊕(H, S) is inP, then (G, S)⊕(H, S) is chordal if and only if Aux(G, S)Aux(H, S) has no cycles. So, instead of keepingAux(G, S), we store the corresponding partition of the set of components ofG[S].

For convenience, we fix an integer d>2 and a classP of graphs that is block-hereditary, recognizable in polynomial time, and consists of only chordal graphs. Let Ud be the set of all d-labeled biconnected P-block graphs, where each H inUd has labeling LH. For a boundaried graph (G, S), we denote by Block(G, S) the set of all non-trivial blocks inG[S].

For a d-labeled graph (G, S) with a labelingL, acharacteristic of (G, S) is a pair (g, h) of functions g : Block(G, S)→ Ud andh: Block(G, S)→2[d] satisfying the following, for eachB∈Block(G, S) and the uniqueS-block H ofGcontainingB,

1. (label-isomorphic condition)H is partially label-isomorphic tog(B);

2. (coincidence condition) for every B0∈Block(G, S) withV(B0)⊆V(H),g(B0) =g(B);

3. (neighborhood condition) h(B) =L(NH(V(B))\S); and

4. (complete condition) for every wwherewV(H)\S or{w}=V(H)∩V(C) for some component C of G[S], H[NH[w]] is label-isomorphic tog(B)[Ng(B)[z]] where z is the vertex ing(B) with labelL(w).

We say that the sum (G, S)⊕(H, S)respects(g, h) if for eachB ∈Block(G, S), theS-block of (G, S)⊕(H, S) containing B is label-isomorphic to g(B). The following is the main combinatorial result regarding characteristics.

I Theorem 11. Let (G1, S), (G2, S), (H, S) be d-labeled P-block graphs such that each (Gi, S)is compatible with (H, S), (G1, S)and (G2, S) have the same characteristic (g, h), andAux(G2, S)Aux(H, S)has no cycles. If(G1, S)⊕(H, S)is a d-labeled P-block graph that respects(g, h), then(G2, S)⊕(H, S)is ad-labeled P-block graph that respects(g, h).

Proof. We show (G2, S)⊕(H, S) respects (g, h). Choose a non-trivial blockB ofG2[S], let Q:=g(B), let F be theS-block of (G2, S)⊕(H, S) containingB,LF be the function from V(F) to [d] that sends each vertex to its label fromG2 orH, andLQ be the labeling ofQ.

We claim thatF is label-isomorphic toQ. We regardF as the sum of (F∩G2, V(F)∩S) and (F∩H, V(F)∩S) and verify the conditions of Proposition 6. Using Lemma 9, for every B0∈Block(G2, S) withV(B0)⊆V(F),g(B0) =Q. We also observe thatAux(F∩G2, SF)⊕ Aux(FH, SF) has no cycles asAux(G2, S)Aux(H, S) has no cycles. Since (g, h) is a characteristic of (G2, S) and (G1, S)⊕(H, S) respects (g, h), we can confirm that both FGandFH are block-wise partially label-isomorphic toQ. The second condition of being block-wiseQ-compatible follows from the fact that (G1, S) and (G2, S) have the same characteristic (g, h). Thus,FG2 andFH are block-wiseQ-compatible, and this implies thatF is partially label-isomorphic toQby Proposition 6. By the ‘complete condition’ of a characteristic, we can show thatLQ(V(Q))⊆LF(V(F)), soF is label-isomorphic to Q.

Lastly, we can confirm that (G2, S)⊕(H, S) is ad-labeled P-block graph by showing that every non S-block of (G2, S)⊕(H, S) is fully contained inG2 orH. We can argue this using the fact that (G2, S)⊕(H, S) is chordal, which is implied by Proposition 10. J

(8)

Proof of Theorem 1. We obtain a nice tree decomposition (T,B={Bt}t∈V(T)) ofGwith root noder and width at most 5w+ 4 in time O(cw·n) for some constant c using the approximation algorithm by Bodlaender et al. [3]. FortV(T), letGtbe the subgraph of Ginduced by the union of all bags Bt0 wheret0 is a descendant oft. Let Comp(t, X) be the set of all components ofG[Bt\X], and Part(t, X) be the set of all partitions of Comp(t, X).

For each nodetofT,XBt, and a functionL:Bt\X →[d], we defineF(t, X, L) as the set of all pairs (g, h) consisting of functionsg: Block(t, X)→ Ud andh: Block(t, X)→2[d]. We say that (g, h) isvalid, if (1)Lis ad-labeling ofG[Bt\X], (2) for eachB ∈Block(t, X),B is partially label-isomorphic tog(B), and (3) for eachB∈Block(t, X),L(V(B))∩h(B) =∅.

For i ∈ {0,1, . . . , k} and (g, h) ∈ F(t, X, L), let c[t,(X, L, i,(g, h))] be the family of all partitionsX ∈Part(t, X) satisfying the following property: there existSV(Gt)\Btwith

|S|=iand ad-labelingL0ofGt−(X∪S) where (1)L=L0|Bt\X, (2)Gt−(X∪S) is aP-block graph, (3) (g, h) is a characteristic of (Gt−(X∪S), Bt\X), and (4)Inc(Comp(t, X),X)∼ Aux(Gt−(X∪S), Bt\X). Such a pair (S, L0) is apartial solution with respect to X.

The main idea is that instead of fully computing c[t, M] for M = (X, L, i,(g, h)), we recursively enumerate a setr[t, M] that may represent partial solutions forc[t, M]. Formally, for a subset r[t, M]c[t, M], we denote r[t, M]c[t, M] if for every X ∈ c[t, M] and a partial solution (S, L0) with respect toX andSoutV(G)\V(Gt) whereG−(S∪XSout) is ad-labeledP-block graph respecting (g, h), there existsX1r[t, M] and a partial solution (S0, L00) with respect toX1such thatG−(S0∪X∪Sout) is ad-labeledP-block graph respecting (g, h). By the definition ofr[t, M], the problem is aYes-instance if and only if there exists (X, L, i,(g, h)) for the root node rwith|X|+i6ksuch thatr[r,(X, L, i,(g, h)]6=∅.

Whenever we update r[t, M], we confirm that |r[t, M]| 6w·2w−1. This will be the application of the representative set technique developed by Bodlaender et al. [2]. For a setS and a set Aof partitions of S, a subset A0 of Ais called a representative set if for everyX1∈ Aand every partition Y ofS whereInc(S,X1∪ Y) has no cycles, there exists a partitionX2∈ A0 such thatInc(S,X2∪ Y) has no cycles.

IProposition 12. Given a familyAof partitions of a setS, one can output a representative set ofAof size at most |S| ·2|S|−1 in timeAO(1)2O(|S|).

We sketch how to update familiesr[t, M] whentis an introduce node with child nodet0. We may assume (g, h) is valid, otherwisec[t, M] =∅.

Let v be the vertex in Bt \Bt0. If vX, then GtX = Gt0 −(X \ {v}) and Bt\X =Bt0\(X\ {v}). Thus, we can setr[t, M] :=r[t0,(X\ {v}, L, i,(g, h))]. We assume v /X, and let Lres := L|Bt0\X. For (g, h) ∈ F(t, X, L), a pair (g0, h0) ∈ F(t0, X, Lres) is called the restriction of (g, h) if (1) for B1 ∈ Block(t0, X) and B2 ∈ Block(t, X) with V(B1)⊆V(B2),g0(B1) =g(B2), and ifvV(B2), then every vertex ing0(B1) with label inh0(B1) is not adjacent to the vertex ing0(B1) with labelL(v), (2) forB1∈Block(t0, X) andB2 ∈ Block(t, X) with V(B1) ⊆V(B2) and v /V(B2), h0(B1) = h(B2), and (3) for B2∈Block(t, X) containing v, h(B2) =S

B1∈Block(t0,X),V(B1)⊆V(B2)h(B1).

IClaim 13. ForX ∈Part(t, X),X ∈c[t, M] if and only if there exist a restriction (g0, h0) of (g, h) and Y ∈ c[t0,(X, Lres, i,(g0, h0))] such that (1) v has neighbors on at most one component in each part ofY, and (2) ifv has at least one neighbor inG[Bt\X], thenX is the partition obtained from Y by, for partsY1, . . . , Ymof Y containing components having a neighbor ofv, removing all ofY1, . . . , Ym and adding a part that consists of all components of G[Bt\X] not contained in parts ofY \ {Y1, . . . , Ym}; and otherwise, X =Y ∪ {{v}}.

(9)

We update r[t, M] as follows. Set K := ∅. For a pair of functions (g0, h0), we test whether (g0, h0) is a restriction of (g, h). Assume (g0, h0) is a restriction of (g, h). For each Y ∈r[t0,(X, Lres, i,(g0, h0))], we check the two conditions for (g0, h0) andY in Claim 13, and if they are satisfied, then add the setX described in Claim 13 toK; otherwise, skip it. The whole procedure can be done in time 2O(wd2). After we do this for all possible candidates, we take a representative set ofK using Proposition 12, and assign the resulting set tor[t, M].

We claim thatr[t, M]c[t, M]. LetGout:=G−(V(Gt)\Bt),X ∈c[t, M], and (S, L0) be a partial solution with respect toX, and suppose there existsSoutV(G)\V(Gt) where (Gt−(X∪S), Bt\X)⊕(Gout−(X∪Sout), Bt\X) is ad-labeledP-block graph respecting (g, h). Every (Bt0\X)-block ofG−(S∪X∪Sout) is chordal as such a block is a (Bt\X)-block ofG−(S∪X∪Sout). SinceG−(S∪XSout) is chordal, by Proposition 10,Aux(Gt0−(X∪ S), Bt0\X)⊕Aux(Gout−(X∪Sout), Bt0\X) has no cycles. LetMres:= (X, Lres, i,(g0, h0)).

As r[t0, Mres]≡c[t0, Mres], there exist Y ∈r[t0, Mres] and a partial solution (S0, L00) with respect toY such thatInc(Comp(t0, X),Y)∼Aux(Gt0−(X∪S0), Bt0\X) has no cycles.

By Theorem 11,G−(S0XSout) is ad-labeledP-block graph respecting (g, h).

By the procedure,X1whereInc(Comp(t, X),X1)∼Aux(Gt−(X∪S0), Bt\X) is added toK. And there existX2r[t, M] and a partial solution (S00, L000) with respect toX2 such thatG−(S00XSout) is ad-labeledP-block graph. Thus,r[t, M]c[t, M].

Total running time. We denote|V(G)|byn. Note that the number of nodes inT isO(wn).

For fixed tV(T), there are at most 2w+1 possible choices for XBt, and for fixed XBt, there are at mostdw+1 possible functionsL. Furthermore, the size ofF(t, X, L) is bounded by 2O(wd2). Thus, there areO(n·k·max(2, d)w+1·2O(wd2)) tables. In summary, the algorithm runs in timeO(n·k·max(2, d)w+1)·2O(wd2)·k= 2O(wd2)k2n. J

5 Lower bound for fixed d

We showed thatBounded P-Component Vertex DeletionandBounded P-Block Vertex Deletionadmit single-exponential time algorithms parameterized by treewidth, wheneverP is a class of chordal graphs. We now establish that, assuming the ETH, this is no longer the case whenP contains a graph that is not chordal.

In thek×k Independent Setproblem, one is given a graphG= ([k]×[k], E) over the k2 vertices of ak-by-k grid. We denote byhi, jiwithi, j∈[k] the vertex ofGin thei-throw andj-thcolumn. The goal is to find an independent set of size kinGthat contains exactly one vertex in each row. ThePermutation k×k Independent Setproblem is similar but with the additional constraint that the independent set should also contain exactly one vertex per column.

I Theorem 14. If P contains the cycle graph on ` > 4 vertices, then Bounded P- Component Vertex Deletion, or Bounded P-Block Vertex Deletion, is not solvable in time 2o(wlogw)nO(1) on graphs of treewidth at mostweven for fixedd=`, unless the ETH fails.

Proof. To prove this theorem, we reduce fromPermutationk×kIndependent Setwhich, likePermutationk×k Clique, cannot be solved in time 2o(klogk)kO(1) unless the ETH fails [13]. LetG= ([k]×[k], E) be an instance of Permutationk×k Independent Set. We assume that∀h, i, j∈[k] withh6=i,hi, jihh, ji ∈E. Adding these edges does not change theYes- andNo-instances, but has the virtue of makingPermutationk×kIndependent Setequivalent tok×kIndependent Set. We also assume that∀h, i, j∈[k],hi, jihi, hi∈/E,

(10)

Se1 He1 Se2 He2 Se3 He3 Sem Hem

Figure 1A high-level schematic ofG0 andG00. TheHeis only differ by a constant number of edges (in red/light gray) that encode their edgeeiofG.

since at most one ofhi, jiandhi, hican be in a given solution. Letm:=|E|=O(k4) be the number of edges ofG.

Outline. We build two graphsG0 = (V0, E0) andG00 = (V0, E00) with treewidth at most (3d+ 4)k+ 6d−5 =O(k), and ((3d−2)k2+ 2k)mvertices, where the following are equivalent:

1. Ghas an independent set of sizek with one vertex per row ofG.

2. There is a set SV0 of size at most (3d−2)k(k−1)m such that each connected component ofG0S has size at mostdand belongs toP.

3. There is a setSV0 of size at most (3d−2)k(k−1)msuch that each block ofG00S has size at mostdand belongs toP.

The overall construction ofG0 andG00 will displaymalmost copies of the encoding of an edgeless G arranged in a cycle. Each copy embeds one distinct edge of G. The point of having the information ofGdistilled edge by edge inG0 andG00 is to control the treewidth.

This general idea originates from a paper of Lokshtanov et al. [12].

Construction. We first describe G0. As a slight abuse of notation, a gadget (and, more generally, a subpart of the construction) may refer to either a subset of vertices or to an induced subgraph. For eache=hie, jeihi0e, j0ei ∈E, we detail the internal construction of He andSeof Figure 1 and how they are linked to one another. Each vertexv=hi, jiofG is represented by a gadgetHe(v) on 3d−2 vertices inG0: a path on d−3 vertices whose endpoints areve−aandv−be , an isolated vertexve+, and two disjoint cycles of lengthd. Observe that ifd= 4, thenve−a andv−be is the same vertex. We add all the edges betweenHe(hi, ji) andHe(hi, j0i) for i, j, j0 ∈[k] withj 6=j0. We also add all the edges betweenHe(hie, jei) andHe(hi0e, j0ei). We callHe the graph induced by the union of everyHe(v), forvV(G).

Therow/column selector gadgetSeconsists of a set Sreofkvertices with one vertex riefor each row indexi∈[k], and a setSceofk vertices with one vertexcej for each column index j∈[k]. The gadgetSeforms an independent set of size 2k. We arbitrarily number the edges ofG: e1, e2, . . . , em. For eachh∈[m] andv=hi, ji ∈V, we linkv−aeh toreih (the row index ofv) andv−beh tocejh (the column index ofv). We also link, for everyh∈[m−1],ve+h torieh+1 and tocejh+1, andv+em torei1 and tocej1. That concludes the construction (see Figure 2). To obtainG00fromG0, we add the edgescejhcej+1h for everyh∈[m] andj∈[k−1]. We ask for a deletion setS of size s:= (3d−2)k(k−1)m.

Treewidth ofG0 andG00. For any edgeeE, we setH(e) :=He(hie, jei)∪He(hi0e, j0ei).

For anyi∈[m−1], we set ˜Si:=Se1SeiSei+1, and ˜Sm:=Se1Sem. For eacheE, andi∈[k],He(i) denotes the union of theHe(v) for all verticesv of thei-th row. Here is a path decomposition ofG0 andG00:

S˜1H(e1)∪He1(1)→S˜1H(e1)∪He1(2)→. . .S˜1H(e1)∪He1(k)→ ...

S˜mH(em)∪Hem(1)→S˜mH(em)∪Hem(2)→. . .S˜mH(em)∪Hem(k).

(11)

row index column index

Ser1 Sec1

He1

row index column index

Ser2 Sec2

He2

...

Figure 2The overall picture ofG0 andG00withk= 3. Dotted edges are subdividedd−4 times;

ifd= 4, they are simply edges. Dashed edges are subdividedd−5 times; ifd= 4, the two endpoints are in fact a single vertex. Edges between two boxes link each vertex of one box to each vertex of the other box. The gray edges in the column selectorsSceh are only present inG00.

As, for anyh∈[m],|S˜h|66k,|H(eh)|= 2(3d−2), and|Heh(i)|6(3d−2)kfor anyi∈[k], the size of a bag is bounded by maxh∈[m],i∈[k]|S˜h∪H(eh)∪Heh(i)|66k+2(3d−2)+(3d−2)k= (3d+ 4)k+ 6d−4.

Correctness. If there is an independent set I of size k in G, a solution to a Bounded P-Component Vertex DeletionorBounded P-Block Vertex Deletioninstance can be obtained by deleting from eachHeevery He(v) such thatv /I.

We show that 2 ⇒ 1 and 3 ⇒ 1. We assume that there is a set SV0 of size at most s such that all the blocks ofG00S (resp. G0S) have size at most d. We note that this corresponds to assuming condition 3 (resp. a weaker assumption than condition 2) holds. We show that there are at most 3d−2 vertices of He(i) remaining inG00S (or G0S). Assume, for the sake of contradiction, that He(i)−S contains at least 3d−1 vertices. Observe that He(i)−S cannot contain at least one vertex from three distinct He(u), He(v), and He(w) (with u, v andw in the i-th row of G), since then He(i)−S would be 2-connected (and of size> d). For the same reason, He(i)−S cannot contain at least two vertices inHe(u) and at least two vertices in anotherHe(v). Therefore, the only way of fitting 3d−1 vertices inHe(i)−S is the 3d−2 vertices of anHe(u) plus one vertex from some otherHe(v). But then, this vertex ofHe(v) would form, together with oneCd ofHe(u), a 2-connected subgraph ofG00S (orG0S) of sized+ 1. Now, we know that|He(i)∩S|>(3d−2)(k−1). As there are preciselymksetsHe(i) inG0 (and they are disjoint), it further holds that|He(i)∩S|= (3d−2)(k−1), since otherwiseS would contain strictly more thans= (3d−2)k(k−1)mvertices. Thus,He(i)−S contains exactly 3d−2 vertices. By the previous remarks,He(i)−S can only consist of the 3d−2 vertices of the sameHe(u) or 3d−3 vertices ofHe(u) plus one vertex from another He(v). In fact, the latter case is not possible, since the vertex ofHe(v) would form, with at least one remaining Cd of the 3d−3 vertices ofHe(u), a 2-connected subgraph ofG00S (orG0S) of size d+ 1. This is why we needed two disjointCds in the construction instead of just one. So far, we have proved that, assuming condition 2 or condition 3 holds, for anyeE andi∈[k], He(i)∩S=He(vi,e) for some vertexvi,e of thei-th row ofG, and for anyeE,SeS=∅.

(12)

In what follows, we show thatvi,e does not depend one. Formally, we want to show that there is avi such that, for anyeE,vi,e=vi. Observe that it is enough to derive that, for anyh∈[m], vi,eh =vi,eh+1 (withem+1=e1). Let j∈[k] (resp.j0∈[k]) be the column of vi,eh (resp.vi,eh+1) inG. We first assume condition 2 holds. For anyh∈[m], vi,eheh

+, rieh+1, cejh+10 , cejh+1 plus the path Pvei,eh+1h+1 (betweenvi,eh+1e−ah+1 andvi,eh+1e−bh+1) induces a path (in particular, a connected subgraph) of sized+ 1 inG00S, unless j=j0 (withem+1=e1).

Therefore, j =j0. As vi,eh andvi,eh+1 have the same column j and the same rowi inG, vi,eh =vi,eh+1. Showing the same property under 3 is done similarly. We can now safely definevi:=vi,e and conclude by proving that{v1, v2, . . . , vk}is a clique. J

References

1 Julien Baste, Ignasi Sau, and Dimitrios M. Thilikos. Optimal algorithms for hitting (topological) minors on graphs of bounded treewidth. CoRR, abs/1704.07284, 2017.

arXiv:1704.07284.

2 Hans L. Bodlaender, Marek Cygan, Stefan Kratsch, and Jesper Nederlof. Deterministic single exponential time algorithms for connectivity problems parameterized by treewidth.

Inf. Comput., 243:86–111, 2015. doi:10.1016/j.ic.2014.12.008.

3 Hans L. Bodlaender, Pål Grønås Drange, Markus S. Dregi, Fedor V. Fomin, Daniel Loksh- tanov, and Michal Pilipczuk. A ck n 5-approximation algorithm for treewidth. SIAM J.

Comput., 45(2):317–378, 2016. doi:10.1137/130947374.

4 Édouard Bonnet, Nick Brettell, O-joung Kwon, and Dániel Marx. Parameterized vertex deletion problems for hereditary graph classes with a block property. InGraph-Theoretic Concepts in Computer Science, volume 9941 ofLecture Notes in Comput. Sci., pages 233–

244, 2016.

5 Édouard Bonnet, Nick Brettell, O-joung Kwon, and Dániel Marx. Generalized feedback ver- tex set problems on bounded-treewidth graphs: chordality is the key to single-exponential parameterized algorithms. ArXiv e-prints, 2017. arXiv:1704.06757.

6 Bruno Courcelle. The monadic second-order logic of graphs. i. recognizable sets of finite graphs. Inf. Comput., 85(1):12–75, 1990. doi:10.1016/0890-5401(90)90043-H.

7 Marek Cygan, Jesper Nederlof, Marcin Pilipczuk, Michal Pilipczuk, Johan M. M. van Rooij, and Jakub Onufry Wojtaszczyk. Solving connectivity problems parameterized by treewidth in single exponential time. In Rafail Ostrovsky, editor,IEEE 52nd Annual Symposium on Foundations of Computer Science, FOCS 2011, Palm Springs, CA, USA, October 22-25, 2011, pages 150–159. IEEE Computer Society, 2011. doi:10.1109/FOCS.2011.23.

8 Reinhard Diestel. Graph theory, volume 173 ofGraduate Texts in Mathematics. Springer, Heidelberg, fourth edition, 2010. doi:10.1007/978-3-642-14279-6.

9 Pål Grønås Drange, Markus S. Dregi, and Pim van ’t Hof. On the computational complexity of vertex integrity and component order connectivity.Algorithmica, 76(4):1181–1202, 2016.

doi:10.1007/s00453-016-0127-x.

10 Jessica Enright and Kitty Meeks. Deleting edges to restrict the size of an epidemic: A new application for treewidth. In Zaixin Lu, Donghyun Kim, Weili Wu, Wei Li, and Ding-Zhu Du, editors, Combinatorial Optimization and Applications - 9th International Conference, COCOA 2015, Houston, TX, USA, December 18-20, 2015, Proceedings, volume 9486 ofLecture Notes in Computer Science, pages 574–585. Springer, 2015. doi:10.1007/

978-3-319-26626-8_42.

11 Fedor V. Fomin, Daniel Lokshtanov, and Saket Saurabh. Efficient computation of represen- tative sets with applications in parameterized and exact algorithms. In Chandra Chekuri, editor,Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algo-

(13)

rithms, SODA 2014, Portland, Oregon, USA, January 5-7, 2014, pages 142–151. SIAM, 2014. doi:10.1137/1.9781611973402.10.

12 Daniel Lokshtanov, Dániel Marx, and Saket Saurabh. Known algorithms on graphs on bounded treewidth are probably optimal. In Dana Randall, editor, Proceedings of the Twenty-Second Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2011, San Francisco, California, USA, January 23-25, 2011, pages 777–789. SIAM, 2011. doi:10.

1137/1.9781611973082.61.

13 Daniel Lokshtanov, Dániel Marx, and Saket Saurabh. Slightly superexponential parameter- ized problems. In Dana Randall, editor,Proceedings of the Twenty-Second Annual ACM- SIAM Symposium on Discrete Algorithms, SODA 2011, San Francisco, California, USA, January 23-25, 2011, pages 760–776. SIAM, 2011. doi:10.1137/1.9781611973082.60.

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

If P contains the cycle graph on ` ě 4 vertices, then Bounded P -Block Vertex Deletion is not solvable in time 2 opw log wq n Op1q on graphs with n vertices and treewidth at most w

Our second problem is that of deleting a set of k arcs or vertices from a given digraph such that each remaining non-trivial strong component is 1-out-regular, meaning that every

We give an O(log 2 n)-factor approximation algorithm for Weighted Chordal Vertex Deletion ( WCVD ), the vertex deletion problem corresponding to the family of chordal graphs.. On

For the colorful variant, we demonstrate matching upper and lower bounds showing that the dependence of the running time on treewidth of G is tightly governed by µ(H), the maximum

Treewidth Graph Minors Theorem Well-Quasi-Ordering Bounded Search Tree... Fixed-parameter

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

bounds for polynomial time solvable problems, and for running time of