Introduction
Cut problems are central to algorithmic graph theory. Given a graph and a connectivity requirement, the goal is to delete a minimum number of vertices or edges to destroy prescribed paths or cycles. Classical examples include Minimum s s s -t t t Cut, Multiway Cut, Multicut, Feedback Vertex Set and Odd Cycle Transversal. Over the past two decades, the study of NP-hard cut problems, in the realm of parameterized complexity, has produced a collection of powerful structural and algorithmic techniques—including important separators [23 ] , treewidth reduction [24 ] , shadow removal [25 ] , recursive understanding and randomized contractions [12 , 2 ] , and flow augmentation [16 , 15 ] —that now form much of the toolkit of parameterized graph cut algorithms. While these techniques have led to a remarkably “complete” understanding of arguably the fundamental NP-hard graph cut problems on undirected graphs, the directed setting remains significantly more challenging. Only some of these techniques extend to directed graphs, and several fundamental problems that are fixed-parameter tractable (FPT) on undirected graphs become W[1]-hard on directed graphs. Despite their hardness on general digraphs, the parameterized complexity of these problems remains poorly understood even on natural restricted classes of digraphs, like planar digraphs.
A particularly natural and fundamental class of directed graphs is that of Eulerian digraphs . A digraph is Eulerian if it admits a closed directed trail traversing every arc exactly once. Rooted in the classical study of traversability of networks, this notion arises naturally in routing and network inspection problems, where one seeks to traverse every connection without repetition. Remarkably, this global traversal property admits a simple local characterization: a digraph whose underlying undirected graph is connected is Eulerian if and only if every vertex has equal indegree and outdegree. This balance condition captures the principle of flow conservation underlying the theory of network flows and circulations. Despite this seemingly simple restriction, Eulerian digraphs can exhibit arbitrarily complex underlying graph structure while retaining the asymmetry characteristic of directed graphs. They thus provide a rich setting in which to investigate how a local balance condition can influence the global structure and computational complexity of directed graphs.
Eulerian digraphs have been the subject of repeated studies from a structural perspective [8 , 29 , 14 , 13 , 5 ] . However, from an algorithmic perspective the balance property seems to make it so that Eulerian digraphs form a natural intermediate class between undirected and directed graphs. Eulerian digraphs have repeatedly emerged as the right setting in which algorithmic results non-trivially interpolate between the undirected and directed settings, see for example [10 , 11 , 4 ] or [30 ] for a survey. This raises a more fundamental question:
Can the structure that is provided by Eulerian digraphs restore the algorithmic machinery that is missing for directed cut problems?
We answer this question affirmatively by showing that two fundamental techniques from the undirected parameterized cut toolkit can be recovered in the Eulerian setting. The first, treewidth reduction of Marx, O’Sullivan and Razgon [24 ] , says that the vertices of all minimal s s s -t t t separators of size at most k k k in an undirected graph can be captured in a graph of bounded treewidth, where the bound depends only on k k k . Second, the meta-theorem of Lokshtanov, Ramanujan, Saurabh and Zehavi [LRSZ18] that captures recursive understanding , reduces the study of arbitrary instances of CMSO2 _2 2 definable problems, to ones that are “highly connected”, or unbreakable . In this paper, we establish both these (meta) theorems for Eulerian digraphs. We show an edge-cut analogue of treewidth reduction that can be exploited on Eulerian digraphs, and an Eulerian analogue of the reduction of CMSO2 _2 2 model checking to unbreakable instances. We explain both techniques and state our structural results below. Our contribution of this work goes beyond establishing tractability for individual problems: these structural results provide general algorithmic tools that yield FPT algorithms on Eulerian digraphs for several directed cut problems that are W[1]-hard on general digraphs.
Treewidth reduction. One of the earliest structural successes of parameterized complexity for cut problems was the study of the space of all small minimal s s s -t t t -separators. The understanding of this structure is important, as in many NP-hard generalizations of Minimum s s s -t t t Cut, for example Multiway Cut, the solution is a non-trivial union of some overlapping minimal s s s -t t t cuts. In a seminal work, Marx, O’Sullivan and Razgon [24 ] showed that all vertices participating in a minimal s s s -t t t separator of size at most k k k in an undirected graph can be captured in a graph of treewidth 2 k O ( 1 ) 2^{k^{O(1)}} 2 k O ( 1 ) . Specifically, both the graph induced by these vertices and the graph obtained by bypassing all other vertices have treewidth bounded by a function of k k k alone. This result enables cut problems whose optimal solutions are a (non-trivial) combination of minimal s s s -t t t separators, for possibly different choices of s s s and t t t , to be reduced to bounded-treewidth instances, which are then solvable using meta-theorems such as Courcelle’s theorem [6 ] for a large class of problems.
No directed counterpart of this treewidth reduction for digraphs is known. Directed minimal s s s -t t t separators lack the structure of undirected separators, especially since undirected treewidth only cares about small separations in the underlying undirected graph. And trying to bound the directed treewidth for the digraph cases, usually is not as useful as bounding undirected treewidth as far as algorithmic applications are concerned. In fact, Marx, O’Sullivan and Razgon [24 ] explicitly ask if there is some way of extending these results (at least partially) to directed graphs? This question has remained open ever since. Our first result concerns precisely this; we prove an edge-cut version of treewidth reduction and show its utility for cut problems on Eulerian digraphs. We refer to § 2.3 for missing definitions.
Theorem 1. Let G G G be a graph, T ⊆ V ( G ) T \subseteq V(G) T ⊆ V ( G ) and k k k an integer. Let I I I be the set of all edges of G G G that are part of a minimal s − t s-t s − t cut of size at most k k k for some s , t ∈ T s,t \in T s , t ∈ T . There is a f ( k , ∣ T ∣ ) ⋅ ( ∣ E ( G ) ∣ + ∣ V ( G ) ∣ ) f(k,|T|) \cdot(|E(G)| + |V(G)|) f ( k , ∣ T ∣ ) ⋅ ( ∣ E ( G ) ∣ + ∣ V ( G ) ∣ ) time algorithm that computes a set W ⊆ V ( G ) W \subseteq V(G) W ⊆ V ( G ) such that W W W contains T T T and all endpoints of edges in I I I , and tw ( torso ( G , W ) ) ≤ h ( k , ∣ T ∣ ) \operatorname{tw}(\operatorname{torso}(G,W)) \leq h(k,|T|) tw ( torso ( G , W )) ≤ h ( k , ∣ T ∣ ) for some functions f ( k , ∣ T ∣ ) f(k,|T|) f ( k , ∣ T ∣ ) and h ( k , ∣ T ∣ ) h(k,|T|) h ( k , ∣ T ∣ ) that both are ∣ T ∣ 2 2 O ( k 2 ) |T|2^{2^{O(k^2)}} ∣ T ∣ 2 2 O ( k 2 ) .
Reduction to unbreakable instances. Call a graph ( q , k ) (q,k) ( q , k ) -unbreakable if one cannot separate two sets of q q q vertices from each other by deleting at most k k k vertices. Every small separation of an unbreakable graph is lopsided, shaving off only a bounded piece, so a solution of size at most k k k cannot cut the graph in two, and its effect is confined to a bounded region that can be located by brute force or by colour coding (randomly coloring small parts that suggest some part of the solution). This suggests a win/win strategy, and it is the principle of recursive understanding , which emerged in the work of Grohe, Kawarabayashi, Marx and Wollan [12 ] and of Kawarabayashi and Thorup [19 ] . Chitnis, Cygan, Hajiaghayi, Pilipczuk and Pilipczuk [2 ] complemented this with a colour-coding infrastructure, randomized contractions , that performs the understanding step for a range of cut problems, and thereby obtained fixed-parameter algorithms for Unique Label Cover, Steiner Cut and Node Multiway Cut-Uncut. Lokshtanov, Ramanujan, Saurabh and Zehavi [LRSZ18] observed that a large part of this approach could be automated for all problems in CMSO2 _2 2 .
Theorem 2 ([LRSZ18]). Let φ \varphi φ be a CMSO2 _2 2 sentence. For every k ∈ N k \in\mathbb{N} k ∈ N there exists q ∈ N q \in\mathbb{N} q ∈ N such that, if φ \varphi φ can be tested on ( q , k ) (q,k) ( q , k ) -unbreakable graphs in time O ( n d ) O(n^d) O ( n d ) for some d > 4 d > 4 d > 4 , then φ \varphi φ can be tested on general graphs in time O ( n d ) O(n^d) O ( n d ) .
Theorem 2 essentially says that if designing FPT algorithms for CMSO2 _2 2 definable problems, it is enough to design such algorithms restricted to instances that are unbreakable.
Unfortunately, an analogue of Theorem 2 does not hold for directed graphs. Unbreakability is a statement about undirected separations, and it is useful only because a small solution of an undirected cut problem is a small separation, so that unbreakability constrains it. In digraphs a set of ℓ \ell ℓ arcs may separate s s s from t t t (and not t t t from s s s at the same time) while the corresponding cut of the underlying undirected graph has ℓ + n \ell+n ℓ + n edges, the n n n arcs in the reverse direction being irrelevant for a solution cut. Since the arc sets one wishes to delete are not small cuts of the underlying undirected graph, the win/win step loses its base case before the recursion is ever reached.
For our second main result we prove a directed Eulerian analogue of the result by Lokshtanov, Ramanujan, Saurabh and Zehavi [LRSZ18]. We refer to § 3 for missing definitions.
Theorem 3. Let X \in\{\textsc{Min-Edge},\textsc{Max-Edge},\textsc{Eq-Edge}\} , let ψ ~ \tilde{\psi} ψ ~ be a CMSO2 _2 2 sentence and let c ~ : N → N \tilde{c}:\mathbb{N} \to\mathbb{N} c ~ : N → N . There exists a s ~ : N → N \tilde{s}:\mathbb{N} \to\mathbb{N} s ~ : N → N such that if X-CMSO2 [ ψ ] _2[\psi] 2 [ ψ ] parameterized by k k k is FPT on ( s ~ ( k ) , c ~ ( k ) ) (\tilde{s}(k),\tilde{c}(k)) ( s ~ ( k ) , c ~ ( k )) -edge-unbreakable Eulerian structures, then X-CMSO2 [ ψ ] _2[\psi] 2 [ ψ ] parameterized by k k k is (nonuniformly) FPT on general Eulerian structures.
Interestingly, even though (induced) subgraphs of an Eulerian digraph, may not be Eulerian, our meta-theorem for Eulerian digraphs reduce the Eulerian instances to Eulerian unbreakable instances . This allows one to exploit both Eulerianess and unbreakability simultaneously of the reduced instance. Also observe that this has a considerably broader scope than any individual application: once an algorithm is available for arc-unbreakable Eulerian digraphs, it automatically lifts to general Eulerian digraphs.
Why Eulerianess restores both techniques. The common obstruction behind treewidth reduction and reduction to unbreakability is that both rely on small undirected separations. In a general redigraph, a directed cut need not correspond to a small cut in the underlying graph, so neither framework has any leverage. Eulerianess restores precisely this connection. Every directed cut of size ℓ \ell ℓ is accompanied by an undirected cut of size exactly 2 ℓ 2\ell 2 ℓ , allowing the undirected structure theory to become relevant once again. This observation underlies both of our structural results. To the best of our knowledge, treewidth reduction and recursive understanding (or, equivalently, reduction to unbreakable instances) are the only two major techniques in the parameterized cut toolbox that had resisted extension to directed graphs. Our main contribution is to show that both admit natural Eulerian analogues.
The above connection also explains why our results focus on arc-deletion problems. The balance condition relates the numbers of arcs crossing a partition, but provides no analogous guarantee for vertex separators. Moreover, the standard transformations between arc- and vertex-deletion variants do not, in general, preserve Eulerianess, and vertex-deletion variants can remain as hard on Eulerian digraphs as on general digraphs as explained in [Wahl18].
Applications
We illustrate the power of these structural theorems on several classical cut problems. Our first application is Directed Multicut.
Directed Multicut (DMC) Parameter: k + ∣ T ∣ k + |\mathcal{T}| k + ∣ T ∣
Input: A directed graph D D D , a set T ⊆ V ( G ) × V ( G ) \mathcal{T} \subseteq V(G) \times V(G) T ⊆ V ( G ) × V ( G ) of terminal pairs, and a positive integer k k k
Question: Does there exist S ⊆ E ( D ) S \subseteq E(D) S ⊆ E ( D ) of size at most k k k , such that there is no s → t s \to t s → t path in D − S D-S D − S for any ( s , t ) ∈ T (s,t) \in\mathcal{T} ( s , t ) ∈ T ?
On general digraphs the problem is W[1]-hard already for four terminal pairs [27 ] , whereas on DAGs it becomes fixed-parameter tractable when the number of terminal pairs is included in the parameter (and remains hard with just the solution size as the parameter) [18 ] . We show that the same parameterization, as DAGs, leads to an FPT algorithm on Eulerian digraphs.
Theorem 4. Directed Multicut on Eulerian digraphs can be solved in f ( k + ∣ T ∣ ) ⋅ ( ∣ V ( D ) ∣ + ∣ E ( D ) ∣ ) O ( 1 ) f(k + |\mathcal{T}|) \cdot(|V(D)| + |E(D)|)^{O(1)} f ( k + ∣ T ∣ ) ⋅ ( ∣ V ( D ) ∣ + ∣ E ( D ) ∣ ) O ( 1 ) time, where f f f is a computable function of k k k and T \mathcal{T} T .
Our treewidth-reduction theorem also yields a fixed-parameter algorithm for Directed Edge Odd Cycle Transversal , which is W[1]-hard in general [22 ] .
Directed Edge Odd Cycle Transversal (DEOCT) Parameter: k k k
Input: A directed graph D D D and a positive integer k k k
Question: Does there exist S ⊆ E ( D ) S \subseteq E(D) S ⊆ E ( D ) of size at most k k k , such that there is no cycle of odd length in D − S D-S D − S ?
Theorem 5. Directed Edge Odd Cycle Transversal can be solved in 2 2 O ( k 2 ) ⋅ n O ( 1 ) 2^{2^{O(k^2)}} \cdot n^{O(1)} 2 2 O ( k 2 ) ⋅ n O ( 1 ) time on Eulerian digraphs.
Finally, our CMSO2 _2 2 reduction to arc-unbreakable instances yields nonuniform fixed-parameter algorithms for Directed Edge Multiway Cut-Uncut and Directed Steiner Cut . To contrast this, we prove that both problems are W[1]-hard on general digraphs. Both problems are known to be FPT on undirected graphs [2 ] .
Directed Edge Multiway Cut-Uncut (DEMCU) Parameter: k k k
Input: A directed graph D D D , a set T ⊆ V ( D ) \mathcal{T} \subseteq V(D) T ⊆ V ( D ) of terminals, an equivalence relation R R R on T \mathcal{T} T and a positive integer k k k
Question: Does there exist S ⊆ E ( D ) S \subseteq E(D) S ⊆ E ( D ) of size at most k k k such that for all t , t ′ ∈ T t,t' \in\mathcal{T} t , t ′ ∈ T , the terminals t t t and t ′ t' t ′ are in the same strongly connected component of D − S D-S D − S if and only if ( t , t ′ ) ∈ R (t,t') \in R ( t , t ′ ) ∈ R ?
Theorem 6. Directed Edge Multiway Cut-Uncut on Eulerian digraphs is (nonuniformly) FPT parameterized by k k k .
Directed Steiner Cut (DSC) Parameter: k + p k + p k + p
Input: A directed graph D D D , a set T ⊆ V ( G ) T \subseteq V(G) T ⊆ V ( G ) of terminal pairs, and positive integers k k k and p p p
Question: Does there exist S ⊆ E ( D ) S \subseteq E(D) S ⊆ E ( D ) of size at most k k k , such that at least p p p strongly connected components of D − X D-X D − X contain at least one terminal vertex?
Theorem 7. Directed Steiner Cut on Eulerian digraphs is (nonuniformly) FPT parameterized by k + p k+p k + p .
Theorem 8. Directed Edge Multiway Cut-Uncut parameterized by k k k and Directed Steiner Cut parameterized by k + p k+p k + p are W[1]-hard on general digraphs.
The applications presented above are unlikely to exhaust the reach of the framework. In particular, we expect the reduction to arc-unbreakable instances to provide a useful starting point for other cut problems on Eulerian digraphs. Two important remaining challenges with Eulerian digraphs are to determine the parameterized complexity of Directed Multicut and Symmetric Directed Multicut (see [9 ] ) when parameterized only by the solution size.
Treewidth reduction for Eulerian Digraphs
The properties of Eulerian digraphs allow us to relate minimal directed arc-cuts to minimal undirected edge-cuts, not vertex-separators. Thus, to be able to apply the treewidth reduction technique to cut problems in Eulerian digraphs, we need to modify the original theorem to preserve undirected minimal terminal cuts of size at most k k k , as seen in Theorem 1 .
Theorem 1. Let G G G be a graph, T ⊆ V ( G ) T \subseteq V(G) T ⊆ V ( G ) and k k k an integer. Let I I I be the set of all edges of G G G that are part of a minimal s − t s-t s − t cut of size at most k k k for some s , t ∈ T s,t \in T s , t ∈ T . There is a f ( k , ∣ T ∣ ) ⋅ ( ∣ E ( G ) ∣ + ∣ V ( G ) ∣ ) f(k, |T|) \cdot(|E(G)| + |V(G)|) f ( k , ∣ T ∣ ) ⋅ ( ∣ E ( G ) ∣ + ∣ V ( G ) ∣ ) time algorithm that computes a set W ⊆ V ( G ) W \subseteq V(G) W ⊆ V ( G ) such that W W W contains T T T and all endpoints of edges in I I I , and tw ( torso ( G , W ) ) ≤ h ( k , ∣ T ∣ ) \operatorname{tw}(\operatorname{torso}(G,W)) \leq h(k, |T|) tw ( torso ( G , W )) ≤ h ( k , ∣ T ∣ ) for some functions f ( k , ∣ T ∣ ) f(k, |T|) f ( k , ∣ T ∣ ) and h ( k , ∣ T ∣ ) h(k, |T|) h ( k , ∣ T ∣ ) that both are ∣ T ∣ 2 O ( k 2 ) |T|^{2^{O(k^2)}} ∣ T ∣ 2 O ( k 2 ) .
More specifically, our treewidth-reduction proof follows the framework of Marx, O’Sullivan and Razgon [24 ] , adapted to edge cuts. The proof works by finding, for each pair ( s , t ) (s,t) ( s , t ) of terminals in T T T , a vertex set W s , t W_{s,t} W s , t containing the endpoints of all minimal s − t s-t s − t cuts of size at most k k k , yet of which the torso has bounded treewidth. These sets can be combined to form W W W , which by properties of the torso operation also has bounded treewidth. The set W s , t W_{s,t} W s , t is found by induction on the excess of the cuts that we are looking for. The excess of a cut is equal to the amount it is larger than a minimum cut. Intuitively, for excess 0 0 0 (i.e. minimum cuts) one can use flow techniques to find a vertex set to cover the cuts. For excess i i i , one can observe that these cuts must contain edges inside regions sitting between minimum cuts, and we can construct auxiliary graphs where such edges now appear in cuts of excess i − 1 i-1 i − 1 , hence allowing the inductive argument to take effect. The formal proof can be found in § 2.3 .
We continue to demonstrate how this tool can be used to prove powerful algorithmic results for cut problems on Eulerian digraphs. As a warming-up, we show that a simple application leads to an FPT algorithm for Directed Multicut parameterized by k k k and the number of terminals. Next, we show that a more technically involved application leads to an FPT algorithm for Directed Edge Odd Cycle Transversal parameterized by only k k k . Both of these results are in stark contrast to the complexity landscape for general directed graphs, where both problems are W[1]-hard for the same parameterizations [27 , 22 , 20 ] .
Directed Multicut
Before we begin, we need to introduce one more definition. The treewidth reduction technique relies on a torso operation to shrink the graph to a specified region containing all minimal terminal cuts of a certain size, while simultaneously ensuring that connectivity outside of this region is preserved. To replicate this for out setting, we introduce the notion of a directed torso .
Definition 2.1. Let D D D be a directed graph, k k k a natural number and U ⊆ V ( D ) U \subseteq V(D) U ⊆ V ( D ) , then the (directed) k k k -torso of U U U in D D D , denoted by torso ( D , U , k ) \operatorname{torso}(D,U,k) torso ( D , U , k ) is the graph D [ U ] D[U] D [ U ] where for each a , b ∈ U a,b \in U a , b ∈ U we additionally add k + 1 k+1 k + 1 arcs ( a , b ) (a,b) ( a , b ) if D D D has an a a a to b b b path internally disjoint from D [ U ] D[U] D [ U ] .
In our applications we want to argue that a solution for a cut problem in the directed torso can be transferred back to a solution of the original digraph. Adding k + 1 k+1 k + 1 copies of all arcs introduced by the torso operation ensures that a minimal solution of size at most k k k only contains arcs in the induced digraph D [ U ] D[U] D [ U ] , which simplifies the required argument. We are now ready to prove the first main algorithmic result.
Theorem 4. Directed Multicut on Eulerian digraphs can be solved in f ( k + ∣ T ∣ ) ⋅ ( ∣ V ( D ) ∣ + ∣ E ( D ) ∣ ) O ( 1 ) f(k + |\mathcal{T}|) \cdot(|V(D)| + |E(D)|)^{O(1)} f ( k + ∣ T ∣ ) ⋅ ( ∣ V ( D ) ∣ + ∣ E ( D ) ∣ ) O ( 1 ) time, where f f f is a computable function of k k k and T \mathcal{T} T .
Proof. Let C ⊆ E ( D ) C \subseteq E(D) C ⊆ E ( D ) be an optimal solution to the Directed Multicut instance ( D , T , k ) (D,\mathcal{T},k) ( D , T , k ) . Let T T T be set of all terminals in T \mathcal{T} T . For every terminal pair ( s , t ) ∈ T (s,t) \in\mathcal{T} ( s , t ) ∈ T , the solution C C C must contain a minimal s → t s \to t s → t cut of D D D . As C C C is optimal, every arc e ∈ C e \in C e ∈ C is part of a minimal s → t s \to t s → t cut for some terminal pair ( s , t ) ∈ T (s,t) \in\mathcal{T} ( s , t ) ∈ T . Furthermore, there is such a minimal terminal-pair cut that contains e e e and is a subset of C C C . Additionally, since D D D is an Eulerian digraph, each minimal s → t s \to t s → t cut of size ℓ \ell ℓ corresponds to a minimal s − t s-t s − t cut of size 2 ℓ 2\ell 2 ℓ in the underlying undirected graph G G G of D D D . We apply Theorem 1 to G G G with cut size 2 k 2k 2 k and terminal set T T T to obtain a set W ⊆ V ( G ) W \subseteq V(G) W ⊆ V ( G ) as described in the theorem. We prove that it suffices to solve the Directed Multicut problem on the directed k k k -torso of W W W in D D D .
Claim 2.1. ( D , T , k ) (D,\mathcal{T},k) ( D , T , k ) is a YES-instance for Directed Multicut if and only if ( torso ( D , W , k ) , T , k ) (\operatorname{torso}(D,W,k),\mathcal{T},k) ( torso ( D , W , k ) , T , k ) is a YES-instance.
Proof of Claim. Let C C C be a minimum arc set of size at most k k k in D D D such that D − C D-C D − C has no s → t s \to t s → t path for any ( s , t ) ∈ T (s,t) \in\mathcal{T} ( s , t ) ∈ T . By the argument preceding the claim, all arcs of C C C are part of some minimal terminal-pair cut of size at most 2 k 2k 2 k in the undirected graph G G G . Hence all arcs of C C C are in D [ W ] D[W] D [ W ] , and thus present in torso ( D , W , k ) \operatorname{torso}(D,W,k) torso ( D , W , k ) . We argue that C C C also cuts all terminal pairs in the torso graph.
For sake of a contradiction, assume that there is an s → t s \to t s → t path P P P in torso ( D , W , k ) − C \operatorname{torso}(D,W,k)-C torso ( D , W , k ) − C for some ( s , t ) ∈ T (s,t) \in\mathcal{T} ( s , t ) ∈ T . This implies there is also an s → t s \to t s → t path in D − C D-C D − C , as any arc e e e on P P P that is not in D D D can be replaced by a directed path from the tail of e e e to its head, internally disjoint from D [ W ] D[W] D [ W ] , the existence of which is guaranteed by the presence of e e e in torso ( D , W , k ) \operatorname{torso}(D,W,k) torso ( D , W , k ) . This path is not hit by C C C as C C C contains only arc with both endpoints in W W W . This contradicts the fact that C C C hits all s → t s \to t s → t paths in D D D .
Conversely, let C C C be a minimum directed multicut of size at most k k k in torso ( D , W , k ) \operatorname{torso}(D,W,k) torso ( D , W , k ) . As we use a k k k -torso, we know that a minimum C C C cannot contain any arcs not in D [ W ] D[W] D [ W ] . We claim that C C C also hits all terminal-pair paths in D D D . For a contradiction, assume there is a path P P P from s s s to t t t in D − C D-C D − C for a ( s , t ) ∈ T (s,t) \in\mathcal{T} ( s , t ) ∈ T . If P P P has a subpath internally vertex-disjoint from W W W , then we can replace this part of the path by one of the arcs of torso ( D , W , k ) \operatorname{torso}(D,W,k) torso ( D , W , k ) that this subpath gives rise to. This arc cannot be in C C C , and hence we find a path from s s s to t t t in torso ( D , W , k ) − C \operatorname{torso}(D,W,k)-C torso ( D , W , k ) − C , a contradiction. ◇
Thus we can focus our attention to the instance ( torso ( D , W , k ) , T , k ) (\operatorname{torso}(D,W,k),\mathcal{T},k) ( torso ( D , W , k ) , T , k ) . Observe that torso ( D , W , k ) \operatorname{torso}(D,W,k) torso ( D , W , k ) need not be an Eulerian digraph. By Theorem 1 we know that, for the underlying undirected graph G G G of D D D , the graph torso ( G , W ) \operatorname{torso}(G,W) torso ( G , W ) has treewidth at most h ( 2 k , ∣ T ∣ ) h(2k,|\mathcal{T}|) h ( 2 k , ∣ T ∣ ) . When we disregard parallel edges (which do not affect the treewidth regardless), the undirected graph underlying torso ( D , W , k ) \operatorname{torso}(D,W,k) torso ( D , W , k ) is a subgraph of torso ( G , W ) \operatorname{torso}(G,W) torso ( G , W ) and thus must also have the same upperbound on the treewidth. As Directed Multicut can be described with a CMSO2 _2 2 formula of size dependent only on ∣ T ∣ |\mathcal{T}| ∣ T ∣ , we can use Courcelle’s theorem to solve the instance ( torso ( D , W , k ) , T , k ) (\operatorname{torso}(D,W,k),\mathcal{T},k) ( torso ( D , W , k ) , T , k ) in time f ( k , ∣ T ∣ ) ⋅ n f(k,|\mathcal{T}|) \cdot n f ( k , ∣ T ∣ ) ⋅ n for some function f f f . □
Directed Edge Odd Cycle Transversal
We now turn to a less direct application of treewidth reduction. Unlike the earlier application, it is not immediately clear how to exploit treewidth reduction for Directed Edge Odd Cycle Transversal. The difficulty is that the requirement of destroying all odd directed cycles does not directly translate into finding a collection of small minimal s s s -t t t cuts, whereas the classical FPT algorithm for undirected Odd Cycle Transversal exploits iterative compression to reduce the problem to finding minimum s s s -t t t separators [28 ] .
A natural approach is therefore to express the requirement of destroying all odd directed cycles as a collection of directed reachability constraints, as in Directed Multicut. To this end, we first use the FPT 2-approximation algorithm of Lokhstanov, Ramanujan, Saurabh, and Zehavi [22 ] to find a set M M M of at most 2 k 2k 2 k vertices intersecting every odd directed cycle, or conclude that no solution of size at most k k k exists. We then construct an auxiliary bipartite digraph by taking two copies of each vertex and replacing every arc by two arcs connecting opposite copies. The resulting digraph remains Eulerian, and odd directed cycles can be detected through reachability between the two copies of vertices in M M M . This suggests a Directed Multicut formulation with at most 4 k 4k 4 k terminal pairs, in which the two copies of each vertex in M M M must be separated in both directions.
However, this formulation does not yield a reduction to ordinary Directed Multicut. Each arc of the original digraph corresponds to a pair of arcs in the auxiliary digraph, and deleting an original arc requires deleting both members of the pair. An arbitrary multicut need not respect this pairing, and hence need not correspond to a solution of the original problem. We are thus led to a constrained variant of Directed Multicut in which the two arcs of each pair must either both be deleted or both be retained.
The key observation is that this additional constraint does not prevent us from exploiting the structure of small minimal cuts. Let ϕ \phi ϕ denote the involution exchanging the two copies of each vertex, and hence the two arcs corresponding to each original arc. We show that every inclusion-minimal multicut S S S respecting the pairing constraint can be expressed as S = A ∪ ϕ ( A ) S=A \cup\phi(A) S = A ∪ ϕ ( A ) , where A A A is an inclusion-minimal ordinary multicut. Consequently, every arc of S S S belongs to a minimal cut of size at most 2 k 2k 2 k between some prescribed terminal pair. Since the auxiliary digraph is Eulerian, these directed cuts correspond to undirected cuts of size at most 4 k 4k 4 k . This allows us to apply our treewidth-reduction theorem (Theorem 1 ) to obtain an equivalent instance of bounded treewidth while preserving the pairing constraint.
Although treewidth reduction yields an equivalent instance of bounded treewidth, enforcing the pairing constraint introduces an additional difficulty. In an arbitrary tree decomposition, the two arcs of a pair may be handled in different parts of the decomposition, requiring the dynamic programming algorithm to maintain consistency between their deletion decisions.
We overcome this difficulty by proving that the reduced graph admits a bounded-width tree decomposition in which every bag is closed under the involution ϕ \phi ϕ . To establish this, we consider the graph obtained by identifying each vertex with its counterpart under ϕ \phi ϕ . We show that this graph must have bounded treewidth otherwise, the excluded-grid theorem [7 ] , together with a grid-minor lifting argument that exploits the involution, would imply the existence of an arbitrarily large grid minor in the original reduced graph, contradicting its bounded treewidth. A tree decomposition of the identified graph can then be lifted to one of the original graph by replacing each vertex with its two counterparts. The resulting decomposition allows us to enforce the pairing constraint locally, and dynamic programming over it yields the desired FPT algorithm.
From this point onwards, we will say that the treewidth of a directed graph D D D , written as tw ( D ) \operatorname{tw}(D) tw ( D ) , is equal to treewidth of the undirected underlying graph of D D D . One should not confuse this with the directed treewidth of D D D , which is a different concept not relevant for this work.
Theorem 5. Directed Edge Odd Cycle Transversal can be solved in 2 O ( k 2 ) ⋅ n O ( 1 ) 2^{O(k^2)} \cdot n^{O(1)} 2 O ( k 2 ) ⋅ n O ( 1 ) time on Eulerian digraphs.
Let ( D , k ) (D,k) ( D , k ) be the input instance of DEOCT. As a first step, we can use the FPT 2-approximation algorithm by Lokshtanov, Ramanujan, Saurabh and Zehavi [22 ] . This will in time 2 O ( k 2 ) ⋅ n O ( 1 ) 2^{O(k^2)} \cdot n^{O(1)} 2 O ( k 2 ) ⋅ n O ( 1 ) either report that D D D has no vertex set (and thus no arc set) of size at most k k k that hits all odd cycles, or it find a vertex set M M M of size at most 2 k 2k 2 k such that D − M D-M D − M is odd-cycle-free. In the former case we immediately return that this is a NO-instance.
Next, we reduce the DEOCT instance ( D , k ) (D,k) ( D , k ) to a Directed Multicut instance ( D ′ , T , 2 k ) (D',\mathcal{T},2k) ( D ′ , T , 2 k ) defined as follows. The graph D ′ D' D ′ has as vertex set { v 0 , v 1 ∣ v ∈ V ( D ) } \{v^0,v^1 \mid v \in V(D)\} { v 0 , v 1 ∣ v ∈ V ( D )} and has arcs ( u 0 , v 1 ) (u^0,v^1) ( u 0 , v 1 ) and ( u 1 , v 0 ) (u^1,v^0) ( u 1 , v 0 ) for each arc ( u , v ) (u,v) ( u , v ) of D D D . Finally, T = { ( t 0 , t 1 ) , ( t 1 , t 0 ) ∣ t ∈ M } \mathcal{T}=\{(t^0,t^1),(t^1,t^0) \mid t \in M\} T = {( t 0 , t 1 ) , ( t 1 , t 0 ) ∣ t ∈ M } and hence ∣ T ∣ ≤ 2 ∣ M ∣ ≤ 4 k |\mathcal{T}| \leq2|M| \leq4k ∣ T ∣ ≤ 2∣ M ∣ ≤ 4 k . We define an involution ϕ \phi ϕ on V ( D ′ ) ∪ E ( D ′ ) V(D') \cup E(D') V ( D ′ ) ∪ E ( D ′ ) with ϕ ( v i ) = v 1 − i \phi(v^i)=v^{1-i} ϕ ( v i ) = v 1 − i for all v i ∈ V ( D ′ ) v^i \in V(D') v i ∈ V ( D ′ ) and ϕ ( ( u , v ) ) = ( ϕ ( u ) , ϕ ( v ) ) \phi((u,v))=(\phi(u),\phi(v)) ϕ (( u , v )) = ( ϕ ( u ) , ϕ ( v )) . We say that a set S ⊆ V ( D ) ∪ E ( D ) S \subseteq V(D) \cup E(D) S ⊆ V ( D ) ∪ E ( D ) is symmetric when ϕ ( S ) : = { ϕ ( e ) ∣ e ∈ S } \phi(S):=\{\phi(e) \mid e \in S\} ϕ ( S ) := { ϕ ( e ) ∣ e ∈ S } is equal to S S S . The reduction relates the two instances through the following equivalence.
Lemma 1. D D D has a directed edge odd cycle transversal of size at most k k k if and only if D ′ D' D ′ with terminal pairs T \mathcal{T} T has a symmetric directed multicut of size at most 2 k 2k 2 k .
Proof. Let S ⊆ E ( D ) S \subseteq E(D) S ⊆ E ( D ) be such that ∣ S ∣ ≤ k |S| \leq k ∣ S ∣ ≤ k and D − S D-S D − S is odd-cycle-free. We claim that S ′ = { ( u 0 , v 1 ) , ( u 1 , v 0 ) ∣ ( u , v ) ∈ S } S'=\{(u^0,v^1),(u^1,v^0)\mid(u,v)\in S\} S ′ = {( u 0 , v 1 ) , ( u 1 , v 0 ) ∣ ( u , v ) ∈ S } is a solution for the DMC instance. It is clearly symmetric and of size 2 ∣ S ∣ ≤ 2 k 2|S|\leq2k 2∣ S ∣ ≤ 2 k , so it remains to show that there are no t t t to ϕ ( t ) \phi(t) ϕ ( t ) paths in D ′ − S ′ D'-S' D ′ − S ′ for any terminal pair ( t , ϕ ( t ) ) (t,\phi(t)) ( t , ϕ ( t )) . For sake of a contradiction, let P ′ P' P ′ be such a path. There is a natural way to find a path P P P corresponding to it in D D D . Simply replace each vertex v i v^i v i on P ′ P' P ′ by v v v for P P P and replace each arc ( u i , v i − 1 ) (u^i,v^{i-1}) ( u i , v i − 1 ) by ( u , v ) (u,v) ( u , v ) . Then the first and last vertex of P P P are the same, and hence P P P is a cycle. Furthermore, this translation of the path preserves its length, and as D ′ D' D ′ is bipartite and the two endpoints of P ′ P' P ′ are in distinct sides of the bipartition, the path P ′ P' P ′ must have been of odd length. Hence P P P is an odd cycle in D D D . Finally, observe that P P P avoids S S S by our choice of S ′ S' S ′ , which contradicts that D − S D-S D − S is odd-cycle-free.
For the other direction, let S ′ ⊆ E ( D ′ ) S' \subseteq E(D') S ′ ⊆ E ( D ′ ) be a symmetric set of size at most 2 k 2k 2 k such that D ′ − S ′ D'-S' D ′ − S ′ has no path between terminal pairs. Let S = { ( u , v ) ∣ ( u 0 , v 1 ) ∈ S ′ } S=\{(u,v)\mid(u^0,v^1)\in S'\} S = {( u , v ) ∣ ( u 0 , v 1 ) ∈ S ′ } . Clearly ∣ S ∣ = ∣ S ′ ∣ 2 ≤ 2 k 2 = k |S|=\frac{|S'|}{2}\leq\frac{2k}{2}=k ∣ S ∣ = 2 ∣ S ′ ∣ ≤ 2 2 k = k , hence it remains to show that D − S D-S D − S has no odd cycles. For sake of a contradiction, let C C C be an odd cycle in D − S D-S D − S . Then as M M M is a vertex set hitting all odd cycles, there must be at least one t ∈ M t\in M t ∈ M that hits C C C . We can convert C C C into a t 0 t^0 t 0 to t 1 t^1 t 1 path P ′ P' P ′ in D ′ − S ′ D'-S' D ′ − S ′ as follows. Let t = v 0 , v 1 , … , v ℓ − 1 , v ℓ = t t=v_0,v_1,\ldots,v_{\ell-1},v_\ell=t t = v 0 , v 1 , … , v ℓ − 1 , v ℓ = t be the vertices visited by C C C in this order, and note that ℓ \ell ℓ is odd. The path P ′ P' P ′ starts at t 0 t^0 t 0 and follows arc ( t 0 , v 1 1 ) (t^0,v_1^1) ( t 0 , v 1 1 ) . From here it can follow arc ( v 1 1 , v 2 0 ) (v_1^1,v_2^0) ( v 1 1 , v 2 0 ) and repeat this procedure to translate the entirety of C C C . Since ℓ \ell ℓ is odd, P ′ P' P ′ has as last vertex t 1 t^1 t 1 and is thus a path between terminal pairs. By choice of S S S , this path will be disjoint from S ′ S' S ′ , which contradicts it being a solution. □ \square □
To solve the original DEOCT instance it thus suffices to decide if the DMC instance ( D ′ , T , 2 k ) (D',\mathcal{T},2k) ( D ′ , T , 2 k ) has a symmetric solution. Our next step will be to reduce the treewidth of the instance. We first argue that the treewidth reduction technique is applicable.
Let S ⊆ E ( D ′ ) S \subseteq E(D') S ⊆ E ( D ′ ) be a minimal symmetric multicut of size at most 2 k 2k 2 k (if one exists). Let A ⊆ S A\subseteq S A ⊆ S be a minimal, not necessarily symmetric, multicut contained in S S S . Then S = A ∪ ϕ ( A ) S=A\cup\phi(A) S = A ∪ ϕ ( A ) as by minimality of S S S any A A A needs to pick at least one arc from each symmetric pair of arcs in S S S . By minimality of A A A , every arc in it must be part of some minimal terminal-pair cut. By symmetry of the instance, these two properties must also hold for ϕ ( A ) \phi(A) ϕ ( A ) . Hence all arcs in A A A , ϕ ( A ) \phi(A) ϕ ( A ) and as a consequence in S S S must be part of a minimal t → ϕ ( t ) t \to\phi(t) t → ϕ ( t ) -cut of size at most 2 k 2k 2 k for some ( t , ϕ ( t ) ) ∈ T (t,\phi(t)) \in T ( t , ϕ ( t )) ∈ T . It is not difficult to confirm that D ′ D' D ′ is still an Eulerian digraph, hence all arcs of S S S are contained in some minimal undirected t − ϕ ( t ) t-\phi(t) t − ϕ ( t ) cut of size at most 4 k 4k 4 k .
Lemma 2. There is a symmetric set W ⊆ V ( D ′ ) W \subseteq V(D') W ⊆ V ( D ′ ) such that D ∗ = torso ( D ′ , W , k ) D^* = \operatorname{torso}(D',W,k) D ∗ = torso ( D ′ , W , k ) has treewidth at most h ( 4 k , 4 k ) h(4k,4k) h ( 4 k , 4 k ) and such that ( D ′ , T , 2 k ) (D',T,2k) ( D ′ , T , 2 k ) has a symmetric solution if and only if ( D ∗ , T , 2 k ) (D^*,T,2k) ( D ∗ , T , 2 k ) has a symmetric solution for a suitable involution ϕ ∗ \phi^* ϕ ∗ .
Proof. Let t 1 , t 2 , … , t p t_1,t_2,\ldots,t_p t 1 , t 2 , … , t p be the vertices in M M M for some p ≤ 2 k p \le2k p ≤ 2 k . We find a set W i W_i W i for each i ∈ [ p ] i \in[p] i ∈ [ p ] by running Lemma 12 for each pair of terminals ( t i 0 , t i 1 ) (t_i^0,t_i^1) ( t i 0 , t i 1 ) . We set W = ⋃ i = 1 p W i ∪ ϕ ( W i ) W = \bigcup_{i=1}^{p} W_i \cup\phi(W_i) W = ⋃ i = 1 p W i ∪ ϕ ( W i ) and claim that using the treewidth reduction tools we find that tw ( torso ( D ′ , W , k ) ) \operatorname{tw}(\operatorname{torso}(D',W,k)) tw ( torso ( D ′ , W , k )) is appropriately bounded. In particular, by Lemma 12 we obtain tw ( torso ( G ′ , W i ) ) ≤ g ( 4 k , 4 k ) \operatorname{tw}(\operatorname{torso}(G',W_i)) \leq g(4k,4k) tw ( torso ( G ′ , W i )) ≤ g ( 4 k , 4 k ) where G ′ G' G ′ is the underlying undirected graph of D ′ D' D ′ . By symmetry of the graph the same holds for tw ( torso ( G , ϕ ( W i ) ) ) \operatorname{tw}(\operatorname{torso}(G,\phi(W_i))) tw ( torso ( G , ϕ ( W i ))) and thus by Lemma 10 we know that tw ( torso ( G , W ) ) ≤ 2 p ⋅ g ( 4 k , 4 k ) ≤ 4 k ⋅ g ( 4 k , 4 k ) ≤ h ( 4 k , 4 k ) \operatorname{tw}(\operatorname{torso}(G,W)) \leq2p \cdot g(4k,4k) \leq4k \cdot g(4k,4k) \leq h(4k,4k) tw ( torso ( G , W )) ≤ 2 p ⋅ g ( 4 k , 4 k ) ≤ 4 k ⋅ g ( 4 k , 4 k ) ≤ h ( 4 k , 4 k ) , and since the underlying undirected graph without parallel edges of torso ( D ′ , W , k ) \operatorname{torso}(D',W,k) torso ( D ′ , W , k ) is a subgraph of torso ( G , W ) \operatorname{torso}(G,W) torso ( G , W ) , we conclude it has a similar upper bound on its treewidth. By construction of W W W we obviously have ϕ ( W ) = W \phi(W)=W ϕ ( W ) = W . This allows us to define a natural symmetry function ϕ ∗ \phi^* ϕ ∗ for D ∗ D^* D ∗ based on ϕ \phi ϕ .
It remains to show that the two instances are equivalent. Let S S S be a minimal symmetric solution on D ′ D' D ′ of size at most 2 k 2k 2 k . Then by the argument preceding this lemma we know that all endpoints of arcs in S S S must be in W W W . We claim that S S S is also a solution on D ∗ D^* D ∗ , which by construction of D ∗ D^* D ∗ remains a symmetric solution. For sake of a contradiction, let P ∗ P^* P ∗ be a t t t to ϕ ∗ ( t ) \phi^*(t) ϕ ∗ ( t ) path in D ∗ − S D^* - S D ∗ − S for a terminal pair ( t , ϕ ∗ ( t ) ) ∈ T (t,\phi^*(t)) \in T ( t , ϕ ∗ ( t )) ∈ T . By construction of D ∗ D^* D ∗ , if P ∗ P^* P ∗ uses any arc introduced by the torso operation then it can be replaced in D ′ D' D ′ by the path internally disjoint from D [ W ] D[W] D [ W ] that gave rise to this arc. Replacing each such arc results in a t t t to ϕ ( t ) \phi(t) ϕ ( t ) path in D ′ − S D' - S D ′ − S , which contradicts S S S being a solution.
Now let S S S be a minimal symmetric solution for D ∗ D^* D ∗ . By construction of D ∗ D^* D ∗ , S S S will not contain any arcs introduced by the torso operation, i.e. all arcs of S S S are arcs in D ′ D' D ′ . As the symmetry of these arcs are maintained for D ′ D' D ′ , it remains to argue there is no terminal pair path in D ′ − S D' - S D ′ − S . This follows directly from the fact that any subpath outside of D ′ [ W ] D'[W] D ′ [ W ] that such a path could use can be replaced by an arc between its endpoints in W W W , which exists by definition of the torso, yet is certainly not in S S S .
At this point we know that D ∗ D^* D ∗ has bounded treewidth, but we want to specifically show that D ∗ D^* D ∗ has a tree decomposition of bounded width that respects the symmetry of the graph. Let g : N → N g : \mathbb{N} \to\mathbb{N} g : N → N be a function such that every undirected graph of treewidth at least g ( p ) g(p) g ( p ) contains a ( p × p ) (p \times p) ( p × p ) -grid (henceforth referred to as a grid of size p p p ) as a minor. By Chuzhoy and Tan [7 ] we know that g ( p ) = O ( p 9 polylog p ) g(p)=O(p^9\operatorname{polylog}p) g ( p ) = O ( p 9 polylog p ) . We prove the following lemma.
Lemma 3. D ∗ D^* D ∗ has a tree decomposition of width at most 2 ⋅ g ( ( h ′ ( k ) ) 2 ) 2 \cdot g((h'(k))^2) 2 ⋅ g (( h ′ ( k ) ) 2 ) for h ′ ( k ) = 1 + h ( 4 k , 4 k ) h'(k)=1+h(4k,4k) h ′ ( k ) = 1 + h ( 4 k , 4 k ) such that for every bag B B B of the decomposition and every vertex v ∈ V ( D ∗ ) v \in V(D^*) v ∈ V ( D ∗ ) , v ∈ B v \in B v ∈ B if and only if ϕ ( v ) ∈ B \phi(v) \in B ϕ ( v ) ∈ B .
Proof. Let G G G be the graph obtained from D ∗ D^* D ∗ and by identifying each vertex pair ( v 0 , v 1 ) (v^0,v^1) ( v 0 , v 1 ) to a single vertex v v v . Observe that a tree decomposition of G G G can be turned into a tree decomposition of D ∗ D^* D ∗ with symmetric bags by replacing each such vertex v v v of G G G in each bag by the two vertices v 0 , v 1 v^0,v^1 v 0 , v 1 of D ∗ D^* D ∗ that were identified to form v v v . This only doubles the size of each bag, hence we will prove the claim by bounding the treewidth of G G G . For sake of a contradiction, assume that tw ( G ) > g ( ( h ′ ( k ) ) 2 ) \operatorname{tw}(G)>g((h'(k))^2) tw ( G ) > g (( h ′ ( k ) ) 2 ) . By choice of g g g , that means G G G has as a minor a grid B B B of size at least ( h ′ ( k ) ) 2 (h'(k))^2 ( h ′ ( k ) ) 2 . We show this implies D ∗ D^* D ∗ has as undirected minor a grid of size at least h ′ ( k ) = 1 + h ( 4 k , 4 k ) h'(k)=1+h(4k,4k) h ′ ( k ) = 1 + h ( 4 k , 4 k ) contradicting that D ∗ D^* D ∗ has treewidth at most h ( 4 k , 4 k ) h(4k,4k) h ( 4 k , 4 k ) .
Consider the minor model ( V b ) b ∈ V ( B ) (V_b)_{b \in V(B)} ( V b ) b ∈ V ( B ) of B B B in G G G . For each b ∈ V ( B ) b \in V(B) b ∈ V ( B ) , let T b T_b T b be a spanning tree of G [ V b ] G[V_b] G [ V b ] . Consider an arc ( u , v ) (u,v) ( u , v ) that is part of T b T_b T b . Since G G G is formed by identifying symmetric vertex pairs of D ∗ D^* D ∗ , it must mean one of the following arcs exists: ( u 0 , v 1 ) (u^0,v^1) ( u 0 , v 1 ) , ( u 1 , v 0 ) (u^1,v^0) ( u 1 , v 0 ) , ( u 0 , v 0 ) (u^0,v^0) ( u 0 , v 0 ) or ( u 1 , v 1 ) (u^1,v^1) ( u 1 , v 1 ) . By symmetry of D ∗ D^* D ∗ , these arcs come in pairs, i.e. the first two are either both in D ∗ D^* D ∗ or are both not in D ∗ D^* D ∗ , and same for the last two. We proceed to replicate T b T_b T b in D ∗ D^* D ∗ . Select an arbitrary r ∈ V b r \in V_b r ∈ V b as the root. Start from r 0 r^0 r 0 in D ∗ D^* D ∗ and consider the arcs of T b T_b T b incident to r r r . By the argument above, each such arc must have two counterparts in D ∗ D^* D ∗ , one with endpoint r 0 r^0 r 0 and one with endpoint r 1 r^1 r 1 . Hence we can select for each arc of T b T_b T b incident to r r r a matching arc in D ∗ D^* D ∗ incident to r 0 r^0 r 0 . One can easily see that repeating this argument will yield us a copy of T b T_b T b in D ∗ D^* D ∗ . Furthermore, if we repeat the process but start now with r 1 r^1 r 1 as root, we find another copy of T b T_b T b , vertex-disjoint from the first copy. Let T b 0 T_b^0 T b 0 and T b 1 T_b^1 T b 1 refer to these two copies of T b T_b T b in D ∗ D^{*} D ∗ . Find such pairs of trees for each b ∈ V ( B ) b \in V(B) b ∈ V ( B ) and let G ∗ G^{*} G ∗ be the (undirected) graph obtained from D ∗ D^{*} D ∗ by contracting all such trees T b 0 T_{b}^{0} T b 0 and T b 1 T_{b}^{1} T b 1 to single vertices b 0 b^{0} b 0 and b 1 b^{1} b 1 and removing all other vertices from the graph.
At this point we can attempt to replicate the grid minor model in G ∗ G^{*} G ∗ . Fix some embedding of B B B on the plane. Then we start at the top-left vertex b 00 b_{00} b 00 of B B B , for which we have the two candidate vertices b 00 0 b_{00}^{0} b 00 0 and b 00 1 b_{00}^{1} b 00 1 in G ∗ G^{*} G ∗ . Select b 00 0 b_{00}^{0} b 00 0 and we will try to discover a copy of B B B starting from here. We look at a neighbour of b 00 b_{00} b 00 , let us say b 01 b_{01} b 01 . In the original minor model on G G G there is an arc between V ( T b 00 ) V(T_{b_{00}}) V ( T b 00 ) and V ( T b 01 ) V(T_{b_{01}}) V ( T b 01 ) , hence by symmetry there must be an arc from V ( T b 00 0 ) V(T_{b_{00}}^{0}) V ( T b 00 0 ) to at least one of V ( T b 01 0 ) V(T_{b_{01}}^{0}) V ( T b 01 0 ) and V ( T b 01 1 ) V(T_{b_{01}}^{1}) V ( T b 01 1 ) . Thus we can find an arc from b 00 0 b_{00}^{0} b 00 0 to at least one of b 01 0 b_{01}^{0} b 01 0 or b 01 1 b_{01}^{1} b 01 1 . Add one such arc to our structure. By repeatedly finding such arcs we can step-by-step build a structure resembling the grid B B B , but now in G ∗ G^{*} G ∗ . Assume that we build the grid from left to right, top to bottom. There is one potential obstacle to this structure being a proper grid. For vertices b i j b_{ij} b ij of B B B that are the bottom right corner of a square (a C 4 C_{4} C 4 ) there will be a connection made in our structure both from the vertex above it and to the left of it. However, one arc might connect to b i j 0 b_{ij}^{0} b ij 0 while the other connects to b i j 1 b_{ij}^{1} b ij 1 (see Figure 1 a for an illustration). As a result, there will not be a C 4 C_{4} C 4 in our structure. Regardless, we can continue the construction procedure by choosing to continue from either only b i j 0 b_{ij}^{0} b ij 0 or only b i j 1 b_{ij}^{1} b ij 1 in the next step. We address the raised problem as follows.
Figure 1. (a) Mismatch when constructing a model of the grid. Each vertex b i j b_{ij} b ij on the square of the grid has two candidate vertices b i j 0 b_{ij}^{0} b ij 0 and b i j 1 b_{ij}^{1} b ij 1 . The structure B 0 B^{0} B 0 is in blue and B 1 B^{1} B 1 in orange, and both connect to both candidates for the bottom left corner. (b) The grid of grids construction. Each subgrid must contain at least one unifier (indicated in orange).
Note that in the above we constructed a structure by starting a growing procedure from b 00 0 b_{00}^{0} b 00 0 . We can in exactly the same way grow a structure starting from b 00 1 b_{00}^{1} b 00 1 . Let B 0 B^{0} B 0 and B 1 B^{1} B 1 denote these two structures. By symmetry of D ∗ D^{*} D ∗ , these two structures can be constructed in such a way that they are entirely arc-disjoint. This is achieved by, when in the growing procedure we have a choice between connecting to or continuing from b i j 0 b_{ij}^{0} b ij 0 and b i j 1 b_{ij}^{1} b ij 1 , making sure both structures make a different choice.
Now, in case a mismatch occurs in a square of the grid, then observe that it means that all 8 vertices involved in the square are connected through these 8 arcs that are partitioned over B 1 B^{1} B 1 and B 2 B^{2} B 2 (i.e. it forms a C 8 C_{8} C 8 ). Let us refer to such mismatched squares of the grid as unifiers . If either B 1 B^{1} B 1 or B 2 B^{2} B 2 (and by symmetry then both) contains a subgrid of size at least h ′ ( k ) h'(k) h ′ ( k ) then we are done. Otherwise, for all subgrids of B 0 B^{0} B 0 and B 1 B^{1} B 1 of at least this size, there will be a unifier in the corresponding region of B 1 ∪ B 2 B_{1} \cup B_{2} B 1 ∪ B 2 . Partition the grid into h ′ ( k ) h'(k) h ′ ( k ) vertex-disjoint subgrids, structured themselves in a grid like structure (see Figure 1 b). Each of these subgrids must contain a unifier, and as a consequence it is a connected subgraph of B 1 ∪ B 2 B_{1} \cup B_{2} B 1 ∪ B 2 . That means we can treat each subgrid as a branching set, and all branching sets together form a new grid, which is a minor of D ∗ D^{*} D ∗ . Since each subgrid is connected, the problem of a mismatch cannot occur. The grid found in this way has size h ′ ( k ) h'(k) h ′ ( k ) , concluding the proof. □
The function h h h in Theorem 1 is such that h ( 4 k , 4 k ) = 2 O ( k 2 ) h(4k,4k)=2^{O(k^{2})} h ( 4 k , 4 k ) = 2 O ( k 2 ) , and hence D ∗ D^{*} D ∗ has a symmetric tree decomposition of size at most 2 O ( k 2 ) 2^{O(k^{2})} 2 O ( k 2 ) . We can compute a symmetric tree decomposition as stated in Lemma 3 by following the setup at the start of its proof. We construct G G G and compute a tree decomposition of it of width at most 2 O ( k 2 ) 2^{O(k^{2})} 2 O ( k 2 ) using the algorithm by Korhonen [17 ] in 2 2 O ( k 2 ) ⋅ ∣ V ( G ) ∣ 2^{2^{O(k^{2})}} \cdot|V(G)| 2 2 O ( k 2 ) ⋅ ∣ V ( G ) ∣ time. Furthermore, we can turn this into a nice tree decomposition of the same width and with 2 O ( k 2 ) ⋅ ∣ V ( G ) ∣ 2^{O(k^{2})} \cdot|V(G)| 2 O ( k 2 ) ⋅ ∣ V ( G ) ∣ nodes in 2 O ( k 2 ) ⋅ ∣ V ( G ) ∣ 2^{O(k^{2})} \cdot|V(G)| 2 O ( k 2 ) ⋅ ∣ V ( G ) ∣ time [3 ] . We then reverse the identification of all vertices to find a ‘symmetrically-nice’ tree decomposition ( T , { X b ∣ b ∈ V ( T ) } ) (T,\{X_b \mid b \in V(T)\}) ( T , { X b ∣ b ∈ V ( T )}) of D ∗ D^* D ∗ of width at most 2 O ( k 2 ) 2^{O(k^2)} 2 O ( k 2 ) . For a node b ∈ V ( T ) b \in V(T) b ∈ V ( T ) let G b G_b G b be the subgraph of G G G consisting of all vertex and arcs introduced in the subtree of T T T rooted at b b b . Let K b K_b K b denote the set of all individual terminals that are part of a terminal pair in T \mathcal{T} T and are in G b G_b G b .
We then solve the problem of finding a symmetric multicut through dynamic programming on the tree decomposition. The main idea is that the symmetry of our tree decomposition allows us to force only symmetric solutions to be considered, as symmetric arcs can be processed simultaneously. We introduce the following two definitions.
Definition 2.2 (Reachability relation). A reachability relation R R R on a set U ⊆ V ( D ) U \subseteq V(D) U ⊆ V ( D ) of vertices on a digraph D D D is a reflexive and transitive relation on U U U . The relation is valid for a set of terminal pairs T \mathcal{T} T if R ∩ T = ∅ R \cap\mathcal{T} = \emptyset R ∩ T = ∅ .
A digraph D D D realises a reachability relation R R R on a set U ⊆ V ( D ) U \subseteq V(D) U ⊆ V ( D ) if ( u , v ) ∈ R (u,v) \in R ( u , v ) ∈ R if and only if there is a (potentially empty) path from u u u to v v v in D D D .
Definition 2.3. For every node b ∈ V ( T ) b \in V(T) b ∈ V ( T ) , every valid reachability relation R R R on K b ∪ X b K_b \cup X_b K b ∪ X b and every symmetric set S ~ ⊆ E ( G b [ X b ] ) \widetilde{S} \subseteq E(G_b[X_b]) S ⊆ E ( G b [ X b ]) , we define c [ b , R , S ~ ] c[b,R,\widetilde{S}] c [ b , R , S ] to be the minimum size of a set S ⊆ E ( G b ) S \subseteq E(G_b) S ⊆ E ( G b ) such that
S S S is symmetric,
S ∩ E ( G b [ X b ] ) = S ~ S \cap E(G_b[X_b]) = \widetilde{S} S ∩ E ( G b [ X b ]) = S , and
G b − S G_b - S G b − S realises reachability relation R R R .
If no such set S S S exists we put c [ b , R , S ~ ] = ∞ c[b,R,\widetilde{S}] = \infty c [ b , R , S ] = ∞ .
Let r r r be the root of T T T . Then we can find the size of a minimum symmetric DMC solution for ( D ∗ , T , k ) (D^*,\mathcal{T},k) ( D ∗ , T , k ) by taking min R c [ r , R , ∅ ] \min_R c[r,R,\emptyset] min R c [ r , R , ∅ ] where R R R ranges over all valid reachability sets on the terminals. We will show in a series of lemmas how to compute the values of c c c for each type of node appearing in T T T , after which they can be computed for the whole tree in a bottom-up manner.
Lemma 4 (Leaf node). Let b b b be a leaf node, then c [ b , ∅ , ∅ ] = 0 c[b,\emptyset,\emptyset] = 0 c [ b , ∅ , ∅ ] = 0 .
Proof. For a leaf node b b b the graph G b G_b G b is empty and thus there is only one valid choice.
Lemma 5 (Introduce vertex node). Let b b b be an introduce vertex node with a child b ′ b' b ′ such that X b = X b ′ ∪ { v 0 , v 1 } X_b = X_{b'} \cup\{v^0,v^1\} X b = X b ′ ∪ { v 0 , v 1 } for some v 0 , v 1 ∉ X b ′ v^0,v^1 \notin X_{b'} v 0 , v 1 ∈ / X b ′ . Then
c [ b , R , S ~ ] = { c [ b ′ , R ∖ { ( v 0 , v 0 ) , ( v 1 , v 1 ) } , S ~ ] if v 0 and v 1 only appear reflexively in R , ∞ otherwise c[b,R,\widetilde{S}] =
\begin{cases}
c[b',R \setminus\{(v^0,v^0),(v^1,v^1)\},\widetilde{S}] & \text{if } v^0 \text{ and } v^1 \text{ only appear reflexively in } R,\\
\infty& \text{otherwise}
\end{cases} c [ b , R , S ] = { c [ b ′ , R ∖ {( v 0 , v 0 ) , ( v 1 , v 1 )} , S ] ∞ if v 0 and v 1 only appear reflexively in R , otherwise
Proof. The two introduced vertices v 0 v^0 v 0 and v 1 v^1 v 1 are isolated in G b G_b G b as none of their incident arcs have been introduced yet. Hence it is impossible for any solution to realise any reachability relation that involves v 0 v^0 v 0 or v 1 v^1 v 1 (except for their reflexive relations ( v 0 , v 0 ) (v^0,v^0) ( v 0 , v 0 ) and ( v 1 , v 1 ) (v^1,v^1) ( v 1 , v 1 ) ). Therefore, if R R R contains v 0 v^0 v 0 or v 1 v^1 v 1 in any other pair, c [ b , R , S ~ ] c[b,R,\widetilde{S}] c [ b , R , S ] must be ∞ \infty ∞ . If the indeed appear only in reflexive pairs, then any solution S S S on G b G_b G b realises reachability relation R R R if and only if S S S realises R ∖ { ( v 0 , v 0 ) , ( v 1 , v 1 ) } R \setminus\{(v^0,v^0),(v^1,v^1)\} R ∖ {( v 0 , v 0 ) , ( v 1 , v 1 )} on G b ′ G_{b'} G b ′ .
Lemma 6 (Introduce edge node). Let b b b be an introduce edge node with a child b ′ b' b ′ . Let ( u , v ) (u,v) ( u , v ) and φ ∗ ( ( u , v ) ) \varphi^*((u,v)) φ ∗ (( u , v )) be the arcs introduced by b b b . Then
c [ b , R , S ~ ] = { 2 + c [ b ′ , R , S ~ ∖ { ( u , v ) , φ ∗ ( ( u , v ) ) } ] if ( u , v ) , φ ∗ ( ( u , v ) ) ∈ S ~ , min R ′ c [ b ′ , R ′ , S ~ ] otherwise c[b,R,\widetilde{S}] =
\begin{cases}
2+c[b',R,\widetilde{S}\setminus\{(u,v),\varphi^*((u,v))\}] & \text{if } (u,v),\varphi^*((u,v)) \in\widetilde{S},\\
\min_{R'} c[b',R',\widetilde{S}] & \text{otherwise}
\end{cases} c [ b , R , S ] = { 2 + c [ b ′ , R , S ∖ {( u , v ) , φ ∗ (( u , v ))}] min R ′ c [ b ′ , R ′ , S ] if ( u , v ) , φ ∗ (( u , v )) ∈ S , otherwise Where R ′ R' R ′ in the second case ranges over all valid reachability relations such that the transitive closure of R ′ ∪ { ( u , v ) , φ ∗ ( ( u , v ) ) } R' \cup\{(u,v),\varphi^*((u,v))\} R ′ ∪ {( u , v ) , φ ∗ (( u , v ))} is equal to R R R .
Proof. First consider the case where ( u , v ) , φ ∗ ( ( u , v ) ) ∈ S ~ (u,v),\varphi^*((u,v)) \in\widetilde{S} ( u , v ) , φ ∗ (( u , v )) ∈ S . Then note that these two arcs are in any potential solution S S S and hence G b − S = G b ′ − ( S ∖ { ( u , v ) , φ ∗ ( ( u , v ) ) } ) G_b-S = G_{b'}-(S\setminus\{(u,v),\varphi^*((u,v))\}) G b − S = G b ′ − ( S ∖ {( u , v ) , φ ∗ (( u , v ))}) . Furthermore any solution for c [ b ′ , R , S ~ ∖ { ( u , v ) , φ ∗ ( ( u , v ) ) } ] c[b',R,\widetilde{S}\setminus\{(u,v),\varphi^*((u,v))\}] c [ b ′ , R , S ∖ {( u , v ) , φ ∗ (( u , v ))}] can be turned into a solution for c [ b , R , S ~ ] c[b,R,\widetilde{S}] c [ b , R , S ] by adding these two arcs to S S S , from which equality in the first case follows.
Next consider the second case. Note that a solution S S S for c [ b , R , S ~ ] c[b,R,\widetilde{S}] c [ b , R , S ] realises some reachability relation R ′ R' R ′ on G b ′ G_{b'} G b ′ that can be obtained from R R R by potentially removing some pairs. Hence S S S will be a valid solution for some R ′ R' R ′ and thus c [ b , R , S ~ ] ≥ min R ′ c [ b ′ , R ′ , S ~ ] c[b,R,\widetilde{S}] \geq\min_{R'} c[b',R',\widetilde{S}] c [ b , R , S ] ≥ min R ′ c [ b ′ , R ′ , S ] . For the other direction, note that any solution S ′ S' S ′ for c [ b ′ , R ′ , S ~ ] c[b',R',\widetilde{S}] c [ b ′ , R ′ , S ] by definition of R ′ R' R ′ realises reachability R R R on G b G_b G b , hence c [ b , R , S ~ ] ≤ min R ′ c [ b ′ , R ′ , S ~ ] c[b,R,\widetilde{S}] \leq\min_{R'} c[b',R',\widetilde{S}] c [ b , R , S ] ≤ min R ′ c [ b ′ , R ′ , S ] .
Lemma 7 (Forget node). Let b b b be a forget node with a child b ′ b' b ′ such that X b = X b ′ ∖ { v 0 , v 1 } X_b = X_{b'} \setminus\{v^0,v^1\} X b = X b ′ ∖ { v 0 , v 1 } for some v 0 , v 1 ∈ X b ′ v^0,v^1 \in X_{b'} v 0 , v 1 ∈ X b ′ . Then
c [ b , R , S ~ ] = min S ~ ′ , R ′ c [ b ′ , R ′ , S ~ ′ ] c[b,R,\widetilde{S}] = \min_{\widetilde{S}',R'} c[b',R',\widetilde{S}'] c [ b , R , S ] = S ′ , R ′ min c [ b ′ , R ′ , S ′ ] Where S ~ ′ \widetilde{S}' S ′ ranges over all supersets of S ~ \widetilde{S} S obtained by adding a symmetric set of arcs of E ( G b ′ [ X b ′ ] ) E(G_{b'}[X_{b'}]) E ( G b ′ [ X b ′ ]) incident to v 0 v^0 v 0 and v 1 v^1 v 1 , and R ′ R' R ′ ranges over all valid reachability relations of K b ′ ∪ X b ′ K_{b'} \cup X_{b'} K b ′ ∪ X b ′ that is equal to R R R when restricted to K b ∪ X b K_b \cup X_b K b ∪ X b .
Proof. First note that G b = G b ′ G_b = G_{b'} G b = G b ′ . Let S S S be a solution for c [ b , R , S ~ ] c[b,R,\widetilde{S}] c [ b , R , S ] . Then S S S is also a solution for c [ b ′ , R S , S ∩ E ( G b ′ [ X b ′ ] ) ] c[b',R_S,S \cap E(G_{b'}[X_{b'}])] c [ b ′ , R S , S ∩ E ( G b ′ [ X b ′ ])] where R S R_S R S is the reachability relation on K b ′ ∪ X b ′ K_{b'} \cup X_{b'} K b ′ ∪ X b ′ realised by G b ′ − S G_{b'} - S G b ′ − S . As these are both considered for R ′ R' R ′ and S ~ ′ \widetilde{S}' S ′ , we have c [ b , R , S ~ ] ≥ min S ~ ′ , R ′ c [ b ′ , R ′ , S ~ ′ ] c[b,R,\widetilde{S}] \ge\min_{\widetilde{S}',R'} c[b',R',\widetilde{S}'] c [ b , R , S ] ≥ min S ′ , R ′ c [ b ′ , R ′ , S ′ ] . For the other direction, consider a solution S S S for some c [ b ′ , R ′ , S ~ ′ ] c[b',R',\widetilde{S}'] c [ b ′ , R ′ , S ′ ] . Then G b − S G_b-S G b − S realises R R R and S ∩ E ( G b [ X b ] ) = S ~ S \cap E(G_b[X_b]) = \widetilde{S} S ∩ E ( G b [ X b ]) = S so it is a candidate for c [ b , R , S ~ ] c[b,R,\widetilde{S}] c [ b , R , S ] , hence c [ b , R , S ~ ] ≤ min S ~ ′ , R ′ c [ b ′ , R ′ , S ~ ′ ] c[b,R,\widetilde{S}] \le\min_{\widetilde{S}',R'} c[b',R',\widetilde{S}'] c [ b , R , S ] ≤ min S ′ , R ′ c [ b ′ , R ′ , S ′ ] .
Lemma 8 (Join node). Let b b b be a join node with children b 1 b_1 b 1 and b 2 b_2 b 2 . Then
c [ b , R , S ~ ] = min R 1 , R 2 c [ b 1 , R 1 , S ~ ] + c [ b 2 , R 2 , S ~ ] − ∣ S ~ ∣ c[b,R,\widetilde{S}] = \min_{R_1,R_2} c[b_1,R_1,\widetilde{S}] + c[b_2,R_2,\widetilde{S}] - |\widetilde{S}| c [ b , R , S ] = R 1 , R 2 min c [ b 1 , R 1 , S ] + c [ b 2 , R 2 , S ] − ∣ S ∣ Where R 1 R_1 R 1 and R 2 R_2 R 2 range over the valid reachability relations for both parts, such that the transitive closure of R 1 ∪ R 2 R_1 \cup R_2 R 1 ∪ R 2 is equal to R R R .
Proof. Remember that X b = X b 1 = X b 2 X_b = X_{b_1} = X_{b_2} X b = X b 1 = X b 2 in this case. Let S S S be an arc set of minimum size fitting the definition of c [ b , R , S ~ ] c[b,R,\widetilde{S}] c [ b , R , S ] . Let S 1 = S ∩ E ( G b 1 ) S_1 = S \cap E(G_{b_1}) S 1 = S ∩ E ( G b 1 ) and S 2 = S ∩ E ( G b 2 ) S_2 = S \cap E(G_{b_2}) S 2 = S ∩ E ( G b 2 ) . Let R 1 ′ R'_1 R 1 ′ and R 2 ′ R'_2 R 2 ′ be the reachability relations realised respectively by S 1 S_1 S 1 in G b 1 G_{b_1} G b 1 and S 2 S_2 S 2 in G b 2 G_{b_2} G b 2 . Then as R 1 ′ ∪ R 2 ′ R'_1 \cup R'_2 R 1 ′ ∪ R 2 ′ has R R R as transitive closure, we get the following inequality.
c [ b , R , S ~ ] = ∣ S ∣ = ∣ S 1 ∣ + ∣ S 2 ∣ − ∣ S ~ ∣ ≥ c [ b 1 , R 1 , S ~ ] + c [ b 2 , R 2 , S ~ ] − ∣ S ~ ∣ ≥ min R 1 , R 2 c [ b 1 , R 1 , S ~ ] + c [ b 2 , R 2 , S ~ ] − ∣ S ~ ∣ \begin{aligned}
c[b,R,\widetilde{S}] &= |S| = |S_1| + |S_2| - |\widetilde{S}| \\
&\ge c[b_1,R_1,\widetilde{S}] + c[b_2,R_2,\widetilde{S}] - |\widetilde{S}| \\
&\ge\min_{R_1,R_2} c[b_1,R_1,\widetilde{S}] + c[b_2,R_2,\widetilde{S}] - |\widetilde{S}|
\end{aligned} c [ b , R , S ] = ∣ S ∣ = ∣ S 1 ∣ + ∣ S 2 ∣ − ∣ S ∣ ≥ c [ b 1 , R 1 , S ] + c [ b 2 , R 2 , S ] − ∣ S ∣ ≥ R 1 , R 2 min c [ b 1 , R 1 , S ] + c [ b 2 , R 2 , S ] − ∣ S ∣ Conversely, let S 1 S_1 S 1 and S 2 S_2 S 2 now be the minimum sets according to the definitions of c [ b 1 , R 1 , S ~ ] c[b_1,R_1,\widetilde{S}] c [ b 1 , R 1 , S ] and c [ b 2 , R 2 , S ~ ] c[b_2,R_2,\widetilde{S}] c [ b 2 , R 2 , S ] for some R 1 R_1 R 1 and R 2 R_2 R 2 that have as transitive closure of their union R R R . Then it suffices to observe that S 1 ∪ S 2 S_1 \cup S_2 S 1 ∪ S 2 is a set of arcs of G b G_b G b realising reachability relation R R R and with ( S 1 ∪ S 2 ) ∩ E ( G b [ X b ] ) = S ~ (S_1 \cup S_2) \cap E(G_b[X_b]) = \widetilde{S} ( S 1 ∪ S 2 ) ∩ E ( G b [ X b ]) = S , and hence c [ b , R , S ~ ] ≤ ∣ S 1 ∪ S 2 ∣ = ∣ S 1 ∣ + ∣ S 2 ∣ − ∣ S ~ ∣ c[b,R,\widetilde{S}] \le|S_1 \cup S_2| = |S_1| + |S_2| - |\widetilde{S}| c [ b , R , S ] ≤ ∣ S 1 ∪ S 2 ∣ = ∣ S 1 ∣ + ∣ S 2 ∣ − ∣ S ∣ . As this holds for each such S 1 S_1 S 1 and S 2 S_2 S 2 , the second direction of the inequality and hence the lemma follows.
Finally, note that since the tree decomposition has width bounded in 2 O ( k 2 ) 2^{O(k^2)} 2 O ( k 2 ) , and since we have at most 4 k 4k 4 k terminal vertices in D ∗ D^* D ∗ , the dynamic programming algorithm runs in time 2 2 O ( k 2 ) ⋅ ∣ V ( D ∗ ) ∣ 2^{2^{O(k^2)}} \cdot|V(D^*)| 2 2 O ( k 2 ) ⋅ ∣ V ( D ∗ ) ∣ , proving Theorem 5.
Proof of the Treewidth-reduction Statement for Edge-cuts
Lemma 9 (Edge version of Lemma 2.4 of [24 ] ). Let s , t s,t s , t be two vertices in graph G G G such that the size of a minimum s s s -t t t cut is ℓ > 0 \ell> 0 ℓ > 0 . Then there is a collection K = { X 1 , … , X q } \mathcal{K} = \{X_1,\ldots,X_q\} K = { X 1 , … , X q } of sets where { s } ⊆ X i ⊆ V ( G ) ∖ { t } \{s\} \subseteq X_i \subseteq V(G) \setminus\{t\} { s } ⊆ X i ⊆ V ( G ) ∖ { t } for 1 ≤ i ≤ q 1 \le i \le q 1 ≤ i ≤ q , such that
X 1 ⊂ X 2 ⊂ ⋯ ⊂ X q X_1 \subset X_2 \subset\cdots\subset X_q X 1 ⊂ X 2 ⊂ ⋯ ⊂ X q ,
∣ δ ( X i ) ∣ = ℓ |\delta(X_i)| = \ell ∣ δ ( X i ) ∣ = ℓ for every 1 ≤ i ≤ q 1 \le i \le q 1 ≤ i ≤ q , and
Every s s s -t t t cut of size ℓ \ell ℓ is fully contained in ⋃ i = 1 q δ ( X i ) \bigcup_{i=1}^{q} \delta(X_i) ⋃ i = 1 q δ ( X i )
Proof. We construct a directed graph D D D on the vertex set of G G G by adding the two arcs ( v , u ) (v,u) ( v , u ) and ( u , v ) (u,v) ( u , v ) , both of capacity one, for every edge { u , v } \{u,v\} { u , v } of G G G . The following claim follows directly from this construction.
Claim 2.2. For every R ⊆ V ( G ) ∖ { t } R \subseteq V(G) \setminus\{t\} R ⊆ V ( G ) ∖ { t } that contains s s s , the edge-set δ G ( R ) \delta_G(R) δ G ( R ) is an s s s -t t t cut of size k k k in G G G if and only if δ D + ( R ) \delta_D^+(R) δ D + ( R ) is an s → t s \to t s → t cut of weight k k k in D D D (where δ D + ( R ) \delta_D^+(R) δ D + ( R ) is the set of all outgoing arcs of R R R ).
Since every minimal s → t s \to t s → t cut is equal to δ D + ( R ) \delta_D^+(R) δ D + ( R ) for some R R R , it suffices to find a collection X \mathcal{X} X as in the lemma, yet now on D D D for directed cuts s → t s \to t s → t cuts instead.
We run ℓ \ell ℓ rounds of the Ford-Fulkerson algorithm on D D D to find a maximum s → t s \to t s → t flow, let D ′ D' D ′ be the residual graph obtained based on this flow. Let C 1 , … , C p C_1,\ldots,C_p C 1 , … , C p be a topological ordering of the strongly connected components of D ′ D' D ′ . Since ℓ > 0 \ell> 0 ℓ > 0 there is a flow from s s s to t t t so there will also be a t t t to s s s path in D ′ D' D ′ . Since this is a maximum flow, there will be no s s s to t t t path in D ′ D' D ′ . So, if we assume t ∈ C x t \in C_x t ∈ C x and s ∈ C y s \in C_y s ∈ C y , then we must have x < y x < y x < y . For x < i ≤ y x < i \le y x < i ≤ y , we define X i : = ⋃ j = i p C j X_i := \bigcup_{j=i}^{p} C_j X i := ⋃ j = i p C j . For 1 ≤ i ≤ y − x 1 \le i \le y-x 1 ≤ i ≤ y − x , we define X i : = ⋃ j = y + 1 − i p C j X_i := \bigcup_{j=y+1-i}^{p} C_j X i := ⋃ j = y + 1 − i p C j .
Property 1 is immediate from this definition of X \mathcal{X} X . For property 2, we need to confirm that ∣ δ D + ( X i ) ∣ = ℓ |\delta_D^+(X_i)| = \ell ∣ δ D + ( X i ) ∣ = ℓ for each i i i . We know that X i X_i X i is a suffix of the topological ordering of the strongly connected components of D ′ D' D ′ , and hence has no outgoing arcs in D ′ D' D ′ . So all arcs of δ D + ( X i ) \delta_D^+(X_i) δ D + ( X i ) must have been turned into incoming arcs in D ′ D' D ′ , which happens if this arc is used by the flow. Since no flow enters X i X_i X i (it would give rise to an outgoing arc in D ′ D' D ′ ), there can be at most ℓ \ell ℓ arcs in δ D + ( X i ) \delta_D^+(X_i) δ D + ( X i ) . Furthermore note that δ D + ( X i ) \delta_D^+(X_i) δ D + ( X i ) is an s → t s \to t s → t cut and thus must have size at least ℓ \ell ℓ , hence ∣ δ D + ( X i ) ∣ = ℓ |\delta_D^+(X_i)| = \ell ∣ δ D + ( X i ) ∣ = ℓ .
To prove that property 3 is satisfied, let F F F be a minimum s → t s \to t s → t cut in D D D . Let R R R be the set of nodes reachable from s s s in D − F D-F D − F , which implies that F = δ D + ( R ) F = \delta_D^+(R) F = δ D + ( R ) . Consider an arc ( a , b ) ∈ F (a,b) \in F ( a , b ) ∈ F . Since this arc is in a minimum cut and since a maximum flow saturates all minimum cuts, we know that the arc ( b , a ) (b,a) ( b , a ) will be present in the residual graph D ′ D' D ′ . Furthermore, since there is a flow going through ( a , b ) (a,b) ( a , b ) , there must also be a flow from s s s to a a a and from b b b to t t t , and thus an a a a to s s s path and a t t t to b b b path in D ′ D' D ′ . Hence, if a ∈ C i ( a ) a \in C_{i(a)} a ∈ C i ( a ) and b ∈ C i ( b ) b \in C_{i(b)} b ∈ C i ( b ) , then x ≤ i ( b ) ≤ i ( a ) ≤ y x \le i(b) \le i(a) \le y x ≤ i ( b ) ≤ i ( a ) ≤ y . It remains to prove that a a a and b b b are in different strongly connected components of D ′ D' D ′ (i.e. i ( a ) ≠ i ( b ) i(a) \ne i(b) i ( a ) = i ( b ) ), from which it follows that ( a , b ) ∈ X i ( a ) (a,b) \in X_{i(a)} ( a , b ) ∈ X i ( a ) . Assume for a contradiction that a a a and b b b are in the same strongly connected component. Since a ∈ R a \in R a ∈ R and b ∉ R b \notin R b ∈ / R , this must mean there is an arc ( c , d ) (c,d) ( c , d ) going out of R R R in D ′ D' D ′ (so c ∈ R c \in R c ∈ R and d ∉ R d \notin R d ∈ / R ). Note that such an arc is part of F F F and thus part of a minimum cut, which means it is saturated by the flow and hence not in D ′ D' D ′ , a contradiction.
For a graph G G G and a vertex set U ⊆ V ( G ) U \subseteq V(G) U ⊆ V ( G ) , we denote by ∂ ( U ) \partial(U) ∂ ( U ) the boundary of U U U , which consists of all vertices in U U U that have a neighbour outside of U U U . Let ℓ \ell ℓ be the minimum size of an s s s -t t t cut, then we say that a s s s -t t t cut C C C has excess if ∣ C ∣ = ℓ + e |C| = \ell+ e ∣ C ∣ = ℓ + e .
Definition 2.4 (Torso). Let G G G be an undirected graph and U ⊆ V ( G ) U \subseteq V(G) U ⊆ V ( G ) . The graph torso ( G , U ) \operatorname{torso}(G,U) torso ( G , U ) has vertex set U U U and for each u , v ∈ U u,v \in U u , v ∈ U an edge { u , v } \{u,v\} { u , v } if there is a path from u u u to v v v in G G G that is internally vertex-disjoint from U U U .
Proposition 2.1 . For a graph G G G and sets C , U ⊆ V ( G ) C,U \subseteq V(G) C , U ⊆ V ( G ) , torso ( G [ U ] , C ∩ U ) \operatorname{torso}(G[U], C \cap U) torso ( G [ U ] , C ∩ U ) is a subgraph of torso ( G , C ) \operatorname{torso}(G,C) torso ( G , C ) .
We will make use of the following lemmas regarding the treewidth of torsos.
Lemma 10 ([24 Lemma 2.8] ). Let G G G be a graph and C 1 , … , C r C_1,\ldots,C_r C 1 , … , C r be subsets of V ( G ) V(G) V ( G ) and let C : = ⋃ i = 1 r C i C := \bigcup_{i=1}^{r} C_i C := ⋃ i = 1 r C i . We have tw ( torso ( G , C ) ) ≤ ∑ i = 1 r tw ( torso ( G , C i ) ) \operatorname{tw}(\operatorname{torso}(G,C)) \le\sum_{i=1}^{r} \operatorname{tw}(\operatorname{torso}(G,C_i)) tw ( torso ( G , C )) ≤ ∑ i = 1 r tw ( torso ( G , C i )) .
Lemma 11 ([24 Lemma 2.9] ). Let C ′ ⊆ V ( G ) C' \subseteq V(G) C ′ ⊆ V ( G ) be a set of vertices and let R 1 , … , R r R_1,\ldots,R_r R 1 , … , R r be components of G ∖ C ′ G \setminus C' G ∖ C ′ . For every 1 ≤ i ≤ r 1 \le i \le r 1 ≤ i ≤ r , let C i ′ ⊆ R i C'_i \subseteq R_i C i ′ ⊆ R i be subsets and let C ′ ′ : = C ′ ∪ ⋃ i = 1 r C i ′ C'' := C' \cup\bigcup_{i=1}^{r} C'_i C ′′ := C ′ ∪ ⋃ i = 1 r C i ′ . Then we have
tw ( torso ( G , C ′ ′ ) ) ≤ tw ( torso ( G , C ′ ) ) + ∑ i = 1 r max tw ( torso ( G [ R i ] , C i ′ ) ) + 1. \operatorname{tw}(\operatorname{torso}(G,C'')) \le\operatorname{tw}(\operatorname{torso}(G,C')) + \sum_{i=1}^{r} \max\operatorname{tw}(\operatorname{torso}(G[R_i],C'_i)) + 1. tw ( torso ( G , C ′′ )) ≤ tw ( torso ( G , C ′ )) + i = 1 ∑ r max tw ( torso ( G [ R i ] , C i ′ )) + 1.
Lemma 12 (Edge version of Lemma 2.11 of [24 ] ). Let s , t s,t s , t be two vertices of graph G G G and let ℓ \ell ℓ be the minimum size of an s s s -t t t cut. For some e ≥ 0 e \ge0 e ≥ 0 , let I I I be the union of all minimal s s s -t t t cuts having excess at most e e e (i.e. size at most ℓ + e \ell+ e ℓ + e ). Then there is an algorithm that runs in f ( ℓ , e ) ⋅ ( ∣ E ( G ) ∣ + ∣ V ( G ) ∣ ) f(\ell,e) \cdot(|E(G)| + |V(G)|) f ( ℓ , e ) ⋅ ( ∣ E ( G ) ∣ + ∣ V ( G ) ∣ ) time algorithm that returns a set W W W that contains the endpoints of all edges in I I I such that tw ( torso ( G , W ) ) ≤ g ( ℓ , e ) \operatorname{tw}(\operatorname{torso}(G,W)) \le g(\ell,e) tw ( torso ( G , W )) ≤ g ( ℓ , e ) (for some f ( ℓ , e ) f(\ell,e) f ( ℓ , e ) and g ( ℓ , e ) g(\ell,e) g ( ℓ , e ) such that both are 2 O ( ℓ ) 2^{O(\ell)} 2 O ( ℓ ) ).
Proof. We prove the lemma by induction on the excess e e e . Start by invoking Lemma 9 to get a collection X = { X 1 , … , X q } \mathcal{X} = \{X_1,\ldots,X_q\} X = { X 1 , … , X q } . We define S i : = N ( X i ) ∪ ∂ ( X i ) S_i := N(X_i) \cup\partial(X_i) S i := N ( X i ) ∪ ∂ ( X i ) for 1 ≤ i ≤ q 1 \le i \le q 1 ≤ i ≤ q . Additionally set X 0 = ∅ X_0 = \varnothing X 0 = ∅ , X q + 1 = V ( G ) ∖ { t } X_{q+1} = V(G) \setminus\{t\} X q + 1 = V ( G ) ∖ { t } , S 0 = { s } S_0 = \{s\} S 0 = { s } and S q + 1 : = { t } S_{q+1} := \{t\} S q + 1 := { t } . Then for 1 ≤ i ≤ q + 1 1 \le i \le q+1 1 ≤ i ≤ q + 1 let L i : = X i ∖ ( X i − 1 ∪ S i − 1 ∪ S i ) L_i := X_i \setminus(X_{i-1} \cup S_{i-1} \cup S_i) L i := X i ∖ ( X i − 1 ∪ S i − 1 ∪ S i ) . Observe that ∣ S i ∣ ≤ 2 ℓ |S_i| \le2\ell ∣ S i ∣ ≤ 2 ℓ and S i S_i S i each is a s s s -t t t separator of G G G .
Now for each 1 ≤ i ≤ q + 1 1 \le i \le q+1 1 ≤ i ≤ q + 1 and disjoint non-empty A , B ⊆ S i − 1 ∪ S i A,B \subseteq S_{i-1} \cup S_i A , B ⊆ S i − 1 ∪ S i we define G i , A , B G_{i,A,B} G i , A , B as the graph G [ L i ∪ A ∪ B ] G[L_i \cup A \cup B] G [ L i ∪ A ∪ B ] with new vertices a a a and b b b and k + 1 k+1 k + 1 subdivided edges from a a a to every vertex in A A A , and similar for b b b and B B B . This ensures that these edges are never part of a minimal a − b a-b a − b cut of size at most k k k , and hence all such cuts are in fact A − B A-B A − B cuts.
Claim 2.3. If an edge c = { x , y } c = \{x,y\} c = { x , y } with y ∈ L i y \in L_i y ∈ L i is in I I I , then there are disjoint non-empty A , B ⊆ S i − 1 ∪ S i A,B \subseteq S_{i-1} \cup S_i A , B ⊆ S i − 1 ∪ S i such that c c c is part of a minimal a − b a-b a − b cut C 2 C_2 C 2 in G i , A , B G_{i,A,B} G i , A , B of size at most k k k and excess at most e − 1 e-1 e − 1 .
Proof of Claim. As c ∈ I c \in I c ∈ I , there is a minimal s s s -t t t cut C C C of size at most k k k that contains c c c . Let C 2 : = { { a , b } ∈ C ∣ { a , b } ∩ L i ≠ ∅ } C_2 := \{\{a,b\} \in C \mid\{a,b\} \cap L_i \ne\varnothing\} C 2 := {{ a , b } ∈ C ∣ { a , b } ∩ L i = ∅ } (i.e. the edges of C C C with at least one endpoint in L i L_i L i ) and C 1 : = C ∖ C 2 C_1 := C \setminus C_2 C 1 := C ∖ C 2 . Partition S i − 1 ∪ S i S_{i-1} \cup S_i S i − 1 ∪ S i into sets A A A and B B B with vertices reachable from s s s in G − C G-C G − C and with those not reachable from s s s in G − C G-C G − C , respectively.
We first argue that A A A and B B B are non-empty. As C C C is a minimal cut, there must be an s s s -t t t path P P P in G G G that intersect C C C exclusively in c c c . Note that S i − 1 S_{i-1} S i − 1 separates s s s from y y y and S i S_i S i separates y y y from t t t . Thus the prefix from the path P P P up till x x x must intersect at least one u ∈ S i − 1 u \in S_{i-1} u ∈ S i − 1 , and since this prefix is entirely disjoint from C C C there is a s − u s-u s − u path in G − C G-C G − C , ergo u ∈ A u \in A u ∈ A . Next consider a suffix of P P P starting from y y y , which gives a y − t y-t y − t path, disjoint from C C C , which must intersect S i S_i S i . Thus there is a w ∈ S i w \in S_i w ∈ S i for which there is a w − t w-t w − t path in G − C G-C G − C . If w w w was reachable from s s s in G − C G-C G − C this would then imply that there is a s s s -t t t path in G − C G-C G − C which contradicts C C C being a s s s -t t t cut. Hence it must be the case that w w w is not reachable from s s s in G − C G-C G − C and thus w ∈ B w \in B w ∈ B .
Next, we show that C 2 C_2 C 2 is an a − b a-b a − b cut in G i , A , B G_{i,A,B} G i , A , B . For sake of a contradiction, let P P P be an a − b a-b a − b path in G i , A , B − C 2 G_{i,A,B}-C_2 G i , A , B − C 2 . By construction of G i , A , B G_{i,A,B} G i , A , B this path contains a minimal A − B A-B A − B subpath, meaning a subpath of which the interior is contained in L i L_i L i . This subpath must clearly exist in G − C 2 G-C_2 G − C 2 and thus by definition of C 2 C_2 C 2 also in G − C G-C G − C . However, by definition of A A A there exists an s − A s-A s − A path in G − C G-C G − C , which could consequently be extended with this A − B A-B A − B subpath, which results in an s − B s-B s − B path in G − C G-C G − C , contradicting the definition of B B B . Hence C 2 C_2 C 2 must be an a − b a-b a − b cut.
We continue to prove that C 2 C_2 C 2 is a minimal a − b a-b a − b cut in G i , A , B G_{i,A,B} G i , A , B . We again use a proof by contradiction. Assume that C 2 ∖ { { p , q } } C_2 \setminus\{\{p,q\}\} C 2 ∖ {{ p , q }} is still an a − b a-b a − b cut for some { p , q } ∈ C 2 \{p,q\} \in C_2 { p , q } ∈ C 2 . Since C C C is a minimal s − t s-t s − t cut of G G G , there must exist a s − t s-t s − t path P P P in G G G of which only intersections C C C in { p , q } \{p,q\} { p , q } . Assume without loss of generality that q ∈ L i q \in L_i q ∈ L i . Then for similar reasons as above P P P has to intersect both A A A and B B B . Let P ′ P' P ′ be a minimal A − B A-B A − B subpath of P P P . Then by construction all internal vertices of P ′ P' P ′ belong to L i L_i L i , hence P ′ P' P ′ is a A − B A-B A − B path in G i , A , B − ( C 2 ∖ { { p , q } } ) G_{i,A,B}-(C_2 \setminus\{\{p,q\}\}) G i , A , B − ( C 2 ∖ {{ p , q }}) , which can trivially be extended to an a − b a-b a − b path, contradicting that C 2 ∖ { { p , q } } C_2 \setminus\{\{p,q\}\} C 2 ∖ {{ p , q }} is an a − b a-b a − b cut.
It remains to show that C 2 C_2 C 2 has excess at most e − 1 e-1 e − 1 (with regards to being an a − b a-b a − b cut in G i , A , B G_{i,A,B} G i , A , B ). Let C 2 ′ C'_2 C 2 ′ be a minimum a − b a-b a − b cut in G i , A , B G_{i,A,B} G i , A , B . We claim that C ′ : = C 1 ∪ C 2 ′ C' := C_1 \cup C'_2 C ′ := C 1 ∪ C 2 ′ is an s − t s-t s − t cut in G G G . If this is not the case, then there must be a s − t s-t s − t path P P P in G − C ′ G-C' G − C ′ . This path must intersect C 2 ∖ C 2 ′ C_2 \setminus C'_2 C 2 ∖ C 2 ′ and thus must visit L i L_i L i . We must then again have that P P P visits both A A A and B B B . Take a minimal A − B A-B A − B subpath P ′ P' P ′ of P P P , which by construction is an A − B A-B A − B path in G i , A , B − C 2 ′ G_{i,A,B}-C'_2 G i , A , B − C 2 ′ and can be trivially extended to an a − b a-b a − b path. This contradicts C 2 ′ C'_2 C 2 ′ being an a − b a-b a − b cut, hence C ′ C' C ′ must be an s − t s-t s − t cut. Since C ′ C' C ′ contains an edge with an endpoint in L i L_i L i it cannot be of minimum size, so ∣ C ′ ∣ > ℓ |C'| > \ell ∣ C ′ ∣ > ℓ . Putting this together gives us that ∣ C 2 ∣ − ∣ C 2 ′ ∣ = ( ∣ C 1 ∣ + ∣ C 2 ∣ ) − ( ∣ C 1 ∣ + ∣ C 2 ′ ∣ ) = ∣ C ∣ − ∣ C ′ ∣ < k − ℓ = e |C_2| - |C'_2| = (|C_1| + |C_2|) - (|C_1| + |C'_2|) = |C| - |C'| < k-\ell= e ∣ C 2 ∣ − ∣ C 2 ′ ∣ = ( ∣ C 1 ∣ + ∣ C 2 ∣ ) − ( ∣ C 1 ∣ + ∣ C 2 ′ ∣ ) = ∣ C ∣ − ∣ C ′ ∣ < k − ℓ = e . This concludes the proof of the claim.
Having proven the claim, we can now present our algorithm for computing such a set C ′ C' C ′ . Remember that we use induction on the excess e e e . First, we define W 0 : = ⋃ i = 1 q S i W_0 := \bigcup_{i=1}^{q} S_i W 0 := ⋃ i = 1 q S i . In case e = 0 e=0 e = 0 we set W = W 0 W = W_0 W = W 0 and we are done. Note that we can define a tree decomposition of torso( G , W 0 ) (G,W_0) ( G , W 0 ) of width at most 4 ℓ 4\ell 4 ℓ by taking as bags the sets S i ∪ S i + 1 S_i \cup S_{i+1} S i ∪ S i + 1 for 1 ≤ i < q 1 \le i < q 1 ≤ i < q . By Lemma 9 this set contains all endpoints of minimum s − t s-t s − t cuts in G G G . If e > 0 e>0 e > 0 , then for every 1 ≤ i ≤ q + 1 1 \le i \le q+1 1 ≤ i ≤ q + 1 and subsets A , B A,B A , B of S i − 1 ∪ S i S_{i-1} \cup S_i S i − 1 ∪ S i , we use the induction hypothesis to compute a set W i , A , B W_{i,A,B} W i , A , B containing all minimal a − b a-b a − b cuts of excess at most e − 1 e-1 e − 1 in G i , A , B G_{i,A,B} G i , A , B . We set W = W 0 ∪ ⋃ W i , A , B ′ W = W_0 \cup\bigcup W'_{i,A,B} W = W 0 ∪ ⋃ W i , A , B ′ where W i , A , B ′ : = W i , A , B ∖ ( A ∪ B ) W'_{i,A,B} := W_{i,A,B} \setminus(A \cup B) W i , A , B ′ := W i , A , B ∖ ( A ∪ B ) (note that A ⊆ C 0 A \subseteq C_0 A ⊆ C 0 already). By Claim 2.3 , W W W contains the endpoints of all edges in minimal s − t s-t s − t cuts of size at most k k k and excess at most e e e .
Next we want to bound the treewidth of torso( G , W ) (G,W) ( G , W ) . Observe that by the induction hypothesis tw ( torso ( G i , A , B , W i , A , B ) ) ≤ g ( ℓ , e − 1 ) \operatorname{tw}(\operatorname{torso}(G_{i,A,B},W_{i,A,B})) \le g(\ell,e-1) tw ( torso ( G i , A , B , W i , A , B )) ≤ g ( ℓ , e − 1 ) and by construction W i , A , B ′ ⊆ L i W'_{i,A,B} \subseteq L_i W i , A , B ′ ⊆ L i . Also, torso ( G i , A , B [ L i ] , W i , A , B ′ ) \operatorname{torso}(G_{i,A,B}[L_i],W'_{i,A,B}) torso ( G i , A , B [ L i ] , W i , A , B ′ ) is a subgraph of torso ( G i , A , B , W i , A , B ) \operatorname{torso}(G_{i,A,B},W_{i,A,B}) torso ( G i , A , B , W i , A , B ) by Proposition 2.1, and thus tw ( torso ( G [ L i ] , W i , A , B ′ ) ) ≤ tw ( torso ( G i , A , B , W i , A , B ) ) \operatorname{tw}(\operatorname{torso}(G[L_i],W'_{i,A,B})) \le\operatorname{tw}(\operatorname{torso}(G_{i,A,B},W_{i,A,B})) tw ( torso ( G [ L i ] , W i , A , B ′ )) ≤ tw ( torso ( G i , A , B , W i , A , B )) . Consider the set W i ′ : = ⋃ W i , A , B ′ W'_i := \bigcup W'_{i,A,B} W i ′ := ⋃ W i , A , B ′ . Then by using Lemma 10, noting that for any i i i we find at most 3 4 ℓ 3^{4\ell} 3 4 ℓ sets A , B A,B A , B , we get tw ( torso ( G [ L i ] , W i ′ ) ) ≤ 3 4 ℓ ⋅ g ( ℓ , e − 1 ) \operatorname{tw}(\operatorname{torso}(G[L_i],W'_i)) \le3^{4\ell} \cdot g(\ell,e-1) tw ( torso ( G [ L i ] , W i ′ )) ≤ 3 4 ℓ ⋅ g ( ℓ , e − 1 ) . Finally, by Lemma 11 we can conclude that tw ( torso ( G , W ) ) ≤ tw ( torso ( G , W 0 ) ) + max i tw ( torso ( G [ L i ] , W i ′ ) ) + 1 ≤ 4 ℓ + 3 4 ℓ ⋅ g ( ℓ , e − 1 ) + 1 \operatorname{tw}(\operatorname{torso}(G,W)) \le\operatorname{tw}(\operatorname{torso}(G,W_0)) + \max_i \operatorname{tw}(\operatorname{torso}(G[L_i],W'_i)) + 1 \le4\ell+ 3^{4\ell} \cdot g(\ell,e-1) + 1 tw ( torso ( G , W )) ≤ tw ( torso ( G , W 0 )) + max i tw ( torso ( G [ L i ] , W i ′ )) + 1 ≤ 4 ℓ + 3 4 ℓ ⋅ g ( ℓ , e − 1 ) + 1 . This means we can choose g g g such that g ( ℓ , e ) = 2 O ( e ℓ ) g(\ell,e)=2^{O(e\ell)} g ( ℓ , e ) = 2 O ( e ℓ ) .
The running time remains essentially unchanged compared to the original proof, and hence we refer to [24 ] for this.
@page 13/29 starts_mid=0 ends_mid=0
Theorem 1. Let G G G be a graph, T ⊆ V ( G ) T \subseteq V(G) T ⊆ V ( G ) and k k k an integer. Let I I I be the set of all edges of G G G that are part of a minimal s − t s-t s − t cut of size at most k k k for some s , t ∈ T s,t \in T s , t ∈ T . There is a f ( k , ∣ T ∣ ) ⋅ ( ∣ E ( G ) ∣ + ∣ V ( G ) ∣ ) f(k, |T|) \cdot(|E(G)| + |V(G)|) f ( k , ∣ T ∣ ) ⋅ ( ∣ E ( G ) ∣ + ∣ V ( G ) ∣ ) time algorithm that computes a set W ⊆ V ( G ) W \subseteq V(G) W ⊆ V ( G ) such that W W W contains T T T and all endpoints of edges in I I I , and tw ( torso ( G , W ) ) ≤ h ( k , ∣ T ∣ ) \operatorname{tw}(\operatorname{torso}(G,W)) \leq h(k, |T|) tw ( torso ( G , W )) ≤ h ( k , ∣ T ∣ ) for some functions f ( k , ∣ T ∣ ) f(k, |T|) f ( k , ∣ T ∣ ) and h ( k , ∣ T ∣ ) h(k, |T|) h ( k , ∣ T ∣ ) that both are ∣ T ∣ 2 2 O ( k 2 ) |T|2^{2^{O(k^2)}} ∣ T ∣ 2 2 O ( k 2 ) .
Proof. Consider each distinct pair s , t ∈ T s,t \in T s , t ∈ T and compute a set W s , t W_{s,t} W s , t containing all minimal s s s -t t t cuts of size at most k k k using Lemma 12 and adding s s s and t t t to it (in case there is no s s s -t t t cut of size at most k k k , W s , t = { s , t } W_{s,t} = \{s,t\} W s , t = { s , t } ). Note that adding s s s and t t t to W s , t W_{s,t} W s , t increases the treewidth of the torso induced by it by at most two. Let W W W be the union of all these sets W s , t W_{s,t} W s , t , then the torso of W W W in G G G has by Lemma 10 treewidth bounded by ∣ T ∣ 2 2 O ( k 2 ) |T|2^{2^{O(k^2)}} ∣ T ∣ 2 2 O ( k 2 ) .
Reducing CMSO model-checking on Eulerian digraphs to arc-unbreakable instances
The goal of this section is to prove Theorem 9.
Theorem 9. Let x ∈ { m i n - E d g e , m a x - E d g e , e q - E d g e } x \in\{\mathit{min\text{-}Edge}, \mathit{max\text{-}Edge}, \mathit{eq\text{-}Edge}\} x ∈ { min - Edge , max - Edge , eq - Edge } , let ψ ~ \tilde{\psi} ψ ~ be a C M S O 2 \mathrm{CMSO}_2 CMSO 2 sentence and let c ~ : N → N \tilde{c}:\mathbb{N} \to\mathbb{N} c ~ : N → N . There exists a s ~ : N → N \tilde{s}:\mathbb{N} \to\mathbb{N} s ~ : N → N such that if x x x -C M S O 2 [ ψ ~ ] \mathrm{CMSO}_2[\tilde{\psi}] CMSO 2 [ ψ ~ ] parameterized by k k k is FPT on ( s ~ ( k ) , c ~ ( k ) ) (\tilde{s}(k),\tilde{c}(k)) ( s ~ ( k ) , c ~ ( k )) -edge-unbreakable Eulerian structures, then x x x -C M S O 2 [ ψ ~ ] \mathrm{CMSO}_2[\tilde{\psi}] CMSO 2 [ ψ ~ ] parameterized by k k k is (nonuniformly) FPT on general Eulerian structures.
We follow the general approach of Lokshtanov, Ramanujan, Saurabh and Zehavi [LRSZ18] where possible. That being said, in [LRSZ18] the concept of boundaried graphs plays a fundamental role. Roughly speaking, this is a graph where a set of vertices is marked as the boundary, mainly with the purpose of being able to ‘glue’ two compatible boundaried graphs to each other. However, in our setting of Eulerian digraphs and arc-cuts, it is more suitable to consider a set of arcs to be the boundary instead. One fundamental result on traditional boundaried graphs is that when considering those graphs with a fixed, finite boundary size, there is only a finite amount of different behaviours they can exhibit with regards to a fixed C M S O 2 \mathrm{CMSO}_2 CMSO 2 property. The goal of the first half of this section is to prove that the same holds for arc-boundaried graphs. We achieve this by showing that the arc-boundaried setting can be reduced to the vertex-boundaried setting, which allows us to lift this finite state property to arc-boundaried graphs. Specifically, we prove this for (arc-boundaried) structures, which are a generalisation of digraphs useful when modelling C M S O 2 \mathrm{CMSO}_2 CMSO 2 properties.
After showing that these structures have finite state, we can prove Theorem 9. This is done by recursion on the size of the structure. If the structure is small (with regards to s ~ ( k ) \tilde{s}(k) s ~ ( k ) ) then it is trivially unbreakable. Otherwise, a large yet breakable instance can be partitioned into two large parts separated by a small cut. We can take one of these parts in isolation, regard it as an arc-boundaried structure, and recursively find for it a small representative (meaning an arc-boundaried structure that behaves identically with regards to our C M S O 2 \mathrm{CMSO}_2 CMSO 2 property), which is guaranteed to exist by the finite state property. We then substitute in the original instance the chosen part by its representative to obtain an equivalent instance of smaller size, on which we can recurse as long as the structure remains breakable. We ensure that the instance remains Eulerian throughout by picking a representative that is internally balanced and has the same imbalance along the boundary as the part of the graph that it replaces.
The framework
Arc-boundaried Digraphs. We start by introducing all the necessary definitions.
Definition 3.1. A digraph with half-arcs D D D is a tuple ( V ( D ) , E ( D ) , H ( D ) ) (V(D), E(D), H(D)) ( V ( D ) , E ( D ) , H ( D )) where ( V ( D ) , E ( D ) ) (V(D), E(D)) ( V ( D ) , E ( D )) describes a directed graph and H ( D ) H(D) H ( D ) is a relation on V ( D ) ∪ { ⊥ } V(D) \cup\{\perp\} V ( D ) ∪ { ⊥ } where for each ( x , y ) ∈ H ( D ) (x,y) \in H(D) ( x , y ) ∈ H ( D ) , exactly one of x x x or y y y is in V ( D ) V(D) V ( D ) and the other is equal to ⊥ \perp ⊥ . The elements of H ( D ) H(D) H ( D ) are called half-arcs.
In a digraph D D D with half-arcs, the in-degree d D − ( v ) d_D^-(v) d D − ( v ) (out-degree d D + ( v ) d_D^+(v) d D + ( v ) ) of a vertex v v v is equal to the number of elements of E ( D ) ∪ H ( D ) E(D) \cup H(D) E ( D ) ∪ H ( D ) for which it is the head (tail). For these graphs, we still say it is balanced if d D − ( v ) = d D + ( v ) d_D^-(v) = d_D^+(v) d D − ( v ) = d D + ( v ) for all v ∈ V ( D ) v \in V(D) v ∈ V ( D ) . We assign to each half-arc a type of either hd or tl based on whether its tail or head is, respectively. For a digraph with half-arcs D D D and U ⊆ V ( D ) U \subseteq V(D) U ⊆ V ( D ) we define the induced subgraph D [ U ] D[U] D [ U ] to have vertex set U U U , as arcs all edges of D D D with both endpoints in U U U and as half-arcs those in H ( D ) H(D) H ( D ) incident to U U U , as well as all the arcs in δ ( A ) \delta(A) δ ( A ) that are turned into half-arcs by setting occurrences of vertices outside of U U U to ⊥ \bot ⊥ .
We continue by introducing the concept of arc-boundaries, which motivates why we are interested in half-arcs.
Definition 3.2. An arc-boundaried digraph is a digraph with half-arcs D D D together with an injective labelling λ : H ( D ) → N \lambda: H(D) \to\mathbb{N} λ : H ( D ) → N . We refer to H ( D ) H(D) H ( D ) as the boundary and say that the label set L ( ( D , λ ) ) L((D, \lambda)) L (( D , λ )) of the arc-boundaried digraph is the set { λ ( e ) ∣ e ∈ H ( D ) } \{\lambda(e) \mid e \in H(D)\} { λ ( e ) ∣ e ∈ H ( D )} .
When the labelling is clear from the context, we may sometimes refer to the arc-boundaried graph ( D , λ ) (D, \lambda) ( D , λ ) as simply D D D . We say that two arc-boundaried graphs ( D 1 , λ 1 ) (D_1, \lambda_1) ( D 1 , λ 1 ) and ( D 2 , λ 2 ) (D_2, \lambda_2) ( D 2 , λ 2 ) are compatible if L ( D 1 ) = L ( D 2 ) L(D_1) = L(D_2) L ( D 1 ) = L ( D 2 ) and for each i ∈ L ( D 1 ) i \in L(D_1) i ∈ L ( D 1 ) , the half-arcs λ 1 − 1 ( i ) \lambda_1^{-1}(i) λ 1 − 1 ( i ) and λ 2 − 1 ( i ) \lambda_2^{-1}(i) λ 2 − 1 ( i ) have distinct types. For two half-arcs e 1 e_1 e 1 and e 2 e_2 e 2 with distinct types (i.e. one is hd and the other is tl), we define e 1 ⊕ e 2 = ( u 1 , v 2 ) e_1 \oplus e_2 = (u_1, v_2) e 1 ⊕ e 2 = ( u 1 , v 2 ) if e 1 = ( u 1 , ⊥ ) e_1 = (u_1, \bot) e 1 = ( u 1 , ⊥ ) and e 2 = ( ⊥ , v 2 ) e_2 = (\bot, v_2) e 2 = ( ⊥ , v 2 ) and e 1 ⊕ e 2 = ( u 2 , v 1 ) e_1 \oplus e_2 = (u_2, v_1) e 1 ⊕ e 2 = ( u 2 , v 1 ) if e 1 = ( ⊥ , v 1 ) e_1 = (\bot, v_1) e 1 = ( ⊥ , v 1 ) and e 2 = ( u 2 , ⊥ ) e_2 = (u_2, \bot) e 2 = ( u 2 , ⊥ ) .
Definition 3.3. Let D 1 D_1 D 1 and D 2 D_2 D 2 be two compatible arc-boundaried digraphs. Then D 1 ⊕ D 2 D_1 \oplus D_2 D 1 ⊕ D 2 is the digraph (not-boundaried and without half-arcs) obtained by taking the disjoint union of the digraphs of D 1 D_1 D 1 and D 2 D_2 D 2 and for each i ∈ L ( D 1 ) i \in L(D_1) i ∈ L ( D 1 ) , replacing the half-arcs λ 1 − 1 ( i ) \lambda_1^{-1}(i) λ 1 − 1 ( i ) and λ 2 − 1 ( i ) \lambda_2^{-1}(i) λ 2 − 1 ( i ) by λ 1 − 1 ( i ) ⊕ λ 2 − 1 ( i ) \lambda_1^{-1}(i) \oplus\lambda_2^{-1}(i) λ 1 − 1 ( i ) ⊕ λ 2 − 1 ( i ) .
To help with notation, when gluing two arc-boundaried digraphs D 1 D_1 D 1 and D 2 D_2 D 2 we define a mapping h D 1 , D 2 h_{D_1,D_2} h D 1 , D 2 that maps each arc or half-arc of D 1 D_1 D 1 or D 2 D_2 D 2 to the arc in D 1 ⊕ D 2 D_1 \oplus D_2 D 1 ⊕ D 2 that it gives rise to. Hence for e ∈ E ( D 1 ) ∪ E ( D 2 ) e \in E(D_1) \cup E(D_2) e ∈ E ( D 1 ) ∪ E ( D 2 ) we get h D 1 , D 2 ( e ) = e h_{D_1,D_2}(e) = e h D 1 , D 2 ( e ) = e and for i ∈ L ( D 1 ) i \in L(D_1) i ∈ L ( D 1 ) we get h D 1 , D 2 ( λ 1 − 1 ( i ) ) = h D 1 ⊕ D 2 ( λ 2 − 1 ( i ) ) = λ 1 − 1 ( i ) ⊕ λ 2 − 1 ( i ) h_{D_1,D_2}(\lambda_1^{-1}(i)) = h_{D_1 \oplus D_2}(\lambda_2^{-1}(i)) = \lambda_1^{-1}(i) \oplus\lambda_2^{-1}(i) h D 1 , D 2 ( λ 1 − 1 ( i )) = h D 1 ⊕ D 2 ( λ 2 − 1 ( i )) = λ 1 − 1 ( i ) ⊕ λ 2 − 1 ( i ) . The following observation will be pivotal for guaranteeing that the reduced instance in Theorem 9 is Eulerian.
Observation 13. Let D 1 D_1 D 1 and D 2 D_2 D 2 be two compatible arc-boundaried digraphs. Then D 1 ⊕ D 2 D_1 \oplus D_2 D 1 ⊕ D 2 is balanced if and only if D 1 D_1 D 1 and D 2 D_2 D 2 are balanced.
Structures and Properties. Next, we generalise the notion of arc-boundaried digraphs to arc-boundaried structures. First, we introduce the standard notion of a structure, following the exposition in [LRSZ18].
Definition 3.4. A structure α \alpha α is a tuple with as first element a (directed) graph denoted by D α D_\alpha D α , and each remaining element is either a subset of V ( D ) V(D) V ( D ) , a subset of E ( D ) E(D) E ( D ) , a vertex in V ( D ) V(D) V ( D ) or an edge in E ( D ) E(D) E ( D ) . The arity of the structure is the number of elements in the tuple.
Given a structure α \alpha α of arity p p p and a i ∈ [ p ] i \in[p] i ∈ [ p ] , we let α [ i ] \alpha[i] α [ i ] refer to i’th element in the tuple α \alpha α and hence α [ i ] = D α \alpha[i] = D_\alpha α [ i ] = D α . When S S S is either a single vertex or edge, or a vertex or edge set, then we can append S S S to α \alpha α , denoted by α ⋄ S \alpha\diamond S α ⋄ S , to obtain a new structure of arity p + 1 p+1 p + 1 such that ( α ⋄ S ) [ p + 1 ] = S (\alpha\diamond S)[p+1] = S ( α ⋄ S ) [ p + 1 ] = S and for all i ∈ [ p ] i \in[p] i ∈ [ p ] we have ( α ⋄ S ) [ i ] = α [ i ] (\alpha\diamond S)[i] = \alpha[i] ( α ⋄ S ) [ i ] = α [ i ] . We now define the type of a structure.
Definition 3.5. Let α \alpha α be a structure of arity p p p . The type of α \alpha α , denoted by type ( α ) (\alpha) ( α ) , is a tuple of arity p p p such that type ( α ) [ 1 ] = g r a p h (\alpha)[1] = \mathrm{graph} ( α ) [ 1 ] = graph and for every i ∈ { 2 , 3 , … , p } i \in\{2, 3, \ldots, p\} i ∈ { 2 , 3 , … , p } , define
type ( α ) [ i ] = { vertex , if α [ i ] ∈ V ( D α ) , edge , if α [ i ] ∈ E ( D α ) , vertex set , if α [ i ] ⊆ V ( D α ) , edge set , if α [ i ] ⊆ E ( D α ) . \operatorname{type}(\alpha)[i] =
\begin{cases}
\text{vertex}, & \text{if } \alpha[i] \in V(D_\alpha),\\
\text{edge}, & \text{if } \alpha[i] \in E(D_\alpha),\\
\text{vertex set}, & \text{if } \alpha[i] \subseteq V(D_\alpha),\\
\text{edge set}, & \text{if } \alpha[i] \subseteq E(D_\alpha).
\end{cases} type ( α ) [ i ] = ⎩ ⎨ ⎧ vertex , edge , vertex set , edge set , if α [ i ] ∈ V ( D α ) , if α [ i ] ∈ E ( D α ) , if α [ i ] ⊆ V ( D α ) , if α [ i ] ⊆ E ( D α ) .
Definition 3.6. A property is a function from the set of all structures to { t r u e , f a l s e } \{\mathrm{true}, \mathrm{false}\} { true , false } .
Counting Monadic Second Order Logic (CMSO2 _2 2 ) provides a syntax to describe properties on graphs. Its syntax includes the standard logical connectives ¬ \neg ¬ , ∧ \land ∧ , ∨ \lor ∨ and ⟹ \Longrightarrow ⟹ . It also includes the following atomic formulas.
u ∈ X u \in X u ∈ X where v v v is a vertex (edge) and V V V is a vertex set (edge set).
tail ( a , v ) \operatorname{tail}(a,v) tail ( a , v ) where a a a is an edge variable and v v v is a vertex variable. It holds if and only if v v v is the tail of a a a .
head ( a , v ) \operatorname{head}(a,v) head ( a , v ) where a a a is an edge variable and v v v is a vertex variable. It holds if and only if v v v is the head of a a a .
u = v u = v u = v for any two variables u u u and v v v of the same type.
card q , r ( X ) = t r u e \operatorname{card}_{q,r}(X) = \mathrm{true} card q , r ( X ) = true where X X X is a set variable and q q q and r r r are integers. It holds if and only if
∣ X ∣ ≡ q ( m o d r ) |X| \equiv q \pmod r ∣ X ∣ ≡ q ( mod r )
Finally, we can use existential and universal quantifiers over vertices, edges and vertex and edge sets. For example, if ψ \psi ψ is a sentence with a free vertex variable v v v , then ∀ v ∈ V : ψ ( v ) \forall v \in V : \psi(v) ∀ v ∈ V : ψ ( v ) is a CMSO2 _2 2 sentence that is true if and only if ψ \psi ψ holds when substituting v v v by each vertex in the graph D D D to which the formula is applied. We remark that in the context of undirected graphs the predicates for tail and head are usually replaced by an incidence predicate instead.
A CMSO2 _2 2 -sentence ψ \psi ψ can contain several free variables. Each free variable x x x has a rank r x r_x r x associated with it such that r x r_x r x is an integer greater than 1. Evaluating a CMSO2 _2 2 -formula on a structure α \alpha α involves instantiating the free variables of ψ \psi ψ by the elements in the tuple α \alpha α . We say that a structure α \alpha α matches a CMSO2 _2 2 -formula ψ \psi ψ if the arity of α \alpha α is at least max r x \max r_x max r x and for each free variable x x x the type of x x x in the CMSO2 _2 2 -sentence corresponds with type ( α ) [ r x ] \operatorname{type}(\alpha)[r_x] type ( α ) [ r x ] . Finally, each CMSO2 _2 2 -sentence ψ \psi ψ naturally defines a property σ ψ \sigma_\psi σ ψ on structures by mapping structures that do not match it to false, and evaluating ψ \psi ψ on the structure otherwise. CMSO2 [ ψ ] _2[\psi] 2 [ ψ ] describes the decision problem where, given an input structure α \alpha α , one needs to decide whether σ ψ ( α ) \sigma_\psi(\alpha) σ ψ ( α ) is true.
Arc-boundaried Structures. Now that we have defined the standard notion of structures, we can combine it with our concept of arc-boundaried digraphs. Intuitively, one should consider arc-boundaried structures as a means to allow us to split and glue structures, similar as to how an arc-boundaried digraph allows us to split and glue digraphs. We now give the formal definitions.
Definition 3.7. An arc-boundaried structure α \alpha α is a tuple with as first element an arc-boundaried digraph denoted by D α D_\alpha D α , and each remaining element is either a subset of V ( D ) V(D) V ( D ) , a subset of E ( D ) ∪ H ( D ) E(D) \cup H(D) E ( D ) ∪ H ( D ) , a vertex in V ( D ) V(D) V ( D ) , an element in E ( D ) ∪ H ( D ) E(D) \cup H(D) E ( D ) ∪ H ( D ) , or the symbol ⋆ \star ⋆ . The arity of the arc-boundaried structure is the number of elements in the tuple.
Definition 3.8. Let α \alpha α be an arc-boundaried structure of arity p p p . The type of α \alpha α , denoted by type ( α ) \operatorname{type}(\alpha) type ( α ) , is a tuple of arity p p p such that type ( α ) [ 1 ] = arc-boundaried digraph \operatorname{type}(\alpha)[1] = \text{arc-boundaried digraph} type ( α ) [ 1 ] = arc-boundaried digraph and for every i ∈ { 2 , 3 , … , p } i \in\{2,3,\ldots,p\} i ∈ { 2 , 3 , … , p } , define
type ( α ) [ i ] = { vertex , if α [ i ] ∈ V ( D α ) , edge , if α [ i ] ∈ E ( D α ) ∪ H ( D α ) , vertex set , if α [ i ] ⊆ V ( D α ) , edge set , if α [ i ] ⊆ E ( D α ) ∪ H ( D α ) , ⋆ , otherwise . \operatorname{type}(\alpha)[i] =
\begin{cases}
\text{vertex}, & \text{if } \alpha[i] \in V(D_\alpha),\\
\text{edge}, & \text{if } \alpha[i] \in E(D_\alpha) \cup H(D_\alpha),\\
\text{vertex set}, & \text{if } \alpha[i] \subseteq V(D_\alpha),\\
\text{edge set}, & \text{if } \alpha[i] \subseteq E(D_\alpha) \cup H(D_\alpha),\\
\star, & \text{otherwise}.
\end{cases} type ( α ) [ i ] = ⎩ ⎨ ⎧ vertex , edge , vertex set , edge set , ⋆ , if α [ i ] ∈ V ( D α ) , if α [ i ] ∈ E ( D α ) ∪ H ( D α ) , if α [ i ] ⊆ V ( D α ) , if α [ i ] ⊆ E ( D α ) ∪ H ( D α ) , otherwise .
Definition 3.9 (Compatibility). Two arc-boundaried structures α \alpha α and β \beta β are compatible, denoted by α ∼ c β \alpha\sim_c \beta α ∼ c β , if
α \alpha α and β \beta β have the same arity p p p ,
D α D_\alpha D α and D β D_\beta D β are compatible,
for every i ∈ { 2 , … , p } i \in\{2,\ldots,p\} i ∈ { 2 , … , p } , one of the following conditions holds
type ( α ) [ i ] = type ( β ) [ i ] ∉ { ⋆ , vertex } \operatorname{type}(\alpha)[i] = \operatorname{type}(\beta)[i] \notin\{\star,\text{vertex}\} type ( α ) [ i ] = type ( β ) [ i ] ∈ / { ⋆ , vertex } ;
type ( α ) [ i ] ∈ { vertex , edge } \operatorname{type}(\alpha)[i] \in\{\text{vertex},\text{edge}\} type ( α ) [ i ] ∈ { vertex , edge } and type ( β ) [ i ] = ⋆ \operatorname{type}(\beta)[i] = \star type ( β ) [ i ] = ⋆ ;
type ( β ) [ i ] ∈ { vertex , edge } \operatorname{type}(\beta)[i] \in\{\text{vertex},\text{edge}\} type ( β ) [ i ] ∈ { vertex , edge } and type ( α ) [ i ] = ⋆ \operatorname{type}(\alpha)[i] = \star type ( α ) [ i ] = ⋆ .
for every i ∈ { 2 , … , p } i \in\{2,\ldots,p\} i ∈ { 2 , … , p } such that both α [ i ] \alpha[i] α [ i ] and β [ i ] \beta[i] β [ i ] are edges, α [ i ] ∈ H ( D α ) \alpha[i] \in H(D_\alpha) α [ i ] ∈ H ( D α ) , β [ i ] ∈ H ( D β ) \beta[i] \in H(D_\beta) β [ i ] ∈ H ( D β ) and λ α ( α [ i ] ) = λ β ( β [ i ] ) \lambda_\alpha(\alpha[i]) = \lambda_\beta(\beta[i]) λ α ( α [ i ]) = λ β ( β [ i ])
Compatibility of arc-boundaried structures captures when two such structures can be combined to form a single structure. This gluing operation is now defined.
Definition 3.10 (Gluing by ⊕ \oplus ⊕ ). Given two compatible arc-boundaried structures α \alpha α and β \beta β of arity p p p , the operation α ⊕ β \alpha\oplus\beta α ⊕ β is defined as follows.
α ⊕ β \alpha\oplus\beta α ⊕ β is a structure γ \gamma γ of arity p p p .
D γ = D α ⊕ D β D_\gamma= D_\alpha\oplus D_\beta D γ = D α ⊕ D β .
For every i ∈ [ 2 , … , p ] i \in[2,\ldots,p] i ∈ [ 2 , … , p ] :
if α [ i ] \alpha[i] α [ i ] and β [ i ] \beta[i] β [ i ] are vertex sets, γ [ i ] = α [ i ] ∪ β [ i ] \gamma[i] = \alpha[i] \cup\beta[i] γ [ i ] = α [ i ] ∪ β [ i ] ;
if α [ i ] \alpha[i] α [ i ] and β [ i ] \beta[i] β [ i ] are edge sets, γ [ i ] = { h D α , D β ( e ) ∣ e ∈ α [ i ] ∪ β [ i ] } \gamma[i] = \{h_{D_\alpha,D_\beta}(e) \mid e \in\alpha[i] \cup\beta[i]\} γ [ i ] = { h D α , D β ( e ) ∣ e ∈ α [ i ] ∪ β [ i ]} ;
if α [ i ] \alpha[i] α [ i ] and β [ i ] \beta[i] β [ i ] are edges, γ [ i ] = α [ i ] ⊕ β [ i ] \gamma[i] = \alpha[i] \oplus\beta[i] γ [ i ] = α [ i ] ⊕ β [ i ] ;
if α [ i ] = ⋆ \alpha[i] = \star α [ i ] = ⋆ , γ [ i ] = β [ i ] \gamma[i] = \beta[i] γ [ i ] = β [ i ] if β [ i ] \beta[i] β [ i ] is a vertex and γ [ i ] = h D α , D β ( β [ i ] ) \gamma[i] = h_{D_\alpha,D_\beta}(\beta[i]) γ [ i ] = h D α , D β ( β [ i ]) if it is an edge
– if β [ i ] = ⋆ \beta[i] = \star β [ i ] = ⋆ , γ [ i ] = α [ i ] \gamma[i] = \alpha[i] γ [ i ] = α [ i ] if α [ i ] \alpha[i] α [ i ] is a vertex and γ [ i ] = h D α , D β ( α [ i ] ) \gamma[i] = h_{D_\alpha,D_\beta}(\alpha[i]) γ [ i ] = h D α , D β ( α [ i ]) if it is an edge
We say that an (arc-boundaried) structure α \alpha α is Eulerian if D α D_\alpha D α is balanced. Let p ∈ N p \in\mathbb{N} p ∈ N and I ⊆ N I \subseteq\mathbb{N} I ⊆ N , we then denote with A ⊆ I p \mathcal{A}^{p}_{\subseteq I} A ⊆ I p the set of all arc-boundaried structures of arity p p p and for which the arc-boundaried digraph has as label set a subset of I I I . In a similar vein, we let B ⊆ I p \mathcal{B}^{p}_{\subseteq I} B ⊆ I p be the set of all Eulerian arc-boundaried structures of arity p p p with label set a subset of I I I . Finally, similar as Observation 13, we make note of the following.
Observation 14. A structure α ⊕ β \alpha\oplus\beta α ⊕ β is Eulerian if and only if the arc-boundaried structures α \alpha α and β \beta β are.
Finite state
We first define a compatibility equivalence relation capturing when two arc-boundaried structures can be glued to precisely the same set of arc-boundaried structures. Formally, α ≡ c β \alpha\equiv_c \beta α ≡ c β when L ( D α ) = L ( D β ) L(D_\alpha) = L(D_\beta) L ( D α ) = L ( D β ) and for each γ \gamma γ , α ∼ c γ ⟺ β ∼ c γ \alpha\sim_c \gamma\Longleftrightarrow\beta\sim_c \gamma α ∼ c γ ⟺ β ∼ c γ . We next define an equivalence relation on Eulerian arc-boundaried structures based on a structure property σ \sigma σ .
Definition 3.11. Given a property σ \sigma σ for structures, the Eulerian canonical equivalence relation ≡ σ E \equiv^E_\sigma ≡ σ E is an equivalence relation on Eulerian arc-boundaried structures defined as follows. For two Eulerian arc-boundaried structures α \alpha α and β \beta β , we let α ≡ σ E β \alpha\equiv^E_\sigma\beta α ≡ σ E β if
α ≡ c β \alpha\equiv_c \beta α ≡ c β , and
for all Eulerian arc-boundaried structures γ \gamma γ that are compatible with α \alpha α (and thus β \beta β ), σ ( α ⊕ γ ) = t r u e ⟺ σ ( β ⊕ γ ) = t r u e \sigma(\alpha\oplus\gamma) = \mathrm{true} \Longleftrightarrow\sigma(\beta\oplus\gamma) = \mathrm{true} σ ( α ⊕ γ ) = true ⟺ σ ( β ⊕ γ ) = true .
Next, we prove that when σ \sigma σ is a CMSO2 _2 2 property and we have fixed and finite p p p and I I I , this equivalence relation has only a finite amount of equivalence classes on B ⊆ I p \mathcal{B}^{p}_{\subseteq I} B ⊆ I p . This same result was proven in the context of general undirected vertex-boundaried structures by Bodlaender et al. [1 ] . We will prove the result for Eulerian arc-boundaried structures by showing that we can translate them to vertex-boundaried structure while preserving equivalence, hence allowing us to lift the result back to arc-boundaried structures. To keep this presentation compact, we refer to [1 ] or [LRSZ18] for the relevant definitions related to vertex-boundaried structures. To improve readability, we slightly abuse notation and write ≡ ψ E \equiv^E_\psi ≡ ψ E rather than ≡ σ E \equiv^E_\sigma ≡ σ E from here on out.
Theorem 10. For every CMSO2 _2 2 -definable property ψ \psi ψ , natural number p ∈ N p \in\mathbb{N} p ∈ N and finite I ⊆ N I \subseteq\mathbb{N} I ⊆ N , the equivalence relation ≡ ψ E \equiv^E_\psi ≡ ψ E on B ⊆ I p \mathcal{B}^{p}_{\subseteq I} B ⊆ I p has a finite number of equivalence classes.
Proof. Fix a CMSO2 _2 2 formula ψ \psi ψ , a p ∈ N p \in\mathbb{N} p ∈ N and finite I ⊆ N I \subseteq\mathbb{N} I ⊆ N . We can describe a map g g g that turns any arc-boundaried structure α ∈ B ⊆ I p \alpha\in\mathcal{B}^{p}_{\subseteq I} α ∈ B ⊆ I p to a vertex-boundaried structure ν \nu ν with arity p + 3 p+3 p + 3 and the same label set. The undirected graph G g ( α ) G_{g(\alpha)} G g ( α ) has vertex set V ( D α ) ∪ E ( D α ) ∪ H ( D α ) V(D_\alpha) \cup E(D_\alpha) \cup H(D_\alpha) V ( D α ) ∪ E ( D α ) ∪ H ( D α ) . It has edges t e = { u , e } t_e = \{u,e\} t e = { u , e } and h e = { e , v } h_e = \{e,v\} h e = { e , v } for each edge e = ( u , v ) ∈ E ( D α ) e = (u,v) \in E(D_\alpha) e = ( u , v ) ∈ E ( D α ) . It additionally has an edge t e = { u , e } t_e = \{u,e\} t e = { u , e } for each half-arc e = ( u , ⊥ ) e = (u,\perp) e = ( u , ⊥ ) and edge h e = { e , v } h_e = \{e,v\} h e = { e , v } for each half-arc ( ⊥ , v ) ∈ H ( D α ) (\perp,v) \in H(D_\alpha) ( ⊥ , v ) ∈ H ( D α ) . The vertex boundary of g ( α ) g(\alpha) g ( α ) is set to H ( D α ) H(D_\alpha) H ( D α ) with labelling λ g ( α ) = λ α \lambda_{g(\alpha)} = \lambda_\alpha λ g ( α ) = λ α . It contains the elements α [ 2 ] , … , α [ p ] \alpha[2], \ldots, \alpha[p] α [ 2 ] , … , α [ p ] to g ( α ) g(\alpha) g ( α ) directly, where typewise an edge in α \alpha α becomes a vertex in g ( α ) g(\alpha) g ( α ) and an edge set becomes a vertex set. We additionally append three new elements to the end of g ( α ) g(\alpha) g ( α ) , namely the vertex sets V t = V ( D α ) \mathbf{Vt} = V(D_\alpha) Vt = V ( D α ) , A r = E ( D α ) ∪ H ( D α ) \mathbf{Ar} = E(D_\alpha) \cup H(D_\alpha) Ar = E ( D α ) ∪ H ( D α ) and the edge set T = { t e ∣ e ∈ E ( D α ) ∨ ( e ∈ H ( D α ) ∧ type ( e ) = t l ) } \mathbf{T} = \{t_e \mid e \in E(D_\alpha) \vee(e \in H(D_\alpha) \wedge\operatorname{type}(e) = \mathrm{tl})\} T = { t e ∣ e ∈ E ( D α ) ∨ ( e ∈ H ( D α ) ∧ type ( e ) = tl )} .
We consequently translate ψ \psi ψ into a CMSO2 _2 2 formula ψ ′ \psi' ψ ′ for undirected structures capturing the same behaviour as ψ \psi ψ did originally. The atomic formulas for head and tail incidence are replaced as follows.
tail ( a , u ) ↔ ∃ e ∈ E ( e ∈ T ∧ inc ( e , a ) ∧ inc ( e , u ) ) \operatorname{tail}(a,u) \leftrightarrow\exists e \in E\ (e \in\mathbf{T} \wedge\operatorname{inc}(e,a) \wedge\operatorname{inc}(e,u)) tail ( a , u ) ↔ ∃ e ∈ E ( e ∈ T ∧ inc ( e , a ) ∧ inc ( e , u )) head ( a , v ) ↔ ∃ e ∈ E ( e ∉ T ∧ inc ( e , a ) ∧ inc ( e , v ) ) \operatorname{head}(a,v) \leftrightarrow\exists e \in E\ (e \notin\mathbf{T} \wedge\operatorname{inc}(e,a) \wedge\operatorname{inc}(e,v)) head ( a , v ) ↔ ∃ e ∈ E ( e ∈ / T ∧ inc ( e , a ) ∧ inc ( e , v )) Furthermore, when in the formula ψ \psi ψ there is a quantification over the vertex set of the graph, we include that the vertex should be in V t \mathbf{Vt} Vt . Similarly occurrences of the edge set are modified with A r \mathbf{Ar} Ar . For example, ∀ v ∈ V : η \forall v \in V : \eta ∀ v ∈ V : η becomes ∀ v ∈ V : v ∈ V t ∧ η \forall v \in V : v \in\mathbf{Vt} \wedge\eta ∀ v ∈ V : v ∈ Vt ∧ η .
Claim 3.1. For every arc-boundaried structure α \alpha α with H ( D α ) = ∅ H(D_\alpha) = \emptyset H ( D α ) = ∅ (i.e. a non-boundaried structure), σ ψ ( α ) = σ ψ ′ ( g ( α ) ) \sigma_\psi(\alpha) = \sigma_{\psi'}(g(\alpha)) σ ψ ( α ) = σ ψ ′ ( g ( α ))
Proof of Claim. This follows from the fact that all atomic sentences of ψ \psi ψ get translated into equivalent sentences for ψ ′ \psi' ψ ′ (with regards to the structures they will be evaluated on), and that thus instantiating the free variables of ψ \psi ψ with the elements of α \alpha α gives the same truth value as instantiating the free variables of ψ ′ \psi' ψ ′ with the elements of g ( α ) g(\alpha) g ( α ) .
Claim 3.2. For two arc-boundaried structures α \alpha α and γ \gamma γ that are compatible, the vertex-boundaried structures g ( α ) g(\alpha) g ( α ) and g ( γ ) g(\gamma) g ( γ ) are compatible and g ( α ⊕ γ ) = g ( α ) ⊕ g ( γ ) g(\alpha\oplus\gamma) = g(\alpha) \oplus g(\gamma) g ( α ⊕ γ ) = g ( α ) ⊕ g ( γ ) .
Proof of Claim. First we confirm that g ( α ) g(\alpha) g ( α ) and g ( γ ) g(\gamma) g ( γ ) are indeed compatible (in context of vertex-boundaried structures). They both have arity p + 3 p + 3 p + 3 and for i ∈ { 2 , … , p } i \in\{2,\ldots,p\} i ∈ { 2 , … , p } the translation g g g consistently maps the elements in the structure that are a ⋆ \star ⋆ to a ⋆ \star ⋆ and a vertex/edge (set) to a vertex (set). As the conditions for type compatibility are stronger for arc-boundaried graphs than for vertex-boundaried graphs, their types must be compatible. Furthermore, as no g ( α ) [ i ] g(\alpha)[i] g ( α ) [ i ] or g ( γ ) [ i ] g(\gamma)[i] g ( γ ) [ i ] for i ∈ { 2 , … , p + 3 } i \in\{2,\ldots,p+3\} i ∈ { 2 , … , p + 3 } is an edge, we only need to confirm that when both g ( α ) [ i ] g(\alpha)[i] g ( α ) [ i ] and g ( γ ) [ i ] g(\gamma)[i] g ( γ ) [ i ] are a vertex, that g ( α ) [ i ] ∈ δ ( G g ( α ) ) g(\alpha)[i] \in\delta(G_{g(\alpha)}) g ( α ) [ i ] ∈ δ ( G g ( α ) ) , g ( γ ) [ i ] ∈ δ ( G g ( γ ) ) g(\gamma)[i] \in\delta(G_{g(\gamma)}) g ( γ ) [ i ] ∈ δ ( G g ( γ ) ) and λ g ( α ) ( g ( α [ i ] ) ) = λ g ( γ ) ( g ( γ [ i ] ) ) \lambda_{g(\alpha)}(g(\alpha[i])) = \lambda_{g(\gamma)}(g(\gamma[i])) λ g ( α ) ( g ( α [ i ])) = λ g ( γ ) ( g ( γ [ i ])) . However, this follows immediately from the way the boundary is defined and that for compatible α \alpha α and γ \gamma γ , it must be that both α [ i ] \alpha[i] α [ i ] and γ [ i ] \gamma[i] γ [ i ] are half-arcs in their respective boundaries with λ α ( α [ i ] ) = λ γ ( γ [ i ] ) \lambda_{\alpha}(\alpha[i]) = \lambda_{\gamma}(\gamma[i]) λ α ( α [ i ]) = λ γ ( γ [ i ]) .
To see that g ( α ⊕ γ ) = g ( α ) ⊕ g ( γ ) g(\alpha\oplus\gamma) = g(\alpha) \oplus g(\gamma) g ( α ⊕ γ ) = g ( α ) ⊕ g ( γ ) first observe that G g ( α ⊕ γ ) = G g ( α ) ⊕ G g ( γ ) G_{g(\alpha\oplus\gamma)} = G_{g(\alpha)} \oplus G_{g(\gamma)} G g ( α ⊕ γ ) = G g ( α ) ⊕ G g ( γ ) as they are glued precisely along the half-arcs in both cases (although in one they have been transformed to vertices), and the rest of the graph is unaffected by the order of operations. Additionally, for i ∈ { 2 , … , p } i \in\{2,\ldots,p\} i ∈ { 2 , … , p } , α [ i ] = g ( α ) [ i ] \alpha[i] = g(\alpha)[i] α [ i ] = g ( α ) [ i ] and γ [ i ] = g ( γ ) [ i ] \gamma[i] = g(\gamma)[i] γ [ i ] = g ( γ ) [ i ] , hence it is irrelevant in which order the gluing operation occurs. It is not difficult to verify that the same holds for the special elements V t \mathbf{Vt} Vt , A r \mathbf{Ar} Ar and T \mathbf{T} T as they are sets and the edges are appropriately carried over through the h D α , D γ h_{D_{\alpha},D_{\gamma}} h D α , D γ function. ◇
Now we can argue that ≡ ψ E \equiv^{E}_{\psi} ≡ ψ E has a finite amount of equivalence classes on B ⊆ I p \mathcal{B}^{p}_{\subseteq I} B ⊆ I p . It is clear that ≡ c \equiv_{c} ≡ c indeed only has a finite amount for finite I I I and p p p . Consider α , β ∈ B ⊆ I p \alpha,\beta\in\mathcal{B}^{p}_{\subseteq I} α , β ∈ B ⊆ I p and an arc-boundaried structure γ \gamma γ compatible with them. We observe that g ( α ) ≡ ψ ′ g ( β ) g(\alpha) \equiv_{\psi'} g(\beta) g ( α ) ≡ ψ ′ g ( β ) implies that α ≡ ψ E β \alpha\equiv^{E}_{\psi} \beta α ≡ ψ E β through the following use of the claims.
σ ψ ( α ⊕ γ ) = σ ψ ′ ( g ( α ⊕ γ ) ) = σ ψ ′ ( g ( α ) ⊕ g ( γ ) ) = σ ψ ′ ( g ( β ) ⊕ g ( γ ) ) = σ ψ ′ ( g ( β ⊕ γ ) ) = σ ψ ( β ⊕ γ ) \sigma_{\psi}(\alpha\oplus\gamma) = \sigma_{\psi'}(g(\alpha\oplus\gamma)) = \sigma_{\psi'}(g(\alpha) \oplus g(\gamma)) = \sigma_{\psi'}(g(\beta) \oplus g(\gamma)) = \sigma_{\psi'}(g(\beta\oplus\gamma)) = \sigma_{\psi}(\beta\oplus\gamma) σ ψ ( α ⊕ γ ) = σ ψ ′ ( g ( α ⊕ γ )) = σ ψ ′ ( g ( α ) ⊕ g ( γ )) = σ ψ ′ ( g ( β ) ⊕ g ( γ )) = σ ψ ′ ( g ( β ⊕ γ )) = σ ψ ( β ⊕ γ )
We obtain from [1 Lemma 2.2] that ≡ ψ ′ \equiv_{\psi'} ≡ ψ ′ has a finite number of equivalence classes on vertex-boundaried structures of arity p + 3 p + 3 p + 3 and label set in I I I . Hence ≡ ψ E \equiv^{E}_{\psi} ≡ ψ E has a finite number of equivalence classes on B ⊆ I p \mathcal{B}^{p}_{\subseteq I} B ⊆ I p .
Edge-breakability. Before we can start to prove Theorem 9 we need to formally introduce the notion of breakability, and describe how to decide if a graph is or is not breakable.
Definition 3.12. Let D D D be a directed graph and let s s s and c c c be natural numbers. D D D is ( s , c ) (s,c) ( s , c ) -edge-breakable if there exists a partition A , B A,B A , B of V ( D ) V(D) V ( D ) such that ∣ δ ( A ) ∣ ≤ c |\delta(A)| \leq c ∣ δ ( A ) ∣ ≤ c and ∣ A ∣ , ∣ B ∣ > s |A|,|B| > s ∣ A ∣ , ∣ B ∣ > s . If no such partition exists, D D D is ( s , c ) (s,c) ( s , c ) -edge-unbreakable.
Where δ D ( X ) \delta_D(X) δ D ( X ) (written as δ ( X ) \delta(X) δ ( X ) when it is clear which graph is intended) is defined as the set of edges with one endpoint inside X X X and one endpoint in V ( D ) ∖ X V(D) \setminus X V ( D ) ∖ X . As half-arcs can never contribute to the size of a cut, we say that digraph with half-arcs D D D is ( s , c ) (s,c) ( s , c ) -edge-(un)breakable if and only if the digraph ( V ( D ) , E ( D ) ) (V(D),E(D)) ( V ( D ) , E ( D )) is. Similarly, we say that an arc-boundaried (structured) structure α \alpha α is ( s , c ) (s,c) ( s , c ) -edge-(un)breakable if D α D_{\alpha} D α is. As in the above definition the orientation of the edges is irrelevant, we can directly make use of the following result by Chitnis, Cygan, Hajiaghayi, Pilipczuk and Pilipczuk [2 ] .
Lemma 15 ([2 Lemma 2.2] ). There exists a deterministic algorithm that, given an (un)directed graph G G G on n n n vertices, along with integers c c c and s s s , in time O ( 2 O ( min ( s , c ) log ( s + c ) ) n 3 log n ) O(2^{O(\min(s,c)\log(s+c))}n^3\log n) O ( 2 O ( m i n ( s , c ) l o g ( s + c )) n 3 log n ) either finds a partition A , B A,B A , B witnessing that G G G is ( s , c ) (s,c) ( s , c ) -edge-unbreakable or reports that no such partition exists for which A A A and B B B both contain a connected component of size greater than s s s .
One limitation is that Lemma 15 can only decide breakability with the additional constraint that both sides of the partition must contain a large connected component. The next lemma shows that we can avoid this constraint if we are satisfied with merely an ‘approximate’ breakability-witnessing partition.
Lemma 16. There exists a deterministic algorithm that, given an (un)directed graph G G G on n n n vertices, along with integers c c c and s s s , in time O ( 2 O ( min ( s , c ) log ( s + c ) ) n 3 log n ) O(2^{O(\min(s,c)\log(s+c))}n^3\log n) O ( 2 O ( m i n ( s , c ) l o g ( s + c )) n 3 log n ) either finds a partition A , B A,B A , B witnessing that G G G is ( s 2 c , c ) (\frac{s}{2c},c) ( 2 c s , c ) -edge-breakable or reports that G G G is ( s , c ) (s,c) ( s , c ) -edge-unbreakable.
Proof. We can easily determine whether G G G is ( s , 0 ) (s,0) ( s , 0 ) -edge-unbreakable by solving a polynomial-time solvable instance of the knapsack problem on the connected components of G G G . Next, if n ≤ 2 s n \leq2s n ≤ 2 s then it is trivially ( s , c ) (s,c) ( s , c ) -edge-unbreakable. Otherwise, let C 1 , C 2 , … , C p C_1,C_2,\ldots,C_p C 1 , C 2 , … , C p be the connected components of G G G , ordered decreasingly by their number of vertices. Consider the case where ∣ V ( C 1 ) ∣ ≤ s 2 c |V(C_1)| \leq\frac{s}{2c} ∣ V ( C 1 ) ∣ ≤ 2 c s . Then we can always find a q ∈ [ p ] q \in[p] q ∈ [ p ] such that s 2 c < ∑ i = 1 q ∣ V ( C i ) ∣ ≤ s c \frac{s}{2^{c}} < \sum_{i=1}^{q} |V(C_i)| \le\frac{s}{c} 2 c s < ∑ i = 1 q ∣ V ( C i ) ∣ ≤ c s , and since n > 2 s ≥ 3 s 2 c n > 2s \ge\frac{3s}{2c} n > 2 s ≥ 2 c 3 s we get that ⋃ i = 1 q V ( C i ) \bigcup_{i=1}^{q} V(C_i) ⋃ i = 1 q V ( C i ) and ⋃ i = q + 1 p V ( C i ) \bigcup_{i=q+1}^{p} V(C_i) ⋃ i = q + 1 p V ( C i ) forms a partition witnessing ( s 2 c , 0 ) (\frac{s}{2c},0) ( 2 c s , 0 ) -edge-unbreakability, so we output this for A A A and B B B .
Now consider the second case where ∣ V ( C 1 ) ∣ > s 2 c |V(C_1)| > \frac{s}{2c} ∣ V ( C 1 ) ∣ > 2 c s . Let U = ⋃ i = 2 p V ( C i ) U = \bigcup_{i=2}^{p} V(C_i) U = ⋃ i = 2 p V ( C i ) . If ∣ U ∣ > s 2 c |U| > \frac{s}{2c} ∣ U ∣ > 2 c s then we again find a trivial partition witnessing ( s 2 c , 0 ) (\frac{s}{2c},0) ( 2 c s , 0 ) -edge-unbreakability, namely V ( C 1 ) V(C_1) V ( C 1 ) and U U U , thus assume henceforth that ∣ U ∣ ≤ s 2 c |U| \le\frac{s}{2c} ∣ U ∣ ≤ 2 c s . We use the algorithm of Lemma 15 on G [ C 1 ] G[C_1] G [ C 1 ] to examine ( s 2 c , c ) (\frac{s}{2c},c) ( 2 c s , c ) -edge-breakability. If it finds no partition we report that G G G is ( s , c ) (s,c) ( s , c ) -edge-unbreakable. Alternatively, it finds a partition A 1 , B 1 A_1, B_1 A 1 , B 1 of V ( C 1 ) V(C_1) V ( C 1 ) such that ∣ A 1 ∣ , ∣ B 1 ∣ > s 2 c |A_1|, |B_1| > \frac{s}{2c} ∣ A 1 ∣ , ∣ B 1 ∣ > 2 c s and ∣ δ ( A 1 ) ∣ ≤ c |\delta(A_1)| \le c ∣ δ ( A 1 ) ∣ ≤ c , in which case we output A 1 ∪ U A_1 \cup U A 1 ∪ U and B 1 B_1 B 1 .
It should be obvious that whenever the algorithm outputs a partition, then it is correct. It remains to argue that G G G is only ( s , c ) (s,c) ( s , c ) -edge-unbreakable when the algorithm reports so. To this end, assume that G G G is ( s , c ) (s,c) ( s , c ) -edge-breakable and let A , B A,B A , B be a partition of V ( G ) V(G) V ( G ) witnessing this. We will show that both G [ A ] G[A] G [ A ] and G [ B ] G[B] G [ B ] contain a connected component of size greater than s 2 c \frac{s}{2c} 2 c s , after which correctness immediately follows by Lemma 15. Remember, we only enter the final case (and risk falsely reporting unbreakability) if ∣ U ∣ ≤ s 2 c |U| \le\frac{s}{2c} ∣ U ∣ ≤ 2 c s . Split the connected components of G [ A ] G[A] G [ A ] into C \mathcal{C} C which contains all those components C C C such that δ G ( C ) = ∅ \delta_G(C) = \varnothing δ G ( C ) = ∅ (ergo C C C is a connected component already in G G G ) and C ′ \mathcal{C}' C ′ which contains all remaining components. Thus C ⊆ { C 2 , C 3 , … , C p } \mathcal{C} \subseteq\{C_2,C_3,\ldots,C_p\} C ⊆ { C 2 , C 3 , … , C p } and ∣ ⋃ C ∈ C V ( C ) ∣ ≤ ∣ U ∣ \left|\bigcup_{C \in\mathcal{C}} V(C)\right| \le|U| ⋃ C ∈ C V ( C ) ≤ ∣ U ∣ . As each connected component in C ′ \mathcal{C}' C ′ contains an endpoint of at least one edge in δ ( A ) \delta(A) δ ( A ) , we get ∣ C ′ ∣ ≤ c |\mathcal{C}'| \le c ∣ C ′ ∣ ≤ c . Combining these facts with ∣ A ∣ > s |A| > s ∣ A ∣ > s tells us that at least one C ′ ∈ C ′ C' \in\mathcal{C}' C ′ ∈ C ′ has ∣ V ( C ′ ) ∣ > s − ∣ U ∣ c ≥ s c − ∣ U ∣ ≥ s 2 c |V(C')| > \frac{s-|U|}{c} \ge\frac{s}{c} - |U| \ge\frac{s}{2c} ∣ V ( C ′ ) ∣ > c s − ∣ U ∣ ≥ c s − ∣ U ∣ ≥ 2 c s . The same argument holds on the B B B side, which concludes the correctness proof.
For the running time of the algorithm, observe that the ( s , 0 ) (s,0) ( s , 0 ) -edge-unbreakable case can be solved in O ( n 2 ) O(n^2) O ( n 2 ) time with a dynamic programming algorithm. The algorithm from Lemma 15 runs in the claimed time and is only called once, and all other steps can be easily performed in O ( n 2 ) O(n^2) O ( n 2 ) time.
Reduction to Unbreakable Instances
Our goal is to prove an Eulerian analogue to Theorem 3 of [LRSZ18]. Observe that while this original theorem could be used to reduce the task of solving the problem on general Eulerian structures to the problem of solving it on unbreakable structures, it would require us to solve it on unbreakable non-Eulerian structures, which defeats the purpose of looking at Eulerian structures in the first place. Our main contribution is in showing that it suffices to solve the problem on unbreakable Eulerian structures.
Before stating the theorem, we need to introduce the notion of the parametrized problem MIN-EDGE-CMSO2 [ ψ ] _2[\psi] 2 [ ψ ] for a fixed CMSO2 _2 2 formula ψ \psi ψ . It takes as input a structure α \alpha α and a parameter k k k such that for each S ⊆ E ( D α ) S \subseteq E(D_\alpha) S ⊆ E ( D α ) , the structure α ⋄ S \alpha\diamond S α ⋄ S matches ψ \psi ψ . We are tasked to decide whether there is a set S ⊆ E ( D α ) S \subseteq E(D_\alpha) S ⊆ E ( D α ) of size at most k k k such that α ⋄ S \alpha\diamond S α ⋄ S satisfies ψ \psi ψ . Similarly, the MAX-EDGE-CMSO2 [ ψ ] _2[\psi] 2 [ ψ ] and EQ-EDGE-CMSO2 [ ψ ] _2[\psi] 2 [ ψ ] are similarly defined, now with the task to find an edge set of size at least k k k or exactly k k k , respectively.
Theorem 9. Let X ∈ { M I N - E D G E , M A X - E D G E , E Q - E D G E } X \in\{\mathrm{MIN\text{-}EDGE},\mathrm{MAX\text{-}EDGE},\mathrm{EQ\text{-}EDGE}\} X ∈ { MIN - EDGE , MAX - EDGE , EQ - EDGE } , let ψ ~ \widetilde{\psi} ψ be a CMSO2 _2 2 sentence and let c ~ : N → N \widetilde{c} : \mathbb{N} \to\mathbb{N} c : N → N . There exists a s ~ : N → N \widetilde{s} : \mathbb{N} \to\mathbb{N} s : N → N such that if X-CMSO2 [ ψ ~ ] _2[\widetilde{\psi}] 2 [ ψ ] parameterized by k k k is FPT on ( s ~ ( k ) , c ~ ( k ) ) (\widetilde{s}(k),\widetilde{c}(k)) ( s ( k ) , c ( k )) -edge-unbreakable Eulerian structures, then X-CMSO2 [ ψ ~ ] _2[\widetilde{\psi}] 2 [ ψ ] parameterized by k k k is (nonuniformly) FPT on general Eulerian structures.
We will follow the general approach of [LRSZ18] and make modifications where necessary to preserve the Eulerian property and account for arc-boundaried structures. We will in fact focus on a non-parameterized result from which Theorem 9 follows.
Theorem 11. Let ψ \psi ψ be a CMSO2 _2 2 formula. For all c ∈ N c \in\mathbb{N} c ∈ N there exists s ∈ N s \in\mathbb{N} s ∈ N such that if there exists an algorithm that solves CMSO2 [ ψ ] _2[\psi] 2 [ ψ ] on ( s , c ) (s,c) ( s , c ) -edge-unbreakable Eulerian structures in time O ( n d ) O(n^d) O ( n d ) for some d > 4 d > 4 d > 4 , then there exists an algorithm that solves CMSO2 [ ψ ] _2[\psi] 2 [ ψ ] on general Eulerian structures in time O ( n d ) O(n^d) O ( n d ) .
We start by showing how Theorem 9 follows from Theorem 11 .
Proof of Theorem 9. For X = M I N - E D G E X = \mathrm{MIN\text{-}EDGE} X = MIN - EDGE and for a value of k ∈ N k \in\mathbb{N} k ∈ N , we define ψ k = ∃ S ⊆ E ( D α ) ∣ S ∣ ≤ k ∧ ψ ~ ( S ) \psi_k = \exists_{S \subseteq E(D_\alpha)} |S| \le k \land\widetilde{\psi}(S) ψ k = ∃ S ⊆ E ( D α ) ∣ S ∣ ≤ k ∧ ψ ( S ) where ψ ~ \widetilde{\psi} ψ used S S S as free variable. Note that one can easily express ∃ S ⊆ E ( D ) ∣ S ∣ ≤ k \exists_{S \subseteq E(D)} |S| \le k ∃ S ⊆ E ( D ) ∣ S ∣ ≤ k in CMSO2 _2 2 with a formula of length depending on k k k . Similarly, if X ∈ { M A X - E D G E , E Q - E D G E } X \in\{\mathrm{MAX\text{-}EDGE},\mathrm{EQ\text{-}EDGE}\} X ∈ { MAX - EDGE , EQ - EDGE } one can similarly define ψ ~ k \widetilde{\psi}_k ψ k using ∣ S ∣ ≥ k |S| \ge k ∣ S ∣ ≥ k and ∣ S ∣ = k |S| = k ∣ S ∣ = k . Now observe that CMSO2 ψ ~ _2\widetilde{\psi} 2 ψ is equivalent to CMSO2 [ ψ k ] _2[\psi_k] 2 [ ψ k ] .
For each k ∈ N k \in\mathbb{N} k ∈ N , we let s ~ ( k ) \widetilde{s}(k) s ( k ) be the value of s s s obtained from Theorem 11 with c = c ~ ( k ) c = \widetilde{c}(k) c = c ( k ) and ψ = ψ k \psi= \psi_k ψ = ψ k . Let b > 4 b > 4 b > 4 be fixed such that for each k k k , there is an f ( k ) f(k) f ( k ) such that X-CMSO2 [ ψ ~ ] _2[\widetilde{\psi}] 2 [ ψ ] on ( s ~ ( k ) , c ~ ( k ) ) (\widetilde{s}(k),\widetilde{c}(k)) ( s ( k ) , c ( k )) -edge-unbreakable Eulerian structures can be solved in f ( k ) ⋅ n b f(k) \cdot n^b f ( k ) ⋅ n b . As X-CMSO2 [ ψ ~ ] _2[\widetilde{\psi}] 2 [ ψ ] is equivalent to CMSO2 [ ψ k ] _2[\psi_k] 2 [ ψ k ] , we find that it can be solved in O ( n b ) O(n^b) O ( n b ) for a fixed k k k on these unbreakable structures. By Theorem 11 , that means C M S O 2 [ ψ k ] \mathrm{CMSO}_2[\psi_k] CMSO 2 [ ψ k ] and hence x - C M S O 2 [ ψ ~ ] \mathrm{x\text{-}CMSO}_2[\tilde{\psi}] x - CMSO 2 [ ψ ~ ] can be solved in O ( n b ) O(n^b) O ( n b ) in general Eulerian structures. This shows that for every fixed k ∈ N k \in\mathbb{N} k ∈ N , x - C M S O 2 [ ψ ~ ] \mathrm{x\text{-}CMSO}_2[\tilde{\psi}] x - CMSO 2 [ ψ ~ ] can be solved in O ( n b ) O(n^b) O ( n b ) with b b b independent of k k k , and hence it is nonuniformly FPT. □
Thus it remains to show Theorem 11 . First, consider ψ \psi ψ as a fixed C M S O 2 \mathrm{CMSO}_2 CMSO 2 formula with p p p free variables and a fixed c ∈ N c \in\mathbb{N} c ∈ N . We will set s ∈ N s \in\mathbb{N} s ∈ N to a fixed value depending only on ψ \psi ψ and c c c , the exact value of which we will describe later. Thus, to prove the theorem we assume that there exists an algorithm Solve-Unbr-ALG that solves C M S O 2 [ ψ ] \mathrm{CMSO}_2[\psi] CMSO 2 [ ψ ] on ( s , c ) (s,c) ( s , c ) -edge-unbreakable Eulerian structures in time O ( n d ) O(n^d) O ( n d ) for some d > 4 d>4 d > 4 .
We will instead focus on a different problem, namely Understand-E[ ψ ] [\psi] [ ψ ] . To define it we need to introduce some notation. Let I = [ 2 c ] I=[2c] I = [ 2 c ] . Let E ψ ≡ E [ B ⊆ I p ] \mathcal{E}^{\equiv_E}_{\psi}[\mathcal{B}^{p}_{\subseteq I}] E ψ ≡ E [ B ⊆ I p ] be the set of equivalence classes of ≡ ψ E \equiv^{E}_{\psi} ≡ ψ E when restricted to B ⊆ I p \mathcal{B}^{p}_{\subseteq I} B ⊆ I p . For an arc-boundaried structure α ∈ B ⊆ I p \alpha\in\mathcal{B}^{p}_{\subseteq I} α ∈ B ⊆ I p we denote with E α E_\alpha E α the equivalence class containing α \alpha α . For each equivalence class E q ∈ E ψ ≡ E [ B ⊆ I p ] E_q \in\mathcal{E}^{\equiv_E}_{\psi}[\mathcal{B}^{p}_{\subseteq I}] E q ∈ E ψ ≡ E [ B ⊆ I p ] , we let α E q \alpha_{E_q} α E q be the arc-boundaried structure in E q E_q E q such that its encoding is smallest among all elements of E q E_q E q . We refer to α E q \alpha_{E_q} α E q as the representative of E q E_q E q , and we let R ψ ≡ E [ B ⊆ I p ] \mathcal{R}^{\equiv_E}_{\psi}[\mathcal{B}^{p}_{\subseteq I}] R ψ ≡ E [ B ⊆ I p ] be the set of all representatives. By Theorem 10 there is a fixed r ∈ N r \in\mathbb{N} r ∈ N that depends only on ψ \psi ψ and c c c such that both ∣ E ψ ≡ E [ B ⊆ I p ] ∣ |\mathcal{E}^{\equiv_E}_{\psi}[\mathcal{B}^{p}_{\subseteq I}]| ∣ E ψ ≡ E [ B ⊆ I p ] ∣ as well of the maximum size of a representative is upper bounded by r r r . Finally, set s = ( 2 c + 1 ) r s=(2c+1)r s = ( 2 c + 1 ) r .
The Understand-E[ ψ ] [\psi] [ ψ ] problem is now defined as follows. Given an Eulerian arc-boundaried structure α ∈ B ⊆ I p \alpha\in\mathcal{B}^{p}_{\subseteq I} α ∈ B ⊆ I p that matches ψ \psi ψ , output an Eulerian arc-boundaried structure β ∈ R ψ ≡ E [ B ⊆ I p ] \beta\in\mathcal{R}^{\equiv_E}_{\psi}[\mathcal{B}^{p}_{\subseteq I}] β ∈ R ψ ≡ E [ B ⊆ I p ] such that E α = E β E_\alpha=E_\beta E α = E β (i.e. return the representative of E α E_\alpha E α ). We start by showing that Understand-E[ ψ ] [\psi] [ ψ ] generalises C M S O [ ψ ] \mathrm{CMSO}[\psi] CMSO [ ψ ] .
Lemma 17. If there exists an algorithm that solves Understand-E[ ψ ] [\psi] [ ψ ] on Eulerian arc-boundaried structures in time O ( n d ) O(n^d) O ( n d ) , then there exists an algorithm that solves C M S O 2 [ ψ ] \mathrm{CMSO}_2[\psi] CMSO 2 [ ψ ] on Eulerian structures in time O ( n d ) O(n^d) O ( n d ) .
Proof. Let α \alpha α be a Eulerian structure given as input for C M S O 2 [ ψ ] \mathrm{CMSO}_2[\psi] CMSO 2 [ ψ ] . Let α ′ \alpha' α ′ be the Eulerian arc-boundaried structure obtained by setting α \alpha α to have an empty boundary. As α ′ ∈ B ⊆ I p \alpha' \in\mathcal{B}^{p}_{\subseteq I} α ′ ∈ B ⊆ I p , we can call upon the algorithm from the hypothesis to find the representative β ∈ R ψ ≡ E [ B ⊆ I p ] \beta\in\mathcal{R}^{\equiv_E}_{\psi}[\mathcal{B}^{p}_{\subseteq I}] β ∈ R ψ ≡ E [ B ⊆ I p ] for E α ′ E_{\alpha'} E α ′ in O ( n d ) O(n^d) O ( n d ) time.
Now as α ′ ∼ c β ′ \alpha' \sim_c \beta' α ′ ∼ c β ′ , they must both have an empty boundary. Hence by removing this redundant information we can obtain an Eulerian (not boundaried) structure β \beta β . More concretely, let γ \gamma γ be the arc-boundaried structure with γ [ 1 ] \gamma[1] γ [ 1 ] as an empty graph and γ [ i ] \gamma[i] γ [ i ] equal to either ⋆ \star ⋆ or ∅ \emptyset ∅ depending on whether α [ i ] \alpha[i] α [ i ] is a vertex/edge or a set, respectively. Then β = β ′ ⊕ γ \beta=\beta'\oplus\gamma β = β ′ ⊕ γ and α = α ′ ⊕ γ \alpha=\alpha'\oplus\gamma α = α ′ ⊕ γ .
By choice of s s s , we know s > ∣ V ( D β ) ∣ s>|V(D_\beta)| s > ∣ V ( D β ) ∣ and hence β \beta β is a trivially ( s , c ) (s,c) ( s , c ) -edge-unbreakable structure. Therefore, we can call upon Solve-Unbr-ALG to solve β \beta β in O ( n d ) O(n^d) O ( n d ) time. As E α ′ = E β ′ E_{\alpha'}=E_{\beta'} E α ′ = E β ′ we get σ ψ ( α ) = σ ψ ( α ′ ⊕ γ ) = σ ψ ( β ′ ⊕ γ ) = σ ψ ( β ) \sigma_\psi(\alpha)=\sigma_\psi(\alpha'\oplus\gamma)=\sigma_\psi(\beta'\oplus\gamma)=\sigma_\psi(\beta) σ ψ ( α ) = σ ψ ( α ′ ⊕ γ ) = σ ψ ( β ′ ⊕ γ ) = σ ψ ( β ) . □
Hence we may focus our attention instead on the Understand-E[ ψ ] [\psi] [ ψ ] problem. We start by showing how to solve it on unbreakable instances.
Lemma 18. There exists an algorithm Understand-Unbr-ALG that solves Understand-E[ ψ ] [\psi] [ ψ ] on ( s − r , c ) (s-r,c) ( s − r , c ) -edge-unbreakable Eulerian arc-boundaried structures in time O ( n d ) O(n^d) O ( n d ) .
Proof. Let α \alpha α be an ( s − r , c ) (s-r,c) ( s − r , c ) -edge-unbreakable Eulerian arc-boundaried structure given as input. Let C = { β ∈ R ψ ≡ E [ B ⊆ I p ] ∣ α ≡ c β } C=\{\beta\in\mathcal{R}^{\equiv_E}_{\psi}[\mathcal{B}^{p}_{\subseteq I}]\mid\alpha\equiv_c\beta\} C = { β ∈ R ψ ≡ E [ B ⊆ I p ] ∣ α ≡ c β } and let S = { γ ∈ R ψ ≡ E [ B ⊆ I p ] ∣ α ∼ c γ } S=\{\gamma\in\mathcal{R}^{\equiv_E}_{\psi}[\mathcal{B}^{p}_{\subseteq I}]\mid\alpha\sim_c\gamma\} S = { γ ∈ R ψ ≡ E [ B ⊆ I p ] ∣ α ∼ c γ } . As α \alpha α is ( s − r , c ) (s-r,c) ( s − r , c ) -edge-unbreakable and by choice of r r r , for any γ ∈ S \gamma\in S γ ∈ S we have ∣ V ( D γ ) ∣ ≤ r |V(D_\gamma)|\le r ∣ V ( D γ ) ∣ ≤ r and thus α ⊕ γ \alpha\oplus\gamma α ⊕ γ is ( s , c ) (s,c) ( s , c ) -edge-unbreakable, as well as Eulerian. Therefore we can use Solve-Unbr-ALG to compute σ ψ ( α ⊕ γ ) \sigma_\psi(\alpha\oplus\gamma) σ ψ ( α ⊕ γ ) for each γ ∈ S \gamma\in S γ ∈ S .
On the other hand, for each β ∈ C \beta\in C β ∈ C also ∣ V ( D β ) ∣ ≤ r |V(D_\beta)|\le r ∣ V ( D β ) ∣ ≤ r hence by choice of s s s for each γ ∈ S \gamma\in S γ ∈ S the structure β ⊕ γ \beta\oplus\gamma β ⊕ γ is Eulerian and ( s , c ) (s,c) ( s , c ) -edge-unbreakable. Therefore in the same way as before we can use Solve-Unbr-ALG to find σ ψ ( β ⊕ γ ) \sigma_\psi(\beta\oplus\gamma) σ ψ ( β ⊕ γ ) for each combination of β \beta β and γ \gamma γ . At this point, we find the β ∈ C \beta\in C β ∈ C such that σ ψ ( α ⊕ γ ) = σ ψ ( β ⊕ γ ) \sigma_\psi(\alpha\oplus\gamma)=\sigma_\psi(\beta\oplus\gamma) σ ψ ( α ⊕ γ ) = σ ψ ( β ⊕ γ ) for all γ ∈ S \gamma\in S γ ∈ S , and output this β \beta β .
As α ∈ B ⊆ I p \alpha\in\mathcal{B}^{p}_{\subseteq I} α ∈ B ⊆ I p there must be at least one candidate C C C for β \beta β , namely the representative for E α E_\alpha E α . It remains to argue that no β ′ ∈ C ∖ { β } \beta'\in C\setminus\{\beta\} β ′ ∈ C ∖ { β } also satisfies the condition that σ ψ ( α ⊕ γ ) = σ ψ ( β ′ ⊕ γ ) \sigma_\psi(\alpha\oplus\gamma)=\sigma_\psi(\beta'\oplus\gamma) σ ψ ( α ⊕ γ ) = σ ψ ( β ′ ⊕ γ ) for all γ ∈ S \gamma\in S γ ∈ S . For sake of a contradiction, assume such a β ′ \beta' β ′ exists. As β , β ′ ∈ C \beta,\beta'\in C β , β ′ ∈ C , we immediately conclude that β ≡ c β ′ \beta\equiv_c\beta' β ≡ c β ′ . Now let η \eta η be an arbitrary Eulerian arc-boundaried structure compatible with β \beta β and let η ′ \eta' η ′ be the representative of E η E_\eta E η (hence η ′ ∈ C \eta'\in C η ′ ∈ C ). Then
σ ψ ( β ⊕ η ) = σ ψ ( β ⊕ η ′ ) = σ ψ ( α ⊕ η ′ ) = σ ψ ( β ′ ⊕ η ′ ) = σ ψ ( β ′ ⊕ η ) \sigma_\psi(\beta\oplus\eta)=\sigma_\psi(\beta\oplus\eta')=\sigma_\psi(\alpha\oplus\eta')=\sigma_\psi(\beta'\oplus\eta')=\sigma_\psi(\beta'\oplus\eta) σ ψ ( β ⊕ η ) = σ ψ ( β ⊕ η ′ ) = σ ψ ( α ⊕ η ′ ) = σ ψ ( β ′ ⊕ η ′ ) = σ ψ ( β ′ ⊕ η )
which implies that β ≡ ψ E β ′ \beta\equiv^{E}_{\psi} \beta' β ≡ ψ E β ′ , a contradiction to the fact that we choose only one representative per equivalence class. Finally, the running time of Understand-Unbr-ALG is clearly O ( n d ) O(n^d) O ( n d ) as a consequence of R ≡ ψ E [ B ⊆ p ] \mathcal{R}^{E}_{\equiv_{\psi}}[B^p_{\subseteq}] R ≡ ψ E [ B ⊆ p ] having constant size.
We are now ready to prove that we can solve Understand-E[ψ \psi ψ ] on general Eulerian arc-boundaried structures.
Lemma 19. There exists an algorithm Understand-ALG that solves Understand-E[ψ \psi ψ ] on general Eulerian arc-boundaried structures in time O ( n d ) O(n^d) O ( n d ) .
Proof. Let α \alpha α be the Eulerian arc-boundaried structure given as input. We can use Lemma 16 to decide in O ( n 3 log n ) O(n^3 \log n) O ( n 3 log n ) time (for fixed s s s and c c c ) whether α \alpha α is ( s − r , c ) (s-r,c) ( s − r , c ) -edge-unbreakable, or find a ( s − r 2 c , c ) (\frac{s-r}{2c},c) ( 2 c s − r , c ) -edge-breakable witnessing partition. If it is unbreakable, then Understand-Unbr-ALG can be used to solve it in O ( n d ) O(n^d) O ( n d ) time. Otherwise, let A , B A,B A , B be a partition of V ( D α ) V(D_\alpha) V ( D α ) with ∣ A ∣ , ∣ B ∣ > s − r 2 c = r |A|,|B|>\frac{s-r}{2c}=r ∣ A ∣ , ∣ B ∣ > 2 c s − r = r and ∣ δ ( A ) ∣ ≤ c |\delta(A)|\leq c ∣ δ ( A ) ∣ ≤ c . Without loss of generality, assume that the number of half-arcs incident to vertices of B B B is greater than or equal to the number of half-arcs incident to vertices of A A A . We will describe a recursive procedure for Understand-ALG, hence we assume that the algorithm returns the correct output for all instances of size strictly smaller than α \alpha α .
We now construct an Eulerian arc-boundaried structure β ∈ B ⊆ p \beta\in B^p_{\subseteq} β ∈ B ⊆ p based on the A A A side of the partition. Let the arc-boundaried digraph D β D_\beta D β be equal to D α [ A ] D_\alpha[A] D α [ A ] . To help with notation, let f : δ ( A ) → H ( D β ) f:\delta(A)\to H(D_\beta) f : δ ( A ) → H ( D β ) be an injective map that maps each edge in δ ( A ) \delta(A) δ ( A ) to the half-arc that was created from it, with f ( δ ( A ) ) : = { f ( e ) ∣ e ∈ δ ( A ) } f(\delta(A)):=\{f(e)\mid e\in\delta(A)\} f ( δ ( A )) := { f ( e ) ∣ e ∈ δ ( A )} . First observe that D β D_\beta D β is Eulerian as the balance of each vertex of A A A is maintained. Second, ∣ H ( D β ) ∣ ≤ 2 c |H(D_\beta)|\leq2c ∣ H ( D β ) ∣ ≤ 2 c as ∣ δ ( A ) ∣ ≤ c |\delta(A)|\leq c ∣ δ ( A ) ∣ ≤ c and the A A A side contained at most half of the original up to 2 c 2c 2 c half-arcs of D α D_\alpha D α . Set λ β \lambda_\beta λ β such that the labels for all half-arcs that were present in D α D_\alpha D α are maintained, and the half-arcs in f ( δ ( A ) ) f(\delta(A)) f ( δ ( A )) all get mapped to unique integers in I = [ 2 c ] I=[2c] I = [ 2 c ] . Now, for i ∈ { 2 , … , p } i\in\{2,\ldots,p\} i ∈ { 2 , … , p } we set β [ i ] \beta[i] β [ i ] in the following way.
If type ( α ) [ i ] = ⋆ \operatorname{type}(\alpha)[i]=\star type ( α ) [ i ] = ⋆ then β [ i ] = ⋆ \beta[i]=\star β [ i ] = ⋆ .
If type ( α ) [ i ] = vertex \operatorname{type}(\alpha)[i]=\operatorname{vertex} type ( α ) [ i ] = vertex then if α [ i ] ∈ A \alpha[i]\in A α [ i ] ∈ A , β [ i ] = α [ i ] \beta[i]=\alpha[i] β [ i ] = α [ i ] and otherwise β [ i ] = ⋆ \beta[i]=\star β [ i ] = ⋆ .
If type ( α ) [ i ] = edge \operatorname{type}(\alpha)[i]=\operatorname{edge} type ( α ) [ i ] = edge then if α [ i ] ∈ E ( D β ) ∪ H ( D β ) \alpha[i]\in E(D_\beta)\cup H(D_\beta) α [ i ] ∈ E ( D β ) ∪ H ( D β ) we set β [ i ] = α [ i ] \beta[i]=\alpha[i] β [ i ] = α [ i ] , if α [ i ] ∈ δ ( A ) \alpha[i]\in\delta(A) α [ i ] ∈ δ ( A ) then β [ i ] = f ( α [ i ] ) \beta[i]=f(\alpha[i]) β [ i ] = f ( α [ i ]) and otherwise β [ i ] = ⋆ \beta[i]=\star β [ i ] = ⋆ .
If type ( α ) [ i ] = vertex set \operatorname{type}(\alpha)[i]=\operatorname{vertex\ set} type ( α ) [ i ] = vertex set then β [ i ] = α [ i ] ∩ A \beta[i]=\alpha[i]\cap A β [ i ] = α [ i ] ∩ A
If type ( α ) [ i ] = edge set \operatorname{type}(\alpha)[i]=\operatorname{edge\ set} type ( α ) [ i ] = edge set then β [ i ] = ( α [ i ] ∩ ( E ( D β ) ∪ H ( D β ) ) ) ∪ { f ( e ) ∣ e ∈ β [ i ] ∩ δ ( A ) } \beta[i]=(\alpha[i]\cap(E(D_\beta)\cup H(D_\beta)))\cup\{f(e)\mid e\in\beta[i]\cap\delta(A)\} β [ i ] = ( α [ i ] ∩ ( E ( D β ) ∪ H ( D β ))) ∪ { f ( e ) ∣ e ∈ β [ i ] ∩ δ ( A )} (i.e. all edges that were part of the A A A side, but edges in δ ( A ) \delta(A) δ ( A ) get correctly replaced by their corresponding half-arcs).
Since β ∈ B ⊆ p \beta\in B^p_{\subseteq} β ∈ B ⊆ p and β \beta β is strictly smaller than α \alpha α , we can recursively call Understand-ALG to find the Eulerian representative β ′ \beta' β ′ such that E β = E β ′ E_\beta=E_{\beta'} E β = E β ′ .
We next define the arc-boundaried structure γ ∈ B ⊆ p \gamma\in B^p_{\subseteq} γ ∈ B ⊆ p which will roughly correspond to replacing the A A A side of α \alpha α by β ′ \beta' β ′ . More formally, to construct D γ D_\gamma D γ start by taking the disjoint union of D β ′ D_{\beta'} D β ′ with only the half-arcs with label not in λ β ( f ( δ ( A ) ) ) \lambda_\beta(f(\delta(A))) λ β ( f ( δ ( A ))) and D α [ B ] D_\alpha[B] D α [ B ] with only the half-arcs of H ( D α ) H(D_\alpha) H ( D α ) . For each edge e = ( u , v ) ∈ δ ( A ) e=(u,v)\in\delta(A) e = ( u , v ) ∈ δ ( A ) , such that u ∈ A u\in A u ∈ A , we add an edge from the tail of λ β ′ − 1 ( λ β ( f ( e ) ) ) \lambda_{\beta'}^{-1}(\lambda_\beta(f(e))) λ β ′ − 1 ( λ β ( f ( e ))) to v v v . Alternatively, if v ∈ A v\in A v ∈ A , we add an edge from u u u to the head of λ β ′ − 1 ( λ β ( f ( e ) ) ) \lambda_{\beta'}^{-1}(\lambda_\beta(f(e))) λ β ′ − 1 ( λ β ( f ( e ))) . Similar as for a formal gluing operation, we define here a function h h h that maps each edge or half-arc of D β ′ D_{\beta'} D β ′ and D α [ B ] D_\alpha[B] D α [ B ] to the edge or half-arc of D γ D_\gamma D γ that it naturally corresponds to. We can determine λ γ \lambda_\gamma λ γ by, for each half-arc e ∈ H ( D γ ) e\in H(D_\gamma) e ∈ H ( D γ ) , setting λ γ ( e ) \lambda_\gamma(e) λ γ ( e ) to λ α ( e ) \lambda_\alpha(e) λ α ( e ) or λ β ′ ( e ) \lambda_{\beta'}(e) λ β ′ ( e ) depending on whether e ∈ H ( D α ) e\in H(D_\alpha) e ∈ H ( D α ) or e ∈ H ( D β ′ ) e\in H(D_{\beta'}) e ∈ H ( D β ′ ) , respectively. To finish our definition of γ \gamma γ , for each i ∈ { 2 , … , p } i\in\{2,\ldots,p\} i ∈ { 2 , … , p } we set the following.
If type ( β ′ ) [ i ] = ⋆ \operatorname{type}(\beta')[i]=\star type ( β ′ ) [ i ] = ⋆ then γ [ i ] = α [ i ] \gamma[i]=\alpha[i] γ [ i ] = α [ i ] .
If type ( β ′ ) [ i ] = vertex \operatorname{type}(\beta')[i]=\operatorname{vertex} type ( β ′ ) [ i ] = vertex , then γ [ i ] = β ′ [ i ] \gamma[i]=\beta'[i] γ [ i ] = β ′ [ i ] .
If type ( β ′ ) [ i ] = edge \operatorname{type}(\beta')[i]=\operatorname{edge} type ( β ′ ) [ i ] = edge , then γ [ i ] = h ( β ′ [ i ] ) \gamma[i]=h(\beta'[i]) γ [ i ] = h ( β ′ [ i ])
If type ( β ′ ) [ i ] = vertex set \operatorname{type}(\beta')[i]=\operatorname{vertex\ set} type ( β ′ ) [ i ] = vertex set , then γ [ i ] = β ′ [ i ] ∪ ( α [ i ] ∩ B ) \gamma[i]=\beta'[i]\cup(\alpha[i]\cap B) γ [ i ] = β ′ [ i ] ∪ ( α [ i ] ∩ B )
If type ( β ′ ) [ i ] = edge set \operatorname{type}(\beta')[i]=\operatorname{edge\ set} type ( β ′ ) [ i ] = edge set , then γ [ i ] = { h ( e ) ∣ e ∈ β ′ [ i ] ∪ ( α [ i ] ∩ ( E ( D α [ B ] ) ∪ H ( D α [ B ] ) ) ) } \gamma[i]=\{h(e)\mid e\in\beta'[i]\cup(\alpha[i]\cap(E(D_\alpha[B])\cup H(D_\alpha[B])))\} γ [ i ] = { h ( e ) ∣ e ∈ β ′ [ i ] ∪ ( α [ i ] ∩ ( E ( D α [ B ]) ∪ H ( D α [ B ])))} (i.e. the edges and half-arcs from D γ D_\gamma D γ that correspond to those from β ′ \beta' β ′ or from the B B B side of α \alpha α ).
To conclude the algorithm, we now solve the instance γ \gamma γ , which is strictly smaller than α \alpha α as ∣ β ′ ∣ ≤ r < ∣ β ∣ |\beta'|\leq r<|\beta| ∣ β ′ ∣ ≤ r < ∣ β ∣ . Let γ ′ \gamma' γ ′ be the output of the algorithm on instance γ \gamma γ . We continue to prove that γ ′ \gamma' γ ′ is indeed the right representative for α \alpha α . It should be clear from the description that Understand-ALG only outputs arc-boundaried structures in R ≡ ψ E [ B ⊆ p ] \mathcal{R}^{E}_{\equiv_\psi}[B^p_{\subseteq}] R ≡ ψ E [ B ⊆ p ] , so we focus on the following.
Claim 3.3. α ≡ ψ E γ ′ \alpha\equiv^{E}_{\psi}\gamma' α ≡ ψ E γ ′
Proof of Claim. By our assumption that the algorithm is correct on all inputs of size smaller than α \alpha α , we immediately obtain β ≡ ψ E β ′ \beta\equiv_{\psi}^{E} \beta' β ≡ ψ E β ′ and γ ≡ ψ E γ ′ \gamma\equiv_{\psi}^{E} \gamma' γ ≡ ψ E γ ′ . Hence the goal becomes α ≡ ψ E γ \alpha\equiv_{\psi}^{E} \gamma α ≡ ψ E γ . We start by arguing that α ≡ c γ \alpha\equiv_c \gamma α ≡ c γ . First note that L ( D α ) = L ( D γ ) L(D_\alpha) = L(D_\gamma) L ( D α ) = L ( D γ ) as H ( D α ) H(D_\alpha) H ( D α ) is partitioned over D α [ A ] D_\alpha[A] D α [ A ] (and in turn D β D_\beta D β ) and D α [ B ] D_\alpha[B] D α [ B ] , β ≡ ψ E β ′ \beta\equiv_{\psi}^{E} \beta' β ≡ ψ E β ′ and when constructing γ \gamma γ the corresponding half-arcs with labels in L ( D α ) L(D_\alpha) L ( D α ) are maintained. For the same reason, the half-arc with a label i ∈ I i \in I i ∈ I in D α D_\alpha D α has type hd if and only if the half-arc with label i i i in D γ D_\gamma D γ has type hd, hence D α D_\alpha D α and D β D_\beta D β are compatible with the same arc-boundaried digraphs. Clearly, γ \gamma γ has the same arity p p p as α \alpha α . For i ∈ { 2 , … , p } i \in\{2,\ldots,p\} i ∈ { 2 , … , p } , type ( α ) [ i ] = type ( γ ) [ i ] \operatorname{type}(\alpha)[i] = \operatorname{type}(\gamma)[i] type ( α ) [ i ] = type ( γ ) [ i ] because of how β [ i ] \beta[i] β [ i ] is set, β ≡ c β ′ \beta\equiv_c \beta' β ≡ c β ′ and how γ [ i ] \gamma[i] γ [ i ] is consequently defined. Hence α ≡ c γ \alpha\equiv_c \gamma α ≡ c γ .
It remains to prove that for an arbitrary Eulerian arc-boundaried structure η \eta η that is compatible with α \alpha α , we have ψ ( α ⊕ η ) = true \psi(\alpha\oplus\eta) = \text{true} ψ ( α ⊕ η ) = true if and only if ψ ( γ ⊕ η ) = true \psi(\gamma\oplus\eta) = \text{true} ψ ( γ ⊕ η ) = true . The intuitive idea is that to construct γ \gamma γ we replaced in α \alpha α the A A A side which was captured by β \beta β by β ′ \beta' β ′ , which are canonically equivalent. Since we can view both α ⊕ η \alpha\oplus\eta α ⊕ η and γ ⊕ η \gamma\oplus\eta γ ⊕ η instead as gluing something to β \beta β and β ′ \beta' β ′ , we can apply the equivalence of β \beta β and β ′ \beta' β ′ to arrive at our goal.
More formally, let μ ∈ B ⊆ I p \mu\in\mathcal{B}_{\subseteq I}^{p} μ ∈ B ⊆ I p be defined as follows. The arc-boundaried digraph D μ D_\mu D μ is equal to D ( α ⊕ η ) [ V ( D α ⊕ η ) ∖ A ] D_{(\alpha\oplus\eta)}[V(D_{\alpha\oplus\eta}) \setminus A] D ( α ⊕ η ) [ V ( D α ⊕ η ) ∖ A ] . To set λ μ \lambda_\mu λ μ , note that each edge in δ D ( α ⊕ η ) ( A ) \delta_{D_{(\alpha\oplus\eta)}}(A) δ D ( α ⊕ η ) ( A ) induces an half-arc e e e in H ( D μ ) H(D_\mu) H ( D μ ) but also can be bijectively mapped to a corresponding half-arc e ′ e' e ′ in H ( D β ) H(D_\beta) H ( D β ) . Thus we let λ μ ( e ) = λ β ( e ′ ) \lambda_\mu(e) = \lambda_\beta(e') λ μ ( e ) = λ β ( e ′ ) , from which it follows that D β ⊕ D μ = D α ⊕ D η D_\beta\oplus D_\mu= D_\alpha\oplus D_\eta D β ⊕ D μ = D α ⊕ D η . The remaining elements of the arc-boundaried structure μ \mu μ can naturally be set such that β ⊕ μ = α ⊕ η \beta\oplus\mu= \alpha\oplus\eta β ⊕ μ = α ⊕ η . In fact, since γ \gamma γ was constructed by effectively substituting β \beta β by β ′ \beta' β ′ it follows that β ′ ⊕ μ = γ ⊕ η \beta' \oplus\mu= \gamma\oplus\eta β ′ ⊕ μ = γ ⊕ η . This gives us the following
σ ψ ( α ⊕ η ) = σ ψ ( β ⊕ μ ) = σ ψ ( β ′ ⊕ μ ) = σ ψ ( γ ⊕ η ) \sigma_\psi(\alpha\oplus\eta) = \sigma_\psi(\beta\oplus\mu) = \sigma_\psi(\beta' \oplus\mu) = \sigma_\psi(\gamma\oplus\eta) σ ψ ( α ⊕ η ) = σ ψ ( β ⊕ μ ) = σ ψ ( β ′ ⊕ μ ) = σ ψ ( γ ⊕ η )
where the second equality follows from β ≡ ψ E β ′ \beta\equiv_{\psi}^{E} \beta' β ≡ ψ E β ′ .
It remains to show that Understand-ALG runs in time O ( n d ) O(n^d) O ( n d ) . We prove this by induction on the size of the instance that there exists a value x x x such that it runs in x ⋅ n d x \cdot n^d x ⋅ n d . The algorithm starts by calling the algorithm of Lemma 16, which for fixed s s s and c c c in time y ⋅ n 3 log n y \cdot n^3 \log n y ⋅ n 3 log n for some fixed y y y . We require from here x ≥ y x \ge y x ≥ y . In the base case with no recursive calls, Understand-ALG simply calls the algorithm of Lemma 16 which runs in time O ( n d ) O(n^d) O ( n d ) and hence in x ⋅ n d x \cdot n^d x ⋅ n d for an appropriate choice of x x x . We proceed to the inductive step. Given our input instance α \alpha α , Understand-ALG will be recursively applied to β \beta β and γ \gamma γ . Let n β = ∣ V ( D β ) ∣ n_\beta= |V(D_\beta)| n β = ∣ V ( D β ) ∣ and n γ = ∣ V ( D γ ) ∣ n_\gamma= |V(D_\gamma)| n γ = ∣ V ( D γ ) ∣ , then by the inductive hypothesis the two calls will run respectively in time x ⋅ ( n α ) d x \cdot(n_\alpha)^d x ⋅ ( n α ) d and x ⋅ ( n γ ) d x \cdot(n_\gamma)^d x ⋅ ( n γ ) d . Thus the total runtime will be upper bounded by
y ⋅ n 3 log n + x ⋅ ( ( n β ) d + ( n γ ) d ) y \cdot n^3 \log n + x \cdot((n_\beta)^d + (n_\gamma)^d) y ⋅ n 3 log n + x ⋅ (( n β ) d + ( n γ ) d )
Let t = ( s − r ) / c t = (s-r)/c t = ( s − r ) / c (hence t ≥ 2 r t \ge2r t ≥ 2 r ) and observe that n β , n γ ≥ s > t n_\beta,n_\gamma\ge s > t n β , n γ ≥ s > t . Furthermore, n β + n γ ≤ n + r n_\beta+ n_\gamma\le n+r n β + n γ ≤ n + r by choice of r r r . Define the function f ( z ) = z d + ( n β + n γ − z ) d f(z) = z^d + (n_\beta+n_\gamma-z)^d f ( z ) = z d + ( n β + n γ − z ) d . For 0 ≤ i ≤ n β + n γ 2 0 \le i \le\frac{n_\beta+n_\gamma}{2} 0 ≤ i ≤ 2 n β + n γ we have f ′ ( i ) ≤ 0 f'(i) \le0 f ′ ( i ) ≤ 0 and as at least one of n β n_\beta n β or n γ n_\gamma n γ is at most n β + n γ 2 \frac{n_\beta+n_\gamma}{2} 2 n β + n γ , we can derive the following.
( n β ) d + ( n γ ) d = f ( n β ) = f ( n γ ) ≤ f ( t ) = t d + ( n α + n γ − t ) d ≤ t d + ( n + r − t ) d (n_\beta)^d + (n_\gamma)^d = f(n_\beta) = f(n_\gamma) \le f(t) = t^d + (n_\alpha+n_\gamma-t)^d \le t^d + (n+r-t)^d ( n β ) d + ( n γ ) d = f ( n β ) = f ( n γ ) ≤ f ( t ) = t d + ( n α + n γ − t ) d ≤ t d + ( n + r − t ) d
Using this we can find the following upper bound on the runtime.
y ⋅ n 3 log n + x ⋅ ( ( n β ) d + ( n γ ) d ) ≤ y ⋅ n 3 log n + x ⋅ ( t d + ( n + r − t ) d ) = y ⋅ n 3 log n + x ⋅ t d + x ⋅ ( n + r − t ) ( n + r − t ) d − 1 ≤ y ⋅ n 3 log n + x ⋅ t d + x ⋅ ( n + r − t ) n d − 1 = x ⋅ n d + ( y ⋅ n 3 log n + x ⋅ t d + x ⋅ r n d − 1 ) − x ⋅ t n d − 1 \begin{aligned}
y \cdot n^3 \log n + x \cdot((n_\beta)^d + (n_\gamma)^d) \\
&\le y \cdot n^3 \log n + x \cdot(t^d + (n+r-t)^d) \\
&= y \cdot n^3 \log n + x \cdot t^d + x \cdot(n+r-t)(n+r-t)^{d-1} \\
&\le y \cdot n^3 \log n + x \cdot t^d + x \cdot(n+r-t)n^{d-1} \\
&= x \cdot n^d + (y \cdot n^3 \log n + x \cdot t^d + x \cdot rn^{d-1}) - x \cdot tn^{d-1}
\end{aligned} y ⋅ n 3 log n + x ⋅ (( n β ) d + ( n γ ) d ) ≤ y ⋅ n 3 log n + x ⋅ ( t d + ( n + r − t ) d ) = y ⋅ n 3 log n + x ⋅ t d + x ⋅ ( n + r − t ) ( n + r − t ) d − 1 ≤ y ⋅ n 3 log n + x ⋅ t d + x ⋅ ( n + r − t ) n d − 1 = x ⋅ n d + ( y ⋅ n 3 log n + x ⋅ t d + x ⋅ r n d − 1 ) − x ⋅ t n d − 1
Hence, to prove an upper bound of x ⋅ n d x \cdot n^d x ⋅ n d it suffices to prove that
x ⋅ t n d − 1 ≥ y ⋅ n 3 log n + x ⋅ t d + x ⋅ r n d − 1 . x \cdot tn^{d-1} \ge y \cdot n^3 \log n + x \cdot t^d + x \cdot rn^{d-1}. x ⋅ t n d − 1 ≥ y ⋅ n 3 log n + x ⋅ t d + x ⋅ r n d − 1 .
As t ≥ 2 r t \ge2r t ≥ 2 r , we have 1 2 x ⋅ t n d − 1 ≥ x ⋅ r n d − 1 \frac{1}{2}x \cdot tn^{d-1} \ge x \cdot rn^{d-1} 2 1 x ⋅ t n d − 1 ≥ x ⋅ r n d − 1 and since d > 4 d>4 d > 4 , if we ensure x / 4 ≥ y x/4 \ge y x /4 ≥ y also 1 4 x ⋅ t n d − 1 ≥ y ⋅ n 3 log n \frac{1}{4}x \cdot tn^{d-1} \ge y \cdot n^3 \log n 4 1 x ⋅ t n d − 1 ≥ y ⋅ n 3 log n . It remains to show
1 4 x ⋅ t n d − 1 ≥ x ⋅ t d , \frac{1}{4}x \cdot tn^{d-1} \ge x \cdot t^d, 4 1 x ⋅ t n d − 1 ≥ x ⋅ t d ,
but this immediately follows since n > 2 ( s − r ) n > 2(s-r) n > 2 ( s − r ) (otherwise the graph is trivially unbreakable), and t ≤ s − r t \le s-r t ≤ s − r . □
Applications of the Eulerian Breakability Framework
In this section we demonstrate how Theorem 9 can be used to find FPT algorithms by applying it to two cut problems on Eulerian digraphs, namely Directed Edge Multiway Cut-Uncut and Directed Steiner Cut. These are two prime examples of problems for which in the undirected setting breakability proved especially useful to find algorithmic results. The minimum bisection2 problem is a third major example of such a problem, however one can easily see that the directed version on Eulerian digraphs reduces to the undirected version of the problem, and is thus immediately FPT.
When designing algorithms on unbreakable instances, it is common to rely on a colour-coding approach. In such cases we will make use of the following lemma that is stated by Chitnis et al. [2 ] and based on the work by Naor, Schulman and Srinivasan [26 ] to be able to present our algorithms in a deterministic manner.
Lemma 20. Given a set U U U of size n n n , and integers 0 ≤ a , b ≤ n 0 \leq a,b \leq n 0 ≤ a , b ≤ n , one can in time 2 O ( min ( a , b ) log ( a + b ) ) n log n 2^{O(\min(a,b)\log(a+b))}n\log n 2 O ( m i n ( a , b ) l o g ( a + b )) n log n construct a family F \mathcal{F} F of at most 2 O ( min ( a , b ) log ( a + b ) ) log n 2^{O(\min(a,b)\log(a+b))}\log n 2 O ( m i n ( a , b ) l o g ( a + b )) log n subsets of U U U , such that the following holds: for any sets A , B ⊆ U A,B \subseteq U A , B ⊆ U , A ∩ B = ∅ A \cap B = \varnothing A ∩ B = ∅ , ∣ A ∣ ≤ a |A| \leq a ∣ A ∣ ≤ a , ∣ B ∣ ≤ b |B| \leq b ∣ B ∣ ≤ b , there exists a set S ∈ F S \in\mathcal{F} S ∈ F with A ⊆ S A \subseteq S A ⊆ S and B ∩ S = ∅ B \cap S = \varnothing B ∩ S = ∅ .
Directed Edge Multiway Cut-Uncut
In this section we focus on the directed analogue of the Edge Multiway Cut-Uncut problem and prove the following.
Theorem 6. Directed Edge Multiway Cut-Uncut on Eulerian digraphs is (nonuniformly) FPT parameterized by k k k .
The first step is to show that DEMCU is CMSO2 _2 2 -expressible. To this end, we define the following formula with free variables R R R , T T T and S S S that should be interpreted according to the problem definition. We will use several obvious shorthands for sake of readability.
ψ = cluster ( R ) ∧ ∀ s , t ∈ T [ strong-con ( s , t ) ⟺ ( s , t ) ∈ R ] \psi= \operatorname{cluster}(R) \land\forall_{s,t\in T}[\operatorname{strong-con}(s,t) \Longleftrightarrow(s,t)\in R] ψ = cluster ( R ) ∧ ∀ s , t ∈ T [ strong-con ( s , t ) ⟺ ( s , t ) ∈ R ]
where
cluster ( R ) = ∀ u , v , w ∈ T [ ( ( u , v ) ∈ R ⇒ ( v , u ) ∈ R ) ∧ ( ( ( u , v ) ∈ R ∧ ( v , w ) ∈ R ) ⇒ ( u , w ) ∈ R ) ] \operatorname{cluster}(R) = \forall_{u,v,w\in T}[((u,v)\in R \Rightarrow(v,u)\in R)
\land(((u,v)\in R \land(v,w)\in R) \Rightarrow(u,w)\in R)] cluster ( R ) = ∀ u , v , w ∈ T [(( u , v ) ∈ R ⇒ ( v , u ) ∈ R ) ∧ ((( u , v ) ∈ R ∧ ( v , w ) ∈ R ) ⇒ ( u , w ) ∈ R )]
strong-con ( s , t ) = ∀ A , B ⊆ V ( D ) [ disjoint ( A , B ) ∧ ( ( s ∈ A ∧ t ∈ B ) ∨ ( t ∈ A ∧ s ∈ B ) ) ⇒ ∃ e ∈ E ( D ) ∖ ( S ∪ R ) ∃ u , v ∈ V ( D ) tail ( e , u ) ∧ head ( e , v ) ∧ ( u ∈ A ∧ v ∈ B ) ] \operatorname{strong-con}(s,t) = \forall_{A,B\subseteq V(D)}[\operatorname{disjoint}(A,B)\land((s\in A\land t\in B)\lor(t\in A\land s\in B))
\Rightarrow\exists_{e\in E(D)\setminus(S\cup R)}\exists_{u,v\in V(D)}\operatorname{tail}(e,u)\land\operatorname{head}(e,v)\land(u\in A\land v\in B)] strong-con ( s , t ) = ∀ A , B ⊆ V ( D ) [ disjoint ( A , B ) ∧ (( s ∈ A ∧ t ∈ B ) ∨ ( t ∈ A ∧ s ∈ B )) ⇒ ∃ e ∈ E ( D ) ∖ ( S ∪ R ) ∃ u , v ∈ V ( D ) tail ( e , u ) ∧ head ( e , v ) ∧ ( u ∈ A ∧ v ∈ B )]
Observation 21. ( D , T , R , k ) (D,T,R,k) ( D , T , R , k ) is a Yes-instance of DEMCU if and only if ( ( D ′ , T , R ) , k ) ((D',T,R),k) (( D ′ , T , R ) , k ) is a Yes-instance of min-Edge-CMSO[ ψ ] [\psi] [ ψ ] where D ′ = ( V ( D ) , E ( D ) ∪ R ) D'=(V(D),E(D)\cup R) D ′ = ( V ( D ) , E ( D ) ∪ R ) .
Thus, by Theorem 9, it suffices to solve min-Edge-CMSO[ ψ ] [\psi] [ ψ ] on ( q ( k ) , 2 k ) (q(k),2k) ( q ( k ) , 2 k ) -unbreakable structures where q q q is the function obtained from the theorem.
Lemma 22. min-Edge-CMSO2 [ ψ ] _2[\psi] 2 [ ψ ] is FPT on ( q ( k ) , 2 k ) (q(k),2k) ( q ( k ) , 2 k ) -unbreakable structures parameterized by k k k .
Proof. First note that we can easily check in polynomial time for our structure ( D ′ , T , R ) (D',T,R) ( D ′ , T , R ) whether R R R is a cluster. Hence, assume this property to be satisfied, which means it remains to determine whether Eulerian, ( q ( k ) , 2 k ) (q(k),2k) ( q ( k ) , 2 k ) -unbreakable, DEMCU instance ( D , T , R , k ) (D,T,R,k) ( D , T , R , k ) is a YES-instance. Keep in mind that the unbreakability property applies to D ′ D' D ′ , rather than D D D .
Let S ⊆ E ( D ) S \subseteq E(D) S ⊆ E ( D ) be a hypothetical minimal witness to it being a YES-instance. Consider a topological ordering of D − S D-S D − S and let C 0 C_0 C 0 be the largest strongly connected component in the ordering. By minimality we must have that S S S is precisely the set of arcs going backwards between components in this ordering. Since in an Eulerian digraph the number of backward arcs is invariant under cyclic shifts of the ordering [Wahl18, Lemma 4.4.2], we may consider without loss of generality a solution S S S such that C 0 C_0 C 0 is first in this ordering. Let C 0 , C 1 , … , C r C_0,C_1,\ldots,C_r C 0 , C 1 , … , C r be the ordering on the strongly connected components of D − S D-S D − S . As $S contains all backward arcs, for each prefix { C 0 , … , C i } \{C_0,\ldots,C_i\} { C 0 , … , C i } of the ordering there are at most ∣ S ∣ |S| ∣ S ∣ arcs from V ( D ) ∖ ( C 0 ∪ … ∪ C i ) V(D)\setminus(C_0\cup\ldots\cup C_i) V ( D ) ∖ ( C 0 ∪ … ∪ C i ) to ( C 0 ∪ … ∪ C i ) (C_0\cup\ldots\cup C_i) ( C 0 ∪ … ∪ C i ) and hence by Eulerianness at most 2 ∣ S ∣ ≤ 2 k 2|S|\le2k 2∣ S ∣ ≤ 2 k edges in total between these two parts. Furthermore, by nature of R R R , no arcs in it cross strongly connected components for a solution S S S . As D ′ D' D ′ is ( q ( k ) , 2 k ) (q(k),2k) ( q ( k ) , 2 k ) -unbreakable, this must mean that r ≤ 2 q ( k ) r\le2q(k) r ≤ 2 q ( k ) . Now, if C 0 C_0 C 0 contains at most q ( k ) q(k) q ( k ) vertices, then ∣ V ( D ) ∣ ≤ 2 q ( k ) 2 |V(D)|\le2q(k)^2 ∣ V ( D ) ∣ ≤ 2 q ( k ) 2 and the problem could be solved through brute-force, hence assume ∣ C 0 ∣ > q ( k ) |C_0|>q(k) ∣ C 0 ∣ > q ( k ) from which it immediately follows that ∣ C 1 ∪ C 2 ∪ ⋯ ∪ C r ∣ ≤ q ( k ) |C_1\cup C_2\cup\cdots\cup C_r|\le q(k) ∣ C 1 ∪ C 2 ∪ ⋯ ∪ C r ∣ ≤ q ( k ) . We can also conclude at this point that if R R R has more than q ( k ) + 1 q(k)+1 q ( k ) + 1 equivalence classes, then it must be a NO-instance. Keep in mind that, contrary to the undirected version of the same problem, for an optimal solution there can be components not containing any equivalence class.
We will find S S S through colour coding. We colour every arc in D D D either red or black. We consider a colouring good when the following properties are satisfied.
All arcs between different strongly connected components of D − S D-S D − S are red.
An arbitrary spanning tree within each small component C 1 C_1 C 1 to C r C_r C r is coloured black.
For each vertex v v v in C 0 C_0 C 0 that is the endpoint of an arc with as other endpoint a vertex outside of C 0 C_0 C 0 , there is a set of q ( k ) + 1 q(k)+1 q ( k ) + 1 vertices in C 0 C_0 C 0 containing v v v such that a spanning tree of this set is coloured black.
In fact, we will use Lemma 20 to deterministically compute a family of colourings, such that at least one corresponds to a good colouring (under the assumption that S S S exists). As the number of arcs that we constrain in a good colouring is bounded in terms of k k k , this computation can be done in FPT time, after which we try to use all sets in the family, of which there are f ( k ) log n f(k)\log n f ( k ) log n for some function f f f .
We show how to extract S S S using the colouring by identifying the components C 1 C_1 C 1 to C r C_r C r . Contract each weakly connected components of D D D minus the red arcs to a single vertex and let D ∗ D^* D ∗ be the resulting graph. Let B B B be the set of vertices of D ∗ D^* D ∗ that were formed by contracting components with at least q ( k ) + 1 q(k)+1 q ( k ) + 1 vertices. Note that for a good colouring all vertices in B B B must be part of C 0 C_0 C 0 , and each of C 1 C_1 C 1 to C r C_r C r was contracted to single vertices c 1 c_1 c 1 to c r c_r c r . At this point, we can guess which one of the at most q ( k ) q(k) q ( k ) equivalence classes should be contained in C 0 C_0 C 0 (if any). Then all other equivalence classes should have been entirely contained in a weakly connected component of D D D with only the black arcs, and any such component contains at most one class. Hence if neither is the case we can discard this guess, and if no guess is valid we discard the colouring. We mark the vertices of D ∗ D^* D ∗ that originate from a component that contained an equivalence class. Now consider the weakly connected components of D ∗ − B D^*-B D ∗ − B . We claim that the vertices c 1 c_1 c 1 to c r c_r c r are precisely those vertices contained in components of D ∗ − B D^*-B D ∗ − B containing at least one marked vertex. Since B B B separates c 1 c_1 c 1 to c r c_r c r from the remainder of the graph, any component contains either exclusively vertices within C 0 C_0 C 0 or outside of it. Any component with a marked vertex must then clearly be composed of a subset of the vertices { c 1 , … , c r } \{c_1,\ldots,c_r\} { c 1 , … , c r } . Furthermore, any component without a marked vertex will be contained in C 0 C_0 C 0 by minimality of S S S . Having identified the set of vertices { c 1 , c 2 , … , c r } \{c_1,c_2,\ldots,c_r\} { c 1 , c 2 , … , c r } we can extract { C 1 , C 2 , … , C r } \{C_1,C_2,\ldots,C_r\} { C 1 , C 2 , … , C r } by reversing the contractions. In order to find S S S (or another solution) it suffices to guess which of the at most r ! ≤ q ( k ) ! r! \le q(k)! r ! ≤ q ( k )! orderings the found components appear in, and verify whether this leads to a valid solution of size at most k k k . As we are guaranteed that at least one colouring and guess is compatible with S S S , we are guaranteed to find a solution if one exists.
Directed Steiner Cut
The Directed Steiner Cut problem is the directed analogue of the Steiner Cut problem, which is known to be FPT when parameterized by the deletion budget for undirected graphs [2 ] . This inspires us to look at the directed version.
We follow similar steps as for Directed Edge Multiway Cut-Uncut. We first define a CMSO2 _2 2 formula ψ \psi ψ that is satisfied by a suitable structure if and only if the DSC instance is a YES-instance. Then we solve the problem on unbreakable structures through derandomised colour-coding.
ψ ≡ ∃ V 1 , V 2 , … , V p ⊆ V ( D ) [ ⋀ i = 1 p strong-comp ( V i ) ∧ ∃ t ∈ T : ( t ∈ V i ) ∧ ⋀ j ≠ i ( V i ≠ V j ) ] \psi\equiv\exists V_1,V_2,\ldots,V_p\subseteq V(D)\left[\bigwedge_{i=1}^{p}\operatorname{strong-comp}(V_i)\land\exists t\in T:(t\in V_i)\land\bigwedge_{j\ne i}(V_i\ne V_j)\right] ψ ≡ ∃ V 1 , V 2 , … , V p ⊆ V ( D ) i = 1 ⋀ p strong-comp ( V i ) ∧ ∃ t ∈ T : ( t ∈ V i ) ∧ j = i ⋀ ( V i = V j )
where
strong-comp ( V i ) = strong-con ( V i ) ∧ ∀ U ⊆ V ( D ) [ V i ⊂ U ⇒ ¬ strong-con ( U ) ] strong-con ( V i ) = ∀ A , B ⊆ V i [ disjoint ( A , B ) ⇒ ∃ e ∈ E ( D ) ∖ S ∃ u , v ∈ V ( D ) tail ( e , u ) ∧ head ( e , v ) ∧ ( u ∈ A ∧ v ∈ B ) ∧ ∃ e ∈ E ( D ) ∖ S ∃ u , v ∈ V ( D ) tail ( e , u ) ∧ head ( e , v ) ∧ ( u ∈ B ∧ v ∈ A ) ] \begin{aligned}
\operatorname{strong-comp}(V_i) &= \operatorname{strong-con}(V_i) \land\forall_{U \subseteq V(D)}[V_i \subset U \Rightarrow\neg\operatorname{strong-con}(U)]\\
\operatorname{strong-con}(V_i) &= \forall_{A,B \subseteq V_i}[\operatorname{disjoint}(A,B) \Rightarrow\\
&\qquad\exists_{e \in E(D)\setminus S}\exists_{u,v \in V(D)}\operatorname{tail}(e,u) \land\operatorname{head}(e,v) \land(u \in A \land v \in B) \land\\
&\qquad\exists_{e \in E(D)\setminus S}\exists_{u,v \in V(D)}\operatorname{tail}(e,u) \land\operatorname{head}(e,v) \land(u \in B \land v \in A)]
\end{aligned} strong-comp ( V i ) strong-con ( V i ) = strong-con ( V i ) ∧ ∀ U ⊆ V ( D ) [ V i ⊂ U ⇒ ¬ strong-con ( U )] = ∀ A , B ⊆ V i [ disjoint ( A , B ) ⇒ ∃ e ∈ E ( D ) ∖ S ∃ u , v ∈ V ( D ) tail ( e , u ) ∧ head ( e , v ) ∧ ( u ∈ A ∧ v ∈ B ) ∧ ∃ e ∈ E ( D ) ∖ S ∃ u , v ∈ V ( D ) tail ( e , u ) ∧ head ( e , v ) ∧ ( u ∈ B ∧ v ∈ A )]
Observation 23. ( D , T , p , k ) (D,T,p,k) ( D , T , p , k ) is a Yes-instance for DSC if and only if ( ( D , T , p ) , k ) ((D,T,p),k) (( D , T , p ) , k ) is a Yes-instance for MIN-EDGE-CMSO[ ψ ] [\psi] [ ψ ] .
Lemma 24. MIN-EDGE-CMSO2 [ ψ ] _2[\psi] 2 [ ψ ] is FPT on ( q ( k , p ) , 2 k ) (q(k,p),2k) ( q ( k , p ) , 2 k ) -unbreakable structures parameterized by k + p k+p k + p .
Proof. Similar as for DIRECTED EDGE MULTIWAY CUT-UNCUT, we start by considering a hypothetical minimal solution S ⊆ E ( D ) S \subseteq E(D) S ⊆ E ( D ) . Let C 0 C_0 C 0 be the largest strongly component in D − S D-S D − S and as D D D is Eulerian assume without loss of generality that the topological ordering of D − S D-S D − S is C 0 , C 1 , … , C r C_0,C_1,\ldots,C_r C 0 , C 1 , … , C r for some r r r . Then S S S contains all backwards arcs of this ordering. Repeating the argument found in Lemma 22 tells us that either ∣ V ( D ) ∣ ≤ 2 q ( k , p ) |V(D)| \leq2q(k,p) ∣ V ( D ) ∣ ≤ 2 q ( k , p ) (and the problem can be solved by brute-force), or ∣ C 1 ∪ C 2 ∪ ⋯ ∪ C r ∣ ≤ q ( k , p ) |C_1 \cup C_2 \cup\cdots\cup C_r| \leq q(k,p) ∣ C 1 ∪ C 2 ∪ ⋯ ∪ C r ∣ ≤ q ( k , p ) . We again colour every arc in D D D either red or black and consider a colouring good when it satisfies the following properties.
All arcs between different strongly connected components of D − S D-S D − S are red.
An arbitrary spanning tree within each small component C 1 C_1 C 1 to C p C_p C p is coloured black.
For each vertex v v v in C 0 C_0 C 0 that is the endpoint of an arc with as other endpoint a vertex outside of C 0 C_0 C 0 , there is a set of q ( k , p ) + 1 q(k,p)+1 q ( k , p ) + 1 vertices in C 0 C_0 C 0 containing v v v such that a spanning tree of this set is coloured black.
Using Lemma 20 we compute in FPT time a family of colourings such that at least one is good, if a good colouring exists (i.e. if a solution S S S exists). Let D ∗ D^* D ∗ be the graph D D D after contracting all black arcs (i.e. all weakly connected components of D D D without the red arcs become single vertices). That means that each small component C i C_i C i was contracted to a single vertex c i c_i c i for i ∈ { 1 … , r } i \in\{1\ldots,r\} i ∈ { 1 … , r } . For each vertex of D ∗ D^* D ∗ we want to guess if it was one of { c 1 … , c r } \{c_1\ldots,c_r\} { c 1 … , c r } or whether it belongs to C 0 C_0 C 0 . Let B B B be the set of all vertices of D ∗ D^* D ∗ to which at least q ( k , p ) + 1 q(k,p)+1 q ( k , p ) + 1 vertices were contracted. Then we know all of B B B belongs to C 0 C_0 C 0 and in particular B B B separates the vertices belonging to C 0 C_0 C 0 from { c 1 , … , c r } \{c_1,\ldots,c_r\} { c 1 , … , c r } . In particular, that means that every weakly connected component of D ∗ − B D^*-B D ∗ − B must be either a subset of { c 1 , … , c r } \{c_1,\ldots,c_r\} { c 1 , … , c r } or be entirely contained in C 0 C_0 C 0 . Let H i H_i H i denote a connected component of D ∗ − B D^*-B D ∗ − B . We compute both the cost and value of choosing H H H not to be in C 0 C_0 C 0 . If ∣ V ( H ) ∣ > q ( k , p ) |V(H)| > q(k,p) ∣ V ( H ) ∣ > q ( k , p ) then by ( q ( k , p ) , 2 k ) (q(k,p),2k) ( q ( k , p ) , 2 k ) -breakability of D D D it must be that H H H belongs to C 0 C_0 C 0 . Otherwise, we set the value simply to the number of vertices of H H H that are a terminal or to which a terminal T T T was contracted. We minimise the cost by trying all of the at most q ( k , p ) ! q(k,p)! q ( k , p )! topological orderings of the vertices of H H H and record the minimum number of backward arcs. We also include all arcs to B B B , as C 0 C_0 C 0 is fixed to be the first component of the topological ordering of D − S D-S D − S . This also allows us to compute the cost and value of each weakly connected component independently. After computing all costs and values, we can find a choice of components leading to at least p p p strongly connected components and at most k k k cut arcs, if one such choice exists for this guess, by setting up a polynomial-time solvable knapsack instance with these components as items. □
Combining Observation 23, Lemma 24 and Theorem 9 will give us the FPT result that we are looking for. In fact, one technically needs a variation on Theorem 9 in order to handle a parameterization other than just k k k . However, given Theorem 11 it should be clear that such a variation is not hard to prove in an analogous manner as the current proof by defining for a given p p p the sentence ψ p \psi_p ψ p as the formulation for ψ \psi ψ as seen above, after which we solve the MIN-EDGE-CMSO2 [ ψ p ] _2[\psi_p] 2 [ ψ p ] problem.
Theorem 12. DIRECTED STEINER CUT on Eulerian digraphs is (nonuniformly) FPT parameterized by k + p k+p k + p .
The need to include p p p as parameter comes from the fact that the length of the CMSO2 _2 2 formula, and thus the function for q q q obtained from Theorem 9, depends on k k k and p p p . For the undirected version of the problem it is observed in [2 ] that one can reduce the instance to get p p p to be linear in k k k . This reduction crucially relies on the fact that deleting an edge from an undirected graph increases the number of connected components by at most one. In contrast, deleting an arc from a directed graph can increase the number of strongly connected components by up to n − 1 n-1 n − 1 .
Hardness results
In this section we show that the two problems considered in § 5 are W[1]-hard on general digraphs.
Multiway cut-uncut
Theorem 13. Directed Edge Multiway Cut-Uncut on general digraphs is W[1]-hard when parameterized by k k k , even when R R R has only two equivalence classes.
Proof. We will reduce from the Clique problem. Let ( G , k ) (G,k) ( G , k ) be an instance for Clique, we will construct an instance ( D , T , R , k ′ ) (D,T,R,k') ( D , T , R , k ′ ) of DEMCU as follows. First, set k ′ = 2 k k'=2k k ′ = 2 k . We describe step by step how we build D D D , T T T and R R R . The digraph D D D has two vertices a a a and b b b , which are both terminals in different equivalence classes connected through an undeletable arc from b b b to a a a (realised as k ′ + 1 k'+1 k ′ + 1 parallel arcs).
For each i ∈ [ k ] i \in[k] i ∈ [ k ] , we construct two paths P i P_i P i and Q i Q_i Q i from a a a to b b b . Specifically, V ( P i ) = { p 0 i , p 1 i , … , p n i } V(P_i)=\{p_0^i,p_1^i,\ldots,p_n^i\} V ( P i ) = { p 0 i , p 1 i , … , p n i } and V ( Q i ) = { q 1 i , … , q n + 1 i } V(Q_i)=\{q_1^i,\ldots,q_{n+1}^i\} V ( Q i ) = { q 1 i , … , q n + 1 i } . The paths have arcs ( p j i , p j + 1 i ) (p_j^i,p_{j+1}^i) ( p j i , p j + 1 i ) for 0 ≤ j < n 0 \leq j < n 0 ≤ j < n , and ( q j + 1 i , q j i ) (q_{j+1}^i,q_j^i) ( q j + 1 i , q j i ) for 1 ≤ j ≤ n 1 \leq j \leq n 1 ≤ j ≤ n , and are connected to a a a and b b b through undeletable arcs ( a , p 0 i ) (a,p_0^i) ( a , p 0 i ) , ( a , q n + 1 i ) (a,q_{n+1}^i) ( a , q n + 1 i ) , ( p n i , b ) (p_n^i,b) ( p n i , b ) and ( q 1 i , b ) (q_1^i,b) ( q 1 i , b ) .
As a consequence of the construction so far, in order to ensure that a a a and b b b do not end up in the same strongly connected component, every solution needs to select exactly one arc per path P i P_i P i and per path Q i Q_i Q i for i ∈ [ k ] i \in[k] i ∈ [ k ] . The choice of arcs here will simulate our choice of vertices for a clique in G G G . In particular, let us denote V ( G ) V(G) V ( G ) by { v 1 , v 2 , … , v n } \{v_1,v_2,\ldots,v_n\} { v 1 , v 2 , … , v n } . We then want that selecting v j v_j v j for the clique is simulated by cutting the two arcs going into p j i p_j^i p j i and q j i q_j^i q j i for precisely one i ∈ [ k ] i \in[k] i ∈ [ k ] .
As a first step, we want to ‘synchronise’ the choices for P i P_i P i and Q i Q_i Q i . We do this as follows. For each i ∈ [ k ] i \in[k] i ∈ [ k ] and j ∈ [ n ] j \in[n] j ∈ [ n ] , we add a terminal a j i a_j^i a j i , which belongs to the same equivalence class as a a a , and undeletable arcs ( p j − 1 i , a j i ) (p_{j-1}^i,a_j^i) ( p j − 1 i , a j i ) , ( q j + 1 i , a j i ) (q_{j+1}^i,a_j^i) ( q j + 1 i , a j i ) and ( a j i , a ) (a_j^i,a) ( a j i , a ) . Similarly, we add a terminal b j i b_j^i b j i in the equivalence class of b b b and add undeletable arcs ( b j i , p j − 1 i ) (b_j^i,p_{j-1}^i) ( b j i , p j − 1 i ) , ( b j i , q j i ) (b_j^i,q_j^i) ( b j i , q j i ) and ( b j i , b ) (b_j^i,b) ( b j i , b ) . See Figure 2 for an illustration. One can now confirm that, when a solution selects an arc ( p j − 1 i , p j i ) (p_{j-1}^i,p_j^i) ( p j − 1 i , p j i ) , then in order for a j i a_j^i a j i to be reachable from a a a the solution must select an arc of Q i Q_i Q i appearing after q j + 1 i q_{j+1}^i q j + 1 i . Simultaneously, in order for b j i b_j^i b j i to be able to reach b b b , the selected arc of Q i Q_i Q i must appear before q j i q_j^i q j i . That means the only valid choice is the arc ( q j + 1 i , q j i ) (q_{j+1}^i,q_j^i) ( q j + 1 i , q j i ) . One can confirm that for any j ∈ [ n ] j \in[n] j ∈ [ n ] , selecting these two arcs ensures that all connectivity requirements on the terminals introduced so far are satisfied.
Figure 2. Choice-synchronisation gadget between a path P i P_i P i and a path Q i Q_i Q i in the construction of the DEMCU instance. Undeletable arcs are drawn in bold.
As a next step, we will introduce gadgets to ensure that if in paths P i P_i P i and Q i Q_i Q i some vertex j j j is selected through their arc choice, and if paths P i ′ P_{i'} P i ′ , Q i ′ Q_{i'} Q i ′ for i ≠ i ′ i \neq i' i = i ′ a vertex j ′ j' j ′ is selected, then we must necessarily have that { v j , v j ′ } ∈ E ( G ) \{v_j,v_{j'}\} \in E(G) { v j , v j ′ } ∈ E ( G ) . To achieve this we will utilise the fact that when a path pair P i P_i P i and Q i Q_i Q i make a choice for a vertex v j v_j v j through their arc-cuts, then there is one unique index, namely j j j , such that both p j i p_j^i p j i and q j i q_j^i q j i are not reachable from a a a . So, for each distinct pair i , i ′ ∈ [ k ] i,i' \in[k] i , i ′ ∈ [ k ] and for each j , j ′ ∈ [ n ] j,j' \in[n] j , j ′ ∈ [ n ] such that { v j , v j ′ } ∉ E ( G ) \{v_j,v_{j'}\} \notin E(G) { v j , v j ′ } ∈ / E ( G ) , we introduce a terminal vertex e j , j ′ i , i ′ e_{j,j'}^{i,i'} e j , j ′ i , i ′ in the same class as a a a , and we add an undeletable arc ( e j , j ′ i , i ′ , a ) (e_{j,j'}^{i,i'},a) ( e j , j ′ i , i ′ , a ) , as well as an undeletable arc from p j i p_j^i p j i , q j i q_j^i q j i , p j ′ i ′ p_{j'}^{i'} p j ′ i ′ and q j ′ i ′ q_{j'}^{i'} q j ′ i ′ to e j , j ′ i , i ′ e_{j,j'}^{i,i'} e j , j ′ i , i ′ . This ensures that a a a can reach e j , j ′ i , i ′ e_{j,j'}^{i,i'} e j , j ′ i , i ′ if and only if in P i P_i P i and Q i Q_i Q i the arcs for v j v_j v j are not selected, or in P i ′ P_{i'} P i ′ and Q i ′ Q_{i'} Q i ′ the arcs for v j ′ v_{j'} v j ′ are not selected.
Correctness of the reduction now follows from correctness of the individual gadgets, and the observation that these gadgets do not interfere.
Directed Steiner cut
Theorem 14. Directed Steiner Cut on general digraphs is W[1]-hard when parameterized by k + p k+p k + p .
Proof. We show W[1]-hardness by reducing from the Clique problem. Given an instance ( G , k ) (G,k) ( G , k ) of Clique , we construct an instance ( D , T , k , p ) (D,T,k,p) ( D , T , k , p ) of DSC as follows. We set p = ( k 2 ) + 1 p=\binom{k}{2}+1 p = ( 2 k ) + 1 . Construct D D D by taking as vertex set V ( D ) = { r } ∪ { a v ∣ v ∈ V ( G ) } ∪ { t e ∣ e ∈ E ( G ) } V(D)=\{r\}\cup\{a_v\mid v\in V(G)\}\cup\{t_e\mid e\in E(G)\} V ( D ) = { r } ∪ { a v ∣ v ∈ V ( G )} ∪ { t e ∣ e ∈ E ( G )} . We have arcs ( r , a v ) (r,a_v) ( r , a v ) for each v ∈ V ( G ) v\in V(G) v ∈ V ( G ) . Furthermore, we add an undeletable arc ( a v , r ) (a_v,r) ( a v , r ) (undeletable arcs can be modelled by k + 1 k+1 k + 1 parallel arcs). Next, for each edge u v ∈ E ( G ) uv\in E(G) uv ∈ E ( G ) , we add undeletable arcs from a u a_u a u and a v a_v a v to t u v t_{uv} t uv . Finally, we add an undeletable arc from each t e t_e t e to r r r . We conclude by setting T = { r } ∪ { t e ∣ e ∈ E ( G ) } T=\{r\}\cup\{t_e\mid e\in E(G)\} T = { r } ∪ { t e ∣ e ∈ E ( G )} .
We now show that the reduction is correct. Let C ⊆ V ( G ) C\subseteq V(G) C ⊆ V ( G ) be a clique of size k k k in G G G . Then we let X = { ( r , a v ) ∣ v ∈ C } X=\{(r,a_v)\mid v\in C\} X = {( r , a v ) ∣ v ∈ C } be our cutset for the DSC instance. Clearly ∣ X ∣ = ∣ C ∣ = k |X|=|C|=k ∣ X ∣ = ∣ C ∣ = k , hence it remains to show that D − X D-X D − X has at least p p p strongly connected components with a terminal. For this, it suffices to observe that a vertex t u v t_{uv} t uv is in a strongly connected component distinct from the one containing r r r if and only if X X X contains both the arcs from r r r to a u a_u a u and to a v a_v a v . Thus, the number of strongly connected components of D − X D-X D − X containing a terminal is precisely one plus the number of edges in G [ C ] G[C] G [ C ] , which is ( k 2 ) \binom{k}{2} ( 2 k ) as C C C is a clique.
For the converse, let X ⊆ E ( D ) X\subseteq E(D) X ⊆ E ( D ) be a cutting set of size most k k k such that D − X D-X D − X has at least p p p strongly connected components containing a terminal. Let C = { v ∈ V ( G ) ∣ ( r , a v ) ∈ X } C=\{v\in V(G)\mid(r,a_v)\in X\} C = { v ∈ V ( G ) ∣ ( r , a v ) ∈ X } , and observe that ∣ C ∣ = ∣ X ∣ ≤ k |C|=|X|\leq k ∣ C ∣ = ∣ X ∣ ≤ k . As stated above, we know that a terminal t u v t_{uv} t uv is in its own strongly connected component if and only if both ( r , a u ) (r,a_u) ( r , a u ) and ( r , a v ) (r,a_v) ( r , a v ) are in X X X . That means that by cutting at most k k k arcs, at most ( k 2 ) \binom{k}{2} ( 2 k ) of such terminals can have become a strongly connected component. Since p = ( k 2 ) + 1 p=\binom{k}{2}+1 p = ( 2 k ) + 1 , we know that we must have that ∣ X ∣ = k |X|=k ∣ X ∣ = k and for each pair ( r , a u ) , ( r , a v ) ∈ X (r,a_u),(r,a_v)\in X ( r , a u ) , ( r , a v ) ∈ X , there must exist a terminal t u v t_{uv} t uv . By construction, this means that for each pair u , v ∈ C u,v\in C u , v ∈ C , there must be an edge { u , v } ∈ E ( G ) \{u,v\}\in E(G) { u , v } ∈ E ( G ) , ergo C C C is a clique of size k k k .
References