On computing tree and path decompositions with metric constraints on the bags Guillaume Ducoffe1,2, Sylvain Legay3, and Nicolas Nisse2,1 1 Univ. Nice Sophia Antipolis, CNRS, I3S, UMR 7271, 06900 Sophia Antipolis, France 2INRIA, France 3LRI, Univ Paris Sud, Université Paris-Saclay, 91405 Orsay, France Abstract 6 1 We here investigate on the complexity of computing the tree-length and the tree-breadth of any 0 graphG,thatarerespectivelythebestpossibleupper-boundsonthediameterandtheradiusofthe 2 bags in a tree decomposition of G. Path-length and path-breadth are similarly defined and studied for path decompositions. So far, it was already known that tree-length is NP-hard to compute. n We here prove it is also the case for tree-breadth, path-length and path-breadth. Furthermore, we a J provide a more detailed analysis on the complexity of computing the tree-breadth. In particular, we show that graphs with tree-breadth one are in some sense the hardest instances for the problem 8 of computing the tree-breadth. We give new properties of graphs with tree-breadth one. Then we ] use these properties in order to recognize in polynomial-time all graphs with tree-breadth one that C are planar or bipartite graphs. On the way, we relate tree-breadth with the notion of k-good tree C decompositions (for k =1), that have been introduced in former work for routing. As a byproduct . of the above relation, we prove that deciding on the existence of a k-good tree decomposition is s NP-complete (even if k=1). All this answers open questions from the literature. c [ 1 Keywords: tree-length; tree-breadth; path-length; path-breadth; k-good tree decompositions. v 8 5 1 Introduction 9 1 0 Context. It is a fundamental problem in metric graph theory [7] to embed a graph into a . simplermetricspacewhileminimizingthe(multiplicative)distortionofthedistancesinthegraph. 1 In particular, minimum distortion embeddings of a graph into a tree or a path have practical 0 6 applicationsincomputervision[48],computationalchemistryandbiology[38]aswellasinnetwork 1 design and distributed protocols [36]. The two problems to embed a graph into a tree or a path : with minimum distortion are NP-hard [2, 8, 43]. However, there exists a nice setting in order to v approximatethesetwoproblems. Moreprecisely,aseriesofgraphparametershasbeenintroduced i X in recent work in order to measure how much the distance distribution of a graph is close to a r tree metric or a path metric [26, 29, 30]. We refer to [28, 30] for details about the relationships a between these parameters and the two above-mentioned embedding problems. Here we study the complexity of computing these parameters, thereby solving open problems in the literature. TheparametersthatareconsideredinthisnotecanbedefinedusingtheterminologyofRobert- son and Seymour tree decompositions [46]. Informally, a tree decomposition is a dividing of a graph G into “bags”: that are overlapping subgraphs that can be pieced together in a tree-like manner (formal definitions will be given in the technical sections of the paper). The shortest- pathmetricofGis“tree-like” wheneachbagofthetreedecompositionhasboundeddiameterand boundedradius,wherethedistancetakenbetweentwoverticesinasamebagistheirdistanceinG. The tree-length [26] and the tree-breadth [29] of G are respectively the best possible upper-bounds on the diameter and the radius of the bags in a tree decomposition of G. Path-length [49] and path-breadth [30] are defined in the same fashion as tree-length and tree-breadth for path decom- positions. Inthispaper,wefocusonthecomplexityofcomputingthefourparameterstree-length, tree-breadth, path-length and path-breadth. 1 Recentstudiessuggestthatsomeclassesofreal-lifenetworks–includingbiologicalnetworksand social networks – have bounded tree-length and tree-breadth [1]. This metric tree-likeness can be exploitedinalgorithms. Forinstance,boundedtree-lengthgraphsadmitcompactdistancelabeling scheme [25] as well as a PTAS for the well-known Traveling Salesman problem [41]. Furthermore, thediameterandtheradiusofboundedtree-lengthgraphscanbeapproximateduptoanadditive constant in linear-time [19]. In contrast to the above result, we emphasize that under classical complexityassumptionsthediameterofgeneralgraphscannot beapproximateduptoanadditive constant in subquadratic-time, that is prohibitive for very large graphs [17]. Note that a large amount of the literature about tree decompositions rather seeks to minimize thesize ofthebagsthantheirdiameter. Thetree-width [46]ofagraphGisthebestpossibleupper- bound on the size of the bags in a tree decomposition of G. However, tree-length and the other parametersthatareconsideredinthispapercandifferarbitrarilyfromtree-width;wereferto[22] for a global picture on the relations between tree-length and tree-width. Furthermore, one aim of thispaperistocompletethecomparisonbetweentree-widthandpath-widthononeside,andtree- length, tree-breadth, path-length and path-breadth on the other side, from the complexity point of view. Let us remind that computing the tree-width (resp. the path-width) is NP-hard [4, 39], however for every fixed k ≥ 1 there is a linear-time algorithm to decide whether a graph has tree-width at most k (resp., path-width at most k) [10, 14]. Related work. The complexity of computing tree-length, tree-breadth, path-length and path- breadth has been left open in several works [26, 29, 30]. So far, it has been solved only for tree-length, that is NP-hard to compute. Tree-length and tree-breadth. It is NP-complete to decide whether a graph has tree-length at most k for every constant k ≥ 2 [42]. However, the reduction used for tree-length goes through weighted graphs and then goes back to unweighted graphs using rather elegant gadgets. It does not seem to us these gadgets can be easily generalized in order to apply to the other parameters thatareconsideredinthisnote. Onamorepositiveside,thereexistsa3-approximationalgorithm for tree-length [26]. In this aspect, it looks natural to investigate on the complexity of computing the tree-breadth, since any polynomial-time algorithm would imply an improved 2-approximation algorithm for tree-length. Path-length and path-breadth. There exist constant-factor approximation algorithms for path- length and path-breadth [30]. Recently, the minimum eccentricity shortest-path problem – that is closetothecomputationofpath-lengthandpath-breadth–hasbeenprovedNP-hard[31]. Letus point out that for every fixed k, it can be decided in polynomial-time whether a graph admits a shortest-path with eccentricity at most k [31]. Our results will show the situation is different for path-length and path-breadth than for the minimum eccentricity shortest-path. Our contributions. On the negative side, we prove that tree-breadth, path-length and path- breadth are NP-hard to compute. More precisely: • recognizing graphs with tree-breadth one is NP-complete; • recognizing graphs with path-length two is NP-complete; • recognizing graphs with path-breadth one is NP-complete. Itisremarkablethelasttworesults(forpath-lengthandpath-breadth)areobtainedusingthesame reduction. Ourreductionshavedistantsimilaritieswiththereductionthatwasusedfortree-length. However, they do not need any detour through weighted graphs. We next focus our work on tree-breadth (although part of the results may extend to the three other parameters that are considered in this note). We give a more in-depth analysis on the complexity of computing this parameter. In particular, we prove it is equally hard to compute tree-breadthastorecognizegraphswithtree-breadthone. Therefore,graphswithtree-breadthone areinsomesensethehardestinstancesfortheproblemofcomputingthetree-breadth. Thelatter partlyanswersanopenquestionfrom[29],whereitwasaskedforacharacterizationofgraphswith tree-breadth one. We also prove a few properties of graphs with tree-breadth one. In particular, graphswithtree-breadthoneareexactlythosegraphsadmittinga1-good tree decomposition,that is a tree decomposition whose each bag has a spanning star. The more general notion of k-good treedecompositionswasintroducedin[40]toobtainnewcompactroutingschemes. Notethatasa byproductoftheaboverelationbetween1-goodtreedecompositionsandgraphswithtree-breadth 2 one, we obtain that deciding on the existence of a k-good tree decomposition is an NP-complete problem even when k=1. Finally, on the algorithmic side, we show how to recognize in polynomial time all graphs of tree-breadth one that are planar or bipartite. In particular, our recognition algorithm for planar graphs of tree-breadth one relies upon deep structural properties of these graphs. Definitions and useful notations are given in Section 2. All our results of NP-completeness are listed and proved in Section 3. Sections 4 and 5 are devoted to the computation of tree-breadth. Inparticular,inSection5wepresentandweprovecorrectnessofanalgorithmtorecognizeplanar graphs with tree-breadth one. Finally, we discuss about some open questions in the conclusion (Section 6). 2 Definitions and preliminary results We refer to [24] for a survey on graph theory. Graphs in this study are finite, simple, connected and unweighted. Let G = (V,E) be a graph. For any X ⊆ V, let G[X] denote the subgraph of G induced by X. For any subgraph H of G, let N (v) denote the set of neighbors of v ∈ V in H H, and let N [v]=N (v)∪{v}. The distance dist (u,v) between two vertices u,v ∈V in H is H H H theminimumlength(numberofedges)ofapathbetweenuandv inasubgraphH ofG. Inwhat follows, we will omit the subscript when no ambiguity occurs. A set S ⊆V is a dominating set of G if any vertex of V \S has a neighbor in S. The dominating number γ(G) of a graph G is the minimum size of a dominating set of G. Tree decompositions and path decompositions of a graph. A tree decomposition (T,X)ofGisapairconsistingofatreeT andofafamilyX =(X ) ofsubsetsofV indexed t t∈V(T) by the nodes of T and satisfying: (cid:83) • X =V; t∈V(T) t • for any edge e={u,v}∈E, there exists t∈V(T) such that u,v∈X ; t • for any v∈V, the set of nodes t∈V(T) such that v∈X induces a subtree, denoted by T , t v of T. The sets X are called the bags of the decomposition. If no bag is contained into another one, t thenthetreedecompositioniscalledreduced. Startingfromanytreedecomposition,areducedtree decompositioncanbeobtainedinpolynomial-timebycontractinganytwoadjacentbagswithone contained into the other until it is no more possible to do that. In the following we will make use of the Helly property in our proofs: Lemma 1. [6, Helly property] Let T be a tree and let T ,T ,...,T be a finite family of pairwise 1 2 k intersecting subtrees. Then, (cid:84)k T (cid:54)= ∅, or equivalently there is a node contained in all the k i=1 i subtrees. Finally,let(T,X)beatreedecomposition,itiscalledapath decomposition ifT inducesapath. Metrictree-likenessandpath-likeness. Allgraphinvariantsthatweconsiderinthepaper can be defined in terms of tree decompositions and path decompositions. Let (T,X) be any tree decomposition of a graph G. For any t∈V(T), • the diameter of bag X equals max dist (v,w); t v,w∈Xt G • the radius ρ(t) of a bag X equals min max dist (v,w). t v∈V w∈Xt G The length of (T,X) is the maximum diameter of its bags, while the breadth of (T,X) is the maximum radius of its bags. The tree-length and the tree-breadth of G, respectively denoted by tl(G) and tb(G), are the minimum length and breadth of its tree decomposition, respectively. Letkbeapositiveinteger,thetreedecomposition(T,X)iscalledk-good wheneachbagcontains adominatinginducedpathoflengthatmostk−1. Itisprovedin[40]everygraphGhasak-good tree decomposition for k = ch(G)−1, with ch(G) denoting the size of a longest induced cycle of G. Finally, path-length, path-breadth and k-good path decompositions are similarly defined and 3 studied for the path decompositions as tree-length, tree-breadth and k-good tree decompositions are defined and studied for the tree decompositions. The path-length and path-breadth of G are respectively denoted by pl(G) and pb(G). It has been observed in [29, 30] that the four parameters tree-length, tree-breadth and path- length, path-breadth are contraction-closed invariants. We will use the latter property in our proofs. Lemma 2 ( [29, 30]). For every G=(V,E) and for any edge e∈E: tl(G/e)≤tl(G), tb(G/e)≤tb(G) and pl(G/e)≤pl(G), pb(G/e)≤pb(G). Furthermore, it can be observed that for any graph G, tb(G) ≤ tl(G) ≤ 2·tb(G) and similarly pb(G) ≤ pl(G) ≤ 2·pb(G). Moreover, if a graph G admits a k-good tree decomposition, then tb(G) ≤ (cid:98)k/2(cid:99)+1 and tl(G) ≤ k +1. Before we end this section, let us prove the stronger equivalence, tb(G)=1 if and only if G admits a 1-good tree decomposition. This result will be of importance in the following. Since a tree decomposition is 1-good if and only if each bag contains aspanningstar,wewillnamethe1-goodtreedecompositionsstar-decompositions inthefollowing. Definition 1. Let G=(V,E) be a connected graph, a star-decomposition is a tree decomposition (T,X) of G whose each bag induces a subgraph of dominating number one, i.e., for any t∈V(T), γ(G[X ])=1. t Clearly, if a graph admits a star-decomposition, then it has tree-breadth at most one. Let us prove that the converse also holds. Lemma 3. ForanygraphGwithtb(G)≤1, every reducedtreedecompositionofGofbreadthone is a star-decomposition. In particular: • any tree decomposition of G of breadth one can be transformed into a star-decomposition in polynomial-time; • similarly, any path decomposition of G of breadth one can be transformed into a 1-good path decomposition in polynomial-time. Proof. Let (T,X) be any reduced tree decomposition of G of breadth one. We will prove it is a star-decomposition. To prove it, let X ∈ X be arbitrary and let v ∈ V be such that t max dist (v,w) = 1, which exists because X has radius one. We now show that v ∈ X . w∈Xt G t t Indeed, since the subtree T and the subtrees T ,w∈X , pairwise intersect, then it comes by the v w t (cid:16) (cid:17) (cid:84) HellyProperty(Lemma1)thatT ∩ T (cid:54)=∅i.e.,thereissomebagcontaining{v}∪X . As v w∈Xt w t aresult,wehavethatv∈X because(T,X)isareducedtreedecomposition,henceγ(G[X ])=1. t t The latter implies that (T,X) is a star-decomposition because X is arbitrary. t Now let (T,X) be any tree decomposition of G of breadth one. It can be transformed in polynomial-timeintoareducedtreedecomposition(T(cid:48),X(cid:48))sothatX(cid:48) ⊆X. Furthermore,(T(cid:48),X(cid:48)) has breadth one because it is the case for (T,X), therefore (T(cid:48),X(cid:48)) is a star-decomposition. In particular, if (T,X) is a path decomposition then so is (T(cid:48),X(cid:48)). Corollary 1. For any graph G, tb(G)≤1 if and only if G admits a star-decomposition. 3 Intractability results 3.1 Path-length and path-breadth Thissectionisdevotedtothecomplexityofallpath-likeinvariantsthatweconsiderinthispaper. Theorem 1. Deciding whether a graph has path-length at most k is NP-complete even if k=2. IncontrasttoTheorem1,graphswithpath-lengthoneareexactlytheintervalgraphs[30],i.e., they can be recognized in linear-time. Theorem 2. Deciding whether a graph has path-breadth at most k is NP-complete even if k=1. From the complexity result of Theorem 2, we will also prove the hardness of deciding on the existence of k-good path decompositions. 4 Theorem 3. Deciding whether a graph admits a k-good path decomposition is NP-complete even if k=1. Proof. The problem is in NP. By Lemma 3, a graph G admits a 1-good path decomposition if and only if pb(G) ≤ 1, therefore it is NP-hard to decide whether a graph admits a 1-good path decomposition by Theorem 2. All of the NP-hardness proofs in this section will rely upon the same reduction from the Be- tweennessproblem,definedbelow. TheBetweennessproblem,sometimescalledtheTotalOrdering problem, is NP-complete [44]. In [34], it was used to show that the Interval Sandwich problem is NP-complete. What we here prove is that the Interval Sandwich problem remains NP-complete even if the second graph is a power of the first one, where the kth power Gk of any graph G is obtainedfromGbyaddinganedgebetweeneverytwodistinctverticesthatareatdistanceatmost k in G for every integer k ≥ 1. Indeed, a graph G has path-length at most k if and only if there is an Interval Sandwich between G and Gk (we refer to [42] for the proof of a similar equivalence between tree-length and the Chordal Sandwich problem). Problem 1 (Betweenness). Input: a set S of n elements, a set T of m ordered triples of elements in S. Question: Is there a total ordering of S such that for every triple t=(s ,s ,s )∈T, i j k either s <s <s or s <s <s ? i j k k j i Now, given an instance (S,T) of the Betweenness problem, we will construct from S and T a graph G as defined below. We will then prove that pl(G ) ≤ 2 (resp. pb(G ) ≤ 1) if and S,T S,T S,T only if (S,T) is a yes-instance of the Betweenness problem. Definition 2. Let S be a set of n elements, let T be a set of m ordered triples of elements in S. The graph G is constructed as follows: S,T • For every element s ∈ S, 1 ≤ i ≤ n, there are two adjacent vertices u ,v in G . The i i i S,T vertices u are pairwise adjacent i.e., the set U ={u |1≤i≤n} is a clique. i i • For every triple t = (s ,s ,s ) ∈ T, let us add in G the v v -path (v ,a ,b ,v ) of length i j k S,T i j i t t j 3, and the v v -path (v ,c ,d ,v ) of length 3. j k j t t k • Finally, for every triple t=(s ,s ,s )∈T let us make adjacent a ,b with every u such that i j k t t l l(cid:54)=k, similarly let us make adjacent c ,b with every u such that l(cid:54)=i. t t l It can be noticed from Definition 2 that for any 1 ≤ i ≤ n, the vertex u is adjacent to any i vertex but those v such that j (cid:54)= i, those a ,b such that s is the last element of triple t and j t t i those c ,b such that s is the first element of triple t. We refer to Figure 1 for an illustration t t i (see also Figure 2). Observe that G has diameter 3 because the clique U dominates G , S,T S,T thereforepl(G )≤3andwewillshowthatitishardtodistinguishgraphswithpath-lengthtwo S,T from graphs with path-length three. Similarly, the clique U dominates G hence pb(G )≤2, S,T S,T thus we will show that it is hard to distinguish graphs with path-breadth one from graphs with path-breadth two. Lemma 4. Let S be a set of n elements, let T be a set of m ordered triples of elements in S. If (S,T) is a yes-instance of the Betweenness problem then pb(G ) ≤ 1 and pl(G ) ≤ 2, where S,T S,T G is the graph that is defined in Definition 2. S,T Proof. Since pl(G ) ≤ 2·pb(G ) then we only need to prove that pb(G ) ≤ 1. For conve- S,T S,T S,T nience, let us reorder the elements of S so that for every triple (s ,s ,s ) ∈ T either i < j < k i j k or k < j < i. It is possible to do that because by the hypothesis (S,T) is a yes-instance of the Betweenness problem. If furthermore k < j < i, let us also replace (s ,s ,s ) with the in- i j k verse triple (s ,s ,s ). This way, we have a total ordering of S such that s < s < s for every k j i i j k triple (s ,s ,s ) ∈ T. Then, let us construct a path decomposition (P,X) with n bags, denoted i j k X ,X ,...,X ,asfollows. Forevery1≤i≤n,U ⊆X andv ∈X . Foreveryt=(s ,s ,s )∈T, 1 2 n i i i i j k we add both a ,b into the bags X with i ≤ l ≤ j, similarly we add both c ,d into the bags X t t l t t l with j ≤ l ≤ k. By construction, the clique U is contained in any bag of P and for every triple t = (s ,s ,s ) ∈ T we have a ,b ,v ∈ X and a ,b ,c ,d ,v ∈ X and c ,d ,v ∈ X , therefore i j k t t i i t t t t j j t t k k (P,X) is indeed a path decomposition of G . S,T Weclaimthatforeveryi,X ⊆N[u ],thatwillprovethelemma. Indeedifitwerenotthecase i i for some i then by Definition 2 there should exist t∈T,j,k such that: either t=(s ,s ,s )∈T i j k 5 u1 t = (s i , s j , s k ), i < j < k u2 u5 uu12 u3 u3 u4 u...i-1 v1 c3 d3 v5 vi at ui a1 b1 v2 a2c1b2d1 v3 c2a3d2b3v4 a4 b4 vj bctt uuu......iij++21 U dt uk-1 d4 c4 vk uk Figure 1: The graph GS,T for S = [|1,5|] and uukk++12 T = {(i,i+1,i+2) | 1 ≤ i ≤ 4}. Each colour ... un corresponds to a given triple of T. For ease of reading,theadjacencyrelationsbetweenthever- Figure 2: Adjacency relations in G for one tices u and the colored vertices a ,b ,c ,d are S,T i t t t t given triple t=(s ,s ,s ). not drawn. i j k and c ,d ∈ X ; or t = (s ,s ,s ) ∈ T and a ,b ∈ X . But then by construction either a ,b are t t i k j i t t i t t onlycontainedinthebagsX fork≤l≤j,orc ,d areonlycontainedinthebagsX forj ≤l≤k, l t t l thus contradicting the fact that either a ,b ∈X or c ,d ∈X . t t i t t i Lemma 5. Let S be a set of n elements, let T be a set of m ordered triples of elements in S. If pb(G ) ≤ 1 or pl(G ) ≤ 2 then (S,T) is a yes-instance of the Betweenness problem, where S,T S,T G is the graph that is defined in Definition 2. S,T Proof. Since pl(G )≤2·pb(G ) then we only need to consider the case when pl(G )≤2. S,T S,T S,T Let(P,X)beapathdecompositionoflengthtwo,thatexistsbythehypothesis. Sincethevertices v arepairwiseatdistance3thenthesubpathsP thatareinducedbythebagscontainingvertex i vi v are pairwise disjoint. Therefore, starting from an arbitrary endpoint of P and considering each i vertex v in the order that it appears in the path decomposition, this defines a total ordering over i S. LetusreorderthesetS sothatvertexv istheith vertextoappearinthepath-decomposition. i We claim that for every triple t = (s ,s ,s ) ∈ T, either i < j < k or k < j < i, that will prove i j k the lemma. By way of contradiction, let t=(s ,s ,s )∈T such that either j <min{i,k} or j >max{i,k}. i j k By symmetry, we only need to consider the case when j <i<k. In such case by construction the pathbetweenP andP inP containsP . LetB ∈P ,bythepropertiesofatreedecomposition vj vk vi vi itisav v -separator,soitmustcontainoneofc ,d . However,vertexv ∈B isatdistance3from j k t t i both vertices c ,d , thus contradicting the fact that (P,X) has length 2. t t We are now able to prove Theorems 1 and 2. Proof of Theorem 1. ToprovethatagraphGsatisfiespl(G)≤k, itsufficestogiveasacertificate a tree decomposition of G with length at most k. Indeed, the all-pairs-shortest-paths in G can be computedinpolynomial-time. Therefore,theproblemofdecidingwhetheragraphhaspath-length at most k is in NP. Given an instance (S,T) of the Betweenness problem, let G be as defined S,T in Definition 2. We claim that pl(G )≤2 if and only if the pair (S,T) is a yes-instance of the S,T Betweenness problem. This will prove the NP-hardness because our reduction is polynomial and the Betweenness problem is NP-complete. To prove the claim in one direction, if (S,T) is a yes- instancethenbyLemma4pl(G )≤2. Conversely,ifpl(G )≤2then(S,T)isayes-instance S,T S,T by Lemma 5, that proves the claim in the other direction. Proof of Theorem 2. ToprovethatagraphGsatisfiespb(G)≤k,itsufficestogiveasacertificate a tree decomposition of G with breadth at most k. Indeed, the all-pairs-shortest-paths in G can be computed in polynomial-time. Therefore, the problem of deciding whether a graph has path- breadth at most k is in NP. Given an instance (S,T) of the Betweenness problem, let G be as S,T definedinDefinition2. Weclaimthatpb(G )≤1ifandonlyifthepair(S,T)isayes-instance S,T 6 oftheBetweennessproblem. ThiswillprovetheNP-hardnessbecauseourreductionispolynomial and the Betweenness problem is NP-complete. To prove the claim in one direction, if (S,T) is a yes-instance then by Lemma 4 pb(G ) ≤ 1. Conversely, if pb(G ) ≤ 1 then (S,T) is a S,T S,T yes-instance by Lemma 5, that proves the claim in the other direction. To conclude this section, we strenghten the above hardness results with two inapproximability results. Indeed, it has to be noticed that for any graph parameter param, an α-approximation algorithm for param with α<1+ 1 is enough to separate the graphs G such that param(G)≤k k from those such that param(G)≥k+1. Therefore, the two following corollaries follow from our polynomial-time reduction. Corollary 2. For every ε>0, the path-length of a graph cannot be approximated within a factor 3 −ε unless P=NP. 2 Proof. Let G be the graph of the reduction in Theorem 1. By Definition 2, it has diameter at S,T most3andsopl(G )≤3. SinceitisNP-hardtodecidewhetherpl(G )≤2,thereforeitdoes S,T S,T not exist a (cid:0)3 −ε(cid:1)-approximation algorithm for path-length unless P=NP. 2 Corollary 3. For every ε>0, the path-breadth of a graph cannot be approximated within a factor 2−ε unless P=NP. Proof. Let G be the graph of the reduction in Theorem 2. By Definition 2, the set U is a S,T dominating clique and so pb(G ) ≤ 2. Since it is NP-hard to decide whether pb(G ) ≤ 1, S,T S,T therefore it does not exist a (2−ε)-approximation algorithm for path-breadth unless P=NP. Sofar,thereexistsa2-approximationalgorithmforpath-lengthanda3-approximationalgorithm for path-breadth [30]. Therefore, we let open whether there exist 3-approximation algorithms for 2 path-length and 2-approximation algorithms for path-breadth. 3.2 Tree-breadth We prove next that computing the tree-breadth is NP-hard. Theorem 4. Deciding whether a graph has tree-breadth at most k is NP-complete even if k=1. Theorem 5. Deciding whether a graph admits a k-good tree decomposition is NP-complete even if k=1. Proof. TheproblemisinNP.ByCorollary1,agraphGadmitsastar-decompositionifandonlyif tb(G)≤1, therefore it is NP-hard to decide whether a graph admits a 1-good path decomposition by Theorem 4. InordertoproveTheorem4,wewillreducefromtheChordalSandwichproblem(definedbelow). In[42],theauthoralsoproposedareductionfromtheChordalSandwichprobleminordertoprove that computing tree-length is NP-hard. However, we will need different gadgets than in [42], and we will need different arguments to prove correctness of the reduction. Problem 2 (Chordal Sandwich). Input: graphs G =(V,E ) and G =(V,E ) such that E ⊆E . 1 1 2 2 1 2 Question: Is there a chordal graph H =(V,E) such that E ⊆E ⊆E ? 1 2 TheChordalSandwichproblemisNP-completeevenwhenthe2n=|V|verticesinduceaperfect matchinginG¯ (thecomplementaryofG )[13,35]. Perhapssurprisingly,thelaterconstrictionon 2 2 the structure of G¯ is a key element in our reduction. Indeed, we will need the following technical 2 lemma. Lemma 6. Let G =(V,E ), G =(V,E ) such that E ⊆E and G¯ (the complementary of G ) 1 1 2 2 1 2 2 2 is a perfect matching. Suppose that (cid:104)G ,G (cid:105) is a yes-instance of the Chordal Sandwich problem. 1 2 Then, there exists a reduced tree decomposition (T,X) of G such that for every forbidden edge 1 {u,v} ∈/ E : T ∩T = ∅, T ∪T = T, furthermore there are two adjacent bags B ∈ T and 2 u v u v u u B ∈T such that B \u=B \v. v v u v 7 Proof. LetH =(V,E)beanychordalgraphsuchthatE ⊆E ⊆E (thatexistsbecause(cid:104)G ,G (cid:105) 1 2 1 2 isayes-instanceoftheChordalSandwichproblembythehypothesis)andthenumber|E|ofedges is maximized. We will prove that any clique-tree (T,X) of H satisfies the above properties (given inthestatementofthelemma). Toproveit,let{u,v}∈/ E bearbitrary. ObservethatT ∩T =∅ 2 u v (else, {u,v}∈E, that would contradict that E ⊆E ). 2 Furthermore, let B ∈ T minimize the distance in T to the subtree T , let B be the unique u u v bag that is adjacent to B on a shortest-path between B and T in T. Note that B ∈/ T by the u u v u minimalityofdist (B ,T ),howeverB maybelongtoT . Removingtheedge{B ,B}inT yields T u v v u two subtrees T ,T with T ⊆ T and T ⊆ T . In addition, we have that for every x ∈ V \u 1 2 u 1 v 2 such that T ∩T (cid:54)= ∅, {u,x} ∈ E since x (cid:54)= v and G¯ is a perfect matching by the hypothesis. x 1 2 2 Similarly, we have that for every y ∈ V \v such that T ∩T (cid:54)= ∅, {v,y} ∈ E . Therefore, by y 2 2 maximality of the number |E| of edges, it follows that T =T and T =T , and so, T ∪T =T. 1 u 2 v u v In particular, B =B ∈T . v v Finally, let us prove that B \u = B \v. Indeed, assume for the sake of contradiction that u v B \u (cid:54)= B \v. In particular, (B \B )\u (cid:54)= ∅ or (B \B )\v (cid:54)= ∅. Suppose w.l.o.g. that u v u v v u (B \B )\u (cid:54)= ∅. Let H(cid:48) = (V,E(cid:48)) be obtained from H by adding an edge between vertex v u v and every vertex of (B \B )\u. By construction |E(cid:48)|>|E|. Furthermore, H(cid:48) is chordal since a u v clique-tree of H(cid:48) can be obtained from (T,X) by adding a new bag (B \u)∪{v} in-between B u u and B . However, for every x ∈ (B \B )\u we have that {x,v} ∈ E since x (cid:54)= u and G¯ is a v u v 2 2 perfect matching by the hypothesis. As a result, E(cid:48) ⊆ E , thus contradicting the maximality of 2 the number |E| of edges in H. Proof of Theorem 4. TheproblemisinNP.ToprovetheNP-hardness,let(cid:104)G ,G (cid:105)beanyinputof 1 2 the Chordal Sandwich problem such that G¯ is a perfect matching. The graph G(cid:48) is constructed 2 from G as follows. First we add a clique V(cid:48) of 2n = |V| vertices in G(cid:48). Vertices v ∈ V are in 1 one-to-one correspondance with vertices v(cid:48) ∈ V(cid:48). Then, for every forbidden edge {u,v} ∈/ E , 2 vertices u,v are respectively made adjacent to all vertices in V(cid:48)\v(cid:48) and V(cid:48)\u(cid:48). Finally, we add a distinct copy of the gadget F in Figure 3, and we make adjacent s and t to the two vertices uv uv uv u(cid:48),v(cid:48) (seealsoFigure4foranillustration). Wewillprovetb(G(cid:48))=1ifandonlyif(cid:104)G ,G (cid:105)isayes- 1 2 instanceoftheChordalSandwichproblem. ThiswillprovetheNP-hardnessbecauseourreduction ispolynomialandtheChordalSandwichproblemisNP-completeevenwhenthe2n=|V|vertices induce a perfect matching in G¯ (the complementary of G ) [13, 35]. 2 2 u x uv s t uv uv c uv yuv wuv zuv v Figure 3: The gadget F . uv In one direction, assume tb(G(cid:48)) = 1, let (T,X) be a star-decomposition of G(cid:48). Let H = (V,{{u,v}|T ∩T (cid:54)=∅}), that is a chordal graph such that E ⊆E(H). To prove that (cid:104)G ,G (cid:105) u v 1 1 2 is a yes-instance of the Chordal Sandwich problem, it suffices to prove that T ∩T =∅ for every u v forbidden edge {u,v}∈/ E . More precisely, we will prove that T ∩T (cid:54)=∅, for we claim that 2 suv tuv the latter implies T ∩T = ∅. Indeed, assume T ∩T (cid:54)= ∅ and T ∩T (cid:54)= ∅. Since s and u v suv tuv u v uv t are both adjacent to u and v, therefore the four subtrees T ,T ,T ,T pairwise intersect. uv u v suv tuv By the Helly property (Lemma 1) T ∩T ∩T ∩T (cid:54)= ∅, hence there is a bag containing u v suv tuv u,v,s ,t but then itcontradicts thefact that (T,X) is a star-decomposition because no vertex uv uv dominates the four vertices. Therefore, T ∩T (cid:54)= ∅ implies T ∩T = ∅. Let us prove that suv tuv u v T ∩T (cid:54)= ∅. By contradiction, assume T ∩T = ∅. Every bag B onto the path between suv tuv suv tuv T and T must contain c ,x , furthermore N[c ]∩N[x ]={s ,t }. Since, (T,X) is a suv tuv uv uv uv uv uv uv star-decomposition, the latter implies either s ∈B and B ⊆N[s ] or t ∈B and B ⊆N[t ]. uv uv uv uv 8 Consequently, there exist two adjacent bags B ∈ T ,B ∈ T such that B ⊆ N[s ] and s suv t tuv s uv B ⊆ N[t ]. Furthermore, B ∩B is an s t -separator by the properties of a tree decompo- t uv s t uv uv sition. In particular, B ∩B must intersect the path (y ,w ,z ) because y ∈ N(s ) and s t uv uv uv uv uv z ∈ N(t ). However, B ⊆ N[s ],B ⊆ N[t ] but N[s ]∩N[t ]∩{y ,w ,z } = ∅, uv uv s uv t uv uv uv uv uv uv hence B ∩B ∩{y ,w ,z }=∅, that is a contradiction. As a result, T ∩T (cid:54)=∅ and so, s t uv uv uv suv tuv T ∩T =∅. u v x' y V' uv u' v' suv wuv cuv xuv tuv zuv u v G 1 x Figure 4: The graph G(cid:48) (simplified view). Conversely, assume that (cid:104)G ,G (cid:105) is a yes-instance of the Chordal Sandwich problem. Since G¯ 1 2 2 is a perfect matching by the hypothesis, by Lemma 6 there exists a reduced tree decomposition (T,X) of G such that for every forbidden edge {u,v}∈/ E : T ∩T =∅,T ∪T =T and there 1 2 u v u v are two adjacent bags B ∈T ,B ∈T so that B \u=B \v. Let us modify (T,X) in order to u u v v u v obtain a star-decomposition of G(cid:48). Inorder toachieve theresult, wefirst claimthatfor every edge{t,t(cid:48)}∈E(T), the bagsXt,Xt(cid:48) differinexactlyonevertex,thatis,|Xt\Xt(cid:48)|=1andsimilarly|Xt(cid:48)\Xt|=1. Indeed,Xt\Xt(cid:48) (cid:54)=∅ because (T,X) is reduced, so, let utt(cid:48) ∈ Xt \Xt(cid:48). Let vtt(cid:48) ∈ V be the unique vertex satisfying {utt(cid:48),vtt(cid:48)}∈/ E2,thatiswell-definedbecauseG¯2 isaperfectmatchingbythehypothesis. Notethat vtt(cid:48) ∈Xt(cid:48) because utt(cid:48) ∈/ Xt(cid:48) and Tutt(cid:48) ∪Tvtt(cid:48) =T. Furthermore, vtt(cid:48) ∈/ Xt because utt(cid:48) ∈Xt and T ∩T =∅. Byconstructionof(T,X),therearetwoadjacentbagsB ∈T ,B ∈T utt(cid:48) vtt(cid:48) utt(cid:48) utt(cid:48) vtt(cid:48) vtt(cid:48) suchthatButt(cid:48) \utt(cid:48) =Bvtt(cid:48) \vtt(cid:48). Sinceutt(cid:48) ∈Xt\Xt(cid:48) andvtt(cid:48) ∈Xt(cid:48)\Xt,therefore,Xt =Butt(cid:48) andXt(cid:48) =Bvtt(cid:48),andso,Xt\Xt(cid:48) ={utt(cid:48)}andXt(cid:48)\Xt ={vtt(cid:48)}. Inthefollowing,wewillkeepthe above notations utt(cid:48),vtt(cid:48) for every edge {t,t(cid:48)}∈E(T) (in particular, utt(cid:48) =vt(cid:48)t and vtt(cid:48) =ut(cid:48)t). Let us construct the star-decomposition (T(cid:48),X(cid:48)) of G(cid:48) as follows. • For every node t ∈ V(T), let S = X ∪V(cid:48) ∪((cid:83) {s ,t }) (in particular, t t t(cid:48)∈NT(t) utt(cid:48)vtt(cid:48) utt(cid:48)vtt(cid:48) |S |=2n+|X |+2·deg (t)). We will first construct a path decomposition of G(cid:48)[S ] whose t t T t bags are the sets Ytt(cid:48) =Xt∪V(cid:48)∪{sutt(cid:48)vtt(cid:48),tutt(cid:48)vtt(cid:48)} for every edge {t,t(cid:48)}∈E(T) (note that thebagscanbelinearlyorderedinanarbitrarywayinthepathdecomposition). Furthermore, for every edge {t,t(cid:48)} ∈ E(T), Ytt(cid:48) ⊆ N[u(cid:48)tt(cid:48)], where u(cid:48)tt(cid:48) ∈ V(cid:48) is the corresponding vertex to utt(cid:48) ∈V in the clique V(cid:48) (see Figure 5 for an illustration). Therefore, the above constructed path decomposition is a 1-good path decomposition. C C v1 u2 u3u4 u1 v2 u3u4 V' V' V' V' u1 u2Cu3u4 stuu11vv11 u1 u2Cu3u4 stuu22vv22 u1 u2Cu3u4 stuu33vv33 u1 u2Cu3u4 stuu4v4v44 u1 u2Cu3u4 C C u1 u2 u3v4 u1 u2 v3 u4 Figure 5: The 1-good path decomposition (right) obtained from the central bag with degree four (left). • Then, we will connect the 1-good path decompositions together. More precisely, let us add an edge between the two bags Ytt(cid:48) and Yt(cid:48)t for every edge {t,t(cid:48)}∈E(T) (see Figure 6 for an illustration). Insodoing,weclaimthatoneobtainsastar-decompositionofG(cid:48)[(cid:83) S ]. Indeed,itisa t∈V(T) t tree decomposition since: – the clique V(cid:48) is contained in all bags; 9 – for every {t,t(cid:48)} ∈ E(T) the two vertices s ,t are only contained in the two utt(cid:48)vtt(cid:48) utt(cid:48)vtt(cid:48) adjacent bags Ytt(cid:48) and Yt(cid:48)t, furthermore utt(cid:48),u(cid:48)tt(cid:48),vt(cid:48)t(cid:48) ∈Ytt(cid:48) and vtt(cid:48),u(cid:48)tt(cid:48),vt(cid:48)t(cid:48) ∈Yt(cid:48)t; – last, each vertex v ∈ V is contained in {Ytt(cid:48) | v ∈ Xt and t(cid:48) ∈ NT(t)} which induces a subtree since (T,X) is a tree decomposition of G . 1 Since in addition every bag Ytt(cid:48), with {t,t(cid:48)} ∈ E(T), is dominated by u(cid:48)tt(cid:48) ∈ V(cid:48), this proves the claim that one obtains a star-decomposition. V' V' ... stuu11vv11 v1 u2Cu3u4 ... stuu33vv33 u1 u2Cv3u4 ... V' V' V' V' stuu11vv11 u1 u2Cu3u4 stuu22vv22 u1 u2Cu3u4 stuu33vv33 u1 u2Cu3u4 stuu4v4v44 u1 u2Cu3u4 V' V' ... stuu22vv22 u1 v2Cu3u4 ... stuu4v4v44 u1 u2Cu3v4 ... Figure 6: Connection of the 1-good path decomposition in Figure 5 to the neighbouring 1-good path decompositions. • Inordertocompletetheconstruction,letusobservethatforeveryforbiddenedge{u,v}∈/ E , 2 thereisastar-decompositionofF \{u,v}withthreeleaf-bags{x ,s ,t }, {y ,s ,w } uv uv uv uv uv uv uv and{z ,s ,w }andoneinternalbagofdegreethreeB ={c ,s ,t ,w }. Forevery uv uv uv uv uv uv uv uv {t,t(cid:48)} ∈ E(T), we simply connect the above star-decomposition of Futt(cid:48)vtt(cid:48) \{utt(cid:48),vtt(cid:48)} by makingtheinternalbagButt(cid:48)vtt(cid:48) adjacenttooneofYtt(cid:48) orYt(cid:48)t(seeFigure7foranillustration). wu1vs1u1v1 yu1v1 ssuu1v1v11cwxuu1v1uv111v1tut1v1u1v1 zu1v1tu1v1wu1v1 wu3vs3u3v3 yu3v3 ssuu3v3v33cwxuu3v2uv332v3tut3v3u3v3 zu3v3tu3v3wu3v3 V' V' su4v4 ... stuu11vv11 v1u2Cu3u4 ... stuu33vv33 u1u2Cv3u4 ... wu4v4 yu4v4 su4v4 su4v4 xu4v4 tu4v4 V' V' V' V' wu4v4cu4v4 tu4v4 stuu11vv11 u1u2Cu3u4 stuu22vv22 u1u2Cu3u4 stuu33vv33 u1u2Cu3u4 stuu4v4v44 u1u2Cu3u4 zu4v4 tu4vw4u4v4 V' V' ... stuu22vv22 u1v2Cu3u4 ... stuu4v4v44 u1u2Cu3v4 ... tu2v2 su2v2cwuu2v2v22tu2v2 su2v2 zu2v2 wu2v2 su2v2 tu2v2 wu2v2 yu2v2 xu2v2 Figure 7: The respective star-decompositions of the gadgets F are connected to the other bags. uivi By construction, the resulting tree decomposition (T(cid:48),X(cid:48)) of G(cid:48) is a star-decomposition, hence tb(G(cid:48))=1. Recall that we can use our reduction from Definition 2 in order to prove that computing path- length and path-breadth is NP-hard. By contrast, our reduction from Theorem 4 cannot be used toprovethattree-lengthisNP-hardtocompute(infact,thegraphG(cid:48) resultingfromthereduction has tree-length two). Finally, as in the previous Section 3.1, let us strenghten Theorem 4 with an inapproximability result. Corollary 4. For every ε>0, the tree-breadth of a graph cannot be approximated within a factor 2−ε unless P=NP. 10