Manuscript Offprint
arXiv:2610.24886Algorithms for Connected Multicuts of Weighted Trees
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
In the connected multicut problem for weighted trees, the instance is an edge-weighted tree , a set of terminals , and a set of pairwise “conflicts” between these terminals represented by edges of a conflict graph . A connected multicut for this instance is a partition of the vertex set into subsets called the components of , where each component induces a subtree of , contains at least one terminal, but does not contain any conflicting terminal pair. Two cost functions for multicuts are considered: in the min-sum variant, we minimize the total weight of the edges between different components of , and in the min-max variant, we minimize the maximum, over all components, of the total weight of edges leaving the component.
In the first part of the paper, we focus on algorithms for the min-max variant, for which we give a 2-approximation algorithm for the unweighted case, a -approximation algorithm for the general case, and a mildly exponential exact algorithm for the unweighted case.
In the second part of the paper, we study algorithms that take advantage of the structure of the conflict graph. We first give a polynomial-time exact algorithm for the min-max variant when C is a clique (the variant referred to in the literature as the multiway cut). Next, we generalize this result by providing polynomial-time exact algorithms, for both variants, for instances whose conflict graph has constant split complexity — a new parameter that refines the concept of neighborhood diversity previously studied in the context of parameterized complexity. This unifies and generalizes previous results for the min-sum variant when conflict graphs are complete multipartite graphs or unions of cliques.
*Research partially supported by NSF grant CCF-2153723 (Marek Chrobak), grant 24-10306S of GA ČR (Petr Kolman), and by AGATE project funded from the Horizon Europe Programme under Grant Agreement No. 101183743 (Hans Raj Tiwari).
1 Introduction
In the connected multicut problem for weighted trees, the instance is an edge-weighted tree with vertices, a set of terminals , and a set of pairwise “conflicts” between these terminals represented by edges of a conflict graph . A connected multicut for this instance is a partition of the vertex set into subsets called the components of , where each component induces a subtree of , contains at least one terminal, but does not contain any conflicting terminal pair. When is a clique, that is when all terminals conflict with each other, multicuts are referred to as multiway cuts in the literature.
Min-sum cost. One natural way to measure the cost of a multicut is by the total weight of the edges between different components of , often referred to as the min-sum cost. The problem of minimizing the min-sum cost of a connected multicut in trees, denoted here , has been well studied in the literature. It is easy to see that the connectivity requirement is redundant for — any multicut without conflicts in its components can be converted, without increasing cost, into a connected one. Garg et al. [18] proved that is NP-hard. They also provided a primal-dual algorithm with approximation ratio of 2, that (under standard assumptions) is optimal, because their NP-hardness proof shows that for star graphs, even without weights, the problem is polynomial-time equivalent to the VERTEXCOVER problem. As shown by Calinescu et al. [14], the unweighted version of remains NP-hard even for binary trees, although for such trees an approximation ratio can be achieved, for each . Yannakakis et al. [38] observed (prior to [18]) that is polynomial-time solvable for a constant number of terminals. The complexity of parametrized by the number of edges in the optimum multicut has been extensively studied [20, 31, 4, 6, 25].
Some earlier work on TREEMCUT studied its subproblems with some restrictions on the structure of the conflict graph. The case when C is a clique is the multiway cut problem for trees, for which, as observed earlier [8, 16, 22, 10], the dynamic-programming approach yields an -time algorithm. Motivated by applications to query optimization in database applications, Hasan and Motwani [22] studied a more general model when C is a complete multi-partite graph, for which they gave an -time algorithm. Another natural extension of the clique case is when C is a union of a constant number of cliques, for which polynomial-time algorithms were given by Liu et al. [31] and Kanj et al. [25].
Min-max cost. The min-max cost of a multicut is the maximum weight of the boundaries of M's components, where a boundary of a component is the set of edges leaving this component. By CONTREEMCUT we denote the problem of optimizing the min-max objective for connected multicuts in trees. It was first considered by Svitkina and Tardos [37], who observed that the connectivity requirement in CONTREEMCUT is essential (see also Appendix D). A systematic study of CONTREEMCUT was initiated by Kolman and Tiwary [27], who focussed on its multiway-cut variant CONTREEMWCUT (where C is a clique) and proved that it is fixed-parameter tractable when parametrized by the number of terminals, and showed that its natural polytope has super-polynomial extension complexity.
Our results. In the first part of this paper, in Section 3, we focus on algorithms for CONTREEMCUT that apply to arbitrary conflict graphs. Unlike TREEMCUT , that has substantial literature, the only known complexity results for CONTREEMCUT are those in [27], that only address its multiway-cut restriction CONTREEMWCUT (when C is a clique). By the same argument as for TREEMCUT , CONTREEMCUT cannot be approximated with ratio smaller than 2. The idea behind the LP-formulation for TREEMCUT in [18] does not apply to CONTREEMCUT , and, in fact, CONTREEMCUT does not seem to have a simple relaxation useful for bounding the optimal min-max cost. Nevertheless, we formulate an auxiliary optimization problem called the local cut that does have a simple linear program relaxation and show that can be reduced to the problem of computing local cuts, yielding an algorithm with an optimal approximation ratio.
Theorem 1. (a) For each constant , there is a polynomial-time -approximation algorithm for . (b) There is a polynomial-time 2-approximation algorithm for the unweighted variant of .
Somewhat surprisingly, the approximation algorithm above can be modified to yield a polynomial-time Turing reduction from unweighted to VERTEXCOVER, which is simultaneously approximation-preserving and parameter-preserving with respect to the objective functions. In particular, by applying known vertex cover algorithms [21, 9, 5], we obtain mildly-exponential algorithms for the unweighted case.
Theorem 2. Consider the variant of CONTREEMCUT , where the input instances consist of an unweighted tree T, a conflict graph C, and a cost threshold k.
(a) There are algorithms with running times and that determine whether a multicut of cost at most exists .
(b) There is an algorithm with running time that either computes a multicut with cost at most 1.5k or determines that every multicut has cost greater than k.
In contrast, the fastest known algorithm for constructing an optimal solution to unweighted TREEMCUT runs in time [25, 6], where is the min-sum objective.
The second part of the paper, Sections 4 and 5, studies exact algorithms for both cost versions, with running times dependent on the structure of the conflict graph. We start, in Section 4, by presenting a polynomial-time algorithm for , the restriction of to conflict graphs that are cliques.
Theorem 3. CONTREEMWCUT can be solved in time for integer weights (where W is the total edge weight) and time for real weights.
This significantly improves the previous results [27], where the solution involved a parametrization by the number of terminals. Our algorithm is substantially more involved than the polynomial-time algorithm for the min-sum analog [8, 16, 22, 10]. In essence, we show that in polynomial time we can verify, using dynamic programming, if there exists a solution with cost not exceeding a given value L, so for integer weights the optimum can be found in polynomial time. To extend it to real weights, the dynamic programming algorithm processes whole cost functions, which we show to be piece-wise constant with only a linear number of discontinuities. In addition to its own interest, this algorithm also serves as a stepping stone towards much more general results that we discuss later in the paper.
These more general results are obtained via parametrizations. The hardness result of Garg et al. [18] applies even when the input tree T is a star, or when T has depth 2 and C is a matching, so fixing some commonly used structural parameters of the input graph (say, maximum vertex degree, modular-width, etc.) cannot produce efficient algorithms for TREEMCUT . Parametrizations by the number of edges in the optimum solution produce running times that are overly pessimistic for some simple instances, for example when the conflict graph is a clique. This raises a natural question:
hides polynomial factors.
is there a parametrization based only on the conflict graph structure that includes as special cases the known variants of TREEMCUT with polynomial-time algorithms, namely the instances when the conflict graph is a complete multi-partite graph [22] or a union of a constant number of (possibly overlapping) cliques [31, 25]. The same question applies to CONTREEMCUT .
One simple parameter that naturally captures the relevant structure of conflict graphs is called neighborhood-diversity (see [29]), denoted here by , which groups vertices into “types” according to their neighborhoods. In Section 5, we give polynomial-time algorithms for conflict graphs with constant .
Theorem 4. (a) TREEMCUT can be solved in time .
(b) CONTREEMCUT can be solved in time for real weights and in time for integer weights, where W is the total edge weight.
For complete c-partite graphs and for q-clique covers, Theorem 4 already matches the running times in [22, 31, 25] if the parameters c and q are constant.
To further improve Theorem 4, we introduce a generalized notion of types and a new “split-complexity” parameter sp(C), defined on a “generalized type graph” C associated with C. Roughly, sp(C) measures the number of ways one can divide an independent set in C into two parts knowing only which types it contains. We then show (Section 6) that for both cost versions the problem is tractable for polynomially-bounded sp(C).
Theorem 5. Given a generalized type graph C for the conflict graph C:
(a) TREEMCUT can be solved in time .
(b) CONTREEMCUT can be solved in time for real weights and in time for integer weights, where W is the total edge weight.
Applying appropriate bounds to sp(C), we get algorithms for instances when C has bounded neighborhood diversity (covered by Theorem 4), is a union of cliques, and is a complete multipartite graph.
Corollary 1.1. (a) If is a complete -partite graph, then can be solved in time . Likewise can be solved in time time for real weights and for integer weights.
(b) If is a union of cliques, then can be solved in time . Likewise can be solved in time time for real weights and for integer weights.
Previously, Corollary 1.1 was only known for TREEMCUT [22, 31]. Note that in Corollary 1.1(b) we assume that the clique cover is given on input. This assumption is necessary, as the best algorithm finding a q-clique cover takes time [19] and is optimal assuming ETH [13]. For this reason, we also have to assume that the object is given for Theorem 5 in general. But for Theorem 4, no additional information is needed.
Due to space constraints, some proofs are included in the appendix. We also include in the appendix some side results that refine the computational complexity picture of problems related to connected multicuts. Svitkina and Tardos [37] considered a bi-objective version of connected
Technically, Corollary 1.1(a) also assumes the parts are already given, but computing that can be done in time.
multicuts in trees that involves both min-sum and min-max objective functions. In Appendix C we show that that problem is (weakly) NP-hard even if the conflict graph is a clique. In Appendix D we show that the connectivity requirement is essential for the min-max variants of MWCUT , proving the ratio of in the case of trees and for arbitrary graphs, between the optimal solutions without and with this requirement. This strengthens the observation from [37] showing that this ratio is at least 1.25.
Other related work. There is a variety of other variants of TREEMCUT in the literature. For example, in some models not all conflicting pairs need to be separated. The partial multicut problem asks for a set of edges which separate at least a given number of conflicting pairs, while the prize-collecting multicut problem adds a penalty for non-separated conflicts. Both problems admit constant-ratio approximations [30, 35]. Further studied extensions involve submodular cost functions on edge sets or submodular penalties for non-separated conflicts [32, 24, 23, 33, 34]. Multicuts for directed trees were studied as well [11].
Some of the results for trees have been extended to bounded-treewidth graphs, see for example, the paper by Bentz and Le Bodic [2].
The multicut problem for arbitrary graphs with the min-sum objective, MCUT , has rich literature. It’s known to be computationally hard. Even its multiway-cut version MWCUT with only three terminals is NP-hard [16]. Research on MCUT includes studies of its LP-relaxations [7, 3, 8], estimates of the optimum in terms of maximal flows [17], and approximation algorithms [15, 26]. For more information, see the survey by Costa et al. [12].
The min-max variant is less understood. Its multiway-cut subproblem, MWCUT , was studied by Svitkina and Tardos [37], who showed that it is NP-hard even for only four terminals, and developed polylogarithmic approximation algorithms, later improved by Bansal et al. [1]. Svitkina and Tardos also considered the subproblem TREEMWCUT , the restriction of MWCUT to trees (without the connectivity requirement), for which they proved NP-hardness and gave a -approximation algorithm for any .
Kolman and Tiwary [27] studied the variant of MWCUT with the connectivity requirement on multicut's components. Their results include several hardness results, for example that CONMWCUT is (weakly) NP-hard even for three terminals and graphs of treewidth three, a pseudo-polynomial algorithm, and an FPTAS for graphs of bounded treewidth.

Figure 1: A weighted tree, a conflict graph, and a connected multicut . Tree edges are represented by solid lines, non-terminals by circles, terminals by squares, and conflicts by dotted thin lines. The edges within components are in blue (dark), the boundary edges are in yellow. Each component's label is near its top vertex. The boundary costs are , , , , , and . So and .
of is the total weight of the edges in its boundary, , and its max-cost is the maximum cost of its component boundaries, . (See Figure 1 for an example.)
We focus on two optimization problems for trees, the min-sum and min-max variants of computing optimal connected multicuts:
TREEMCUT : Given a tree and a conflict graph , compute a connected multicut that minimizes its sum-cost cost .
CONTREEMCUT : Given a tree and a conflict graph , compute a connected multicut that minimizes its max-cost cost .
We denote the optimal cost of each solution by and , respectively. In the TREEMCUT notation we do not indicate the connectivity requirement, because, as mentioned in the introduction, it's redundant: any multicut satisfying all other requirements can be converted into a connected one without increasing its sum-cost. This requirement is essential, however, for CONTREEMCUT (see Appendix D).
Normal forms. We assume that all input trees are rooted. For a rooted tree T and a vertex v, by we will denote the subtree of T rooted at v and containing all v's descendants.
Our algorithms will first simplify the input trees to streamline the computation. We say that T is in normal form if all its leaves are terminals and all internal non-terminals have at least two children. If we further require that all internal nodes are non-terminals (so is exactly the set of leaves) and have exactly two children then we say that T is in binary normal form (See Figure 1.) It is known, and not difficult to prove that, after pre-processing, without any loss of generality we can assume that a weighted tree is in binary normal form, and that an unweighted binary tree is in a normal form. This is formalized in the lemma below. For the sake of completeness, we include its proof in Appendix B.
Lemma 2.1. Let be a weighted tree and a conflict graph. In time one can compute a tree with such that , , and

Figure 2: On the left, tree in normal form. On the right, tree in binary normal form. Terminals are represented by squares and non-terminals by circles.
(a) If T is unweighted, then is an unweighted tree in normal form,
(b) If T is weighted, then is in binary normal form and .
In both cases and for both objective functions, any multicut for can be converted into a multicut for in time , without increasing the cost.
A tree in normal form has vertices, since non-terminals (except the root) have degree at least 3. Thus we may use and interchangeably in the asymptotic formulas.
3 Algorithms for CONTREEMCUT
In this section we study algorithms for CONTREEMCUT , that is computing a connected multicut in trees with the min-max cost function, and we prove Theorems 1 and 2. To develop our algorithms, we proceed in two steps. In Section 3.1 we first identify a simpler optimization problem where the goal is only to compute one “local cut”. This problem, while still NP-hard itself, has a simple LP relaxation that can be used to produce a 2-approximate solution. Then, in Section 3.2, we give a polynomial-time Turing reduction from CONTREEMCUT to this problem using dynamic programming. This will simultaneously prove Theorems 1 and 2.
Intuitions. A natural idea for solving CONTREEMCUT would be to compute bottom-up a multicut for each rooted sub-tree: to compute a multicut of a subtree , first include in it the computed edges for each , and then add some suitably chosen edges between v and its children to eliminate the conflicts between terminals in subtrees of different children of v. This works for unweighted trees (see Appendix A) but fails for the weighted case, simply because the edges from v to its children could be very expensive.
This observation leads to a somewhat unusual algorithm that, when processing a node v, computes a multicut for using dynamic-programming entries associated with all descendants of v, rather than only with its children. Roughly, the information computed for v's descendants will be used to eliminate edges that are too expensive to be in the boundary of v's component. After excluding these edges (by simply contracting them), the component of v is then determined by computing its local cut. This is the essence of the Turing reduction mentioned in the previous paragraph.
Reductions. There are in fact a few Turing reductions in this section. To reduce a minimization problem to a minimization problem , given a parameter , the reductions we use have the following form:
-
We assume the existence of an oracle for that, given an instance of and a value , either returns a solution of cost at most or determines that the optimum cost of is larger than .
-
The algorithm for uses the oracle for and, given an instance of and a value , it either returns a solution of cost at most or determines that the optimum cost of is larger than . Furthermore, it runs in polynomial time, and each oracle query satisfies . Note that we allow (in which case we just have a parameter-preserving reduction), and that and may be real numbers. When weights are real, we only obtain a -approximation for from a -approximation of .
3.1 Computing Local Cuts
Given a tree , a conflict graph , and a vertex , we define a local cut for to be a subset such that (i) , (ii) is connected (i.e., a subtree of ), and (iii) is an independent set in (possibly empty). is a proper local cut if , and improper otherwise. We now define the local cut problem:
LCUTTREES: Given a tree , a conflict graph , and , compute a proper local cut for minimizing .
We let LCUTTREES° be the problem variant where improper cuts are allowed, and we denote the optimum cost for both problems by and , respectively. First, we observe that LCUTTREES is not harder than LCUTTREES°.
Observation 3.1. There is a polynomial-time Turing reduction from LCUTTREES to LCUTTREES° that makes oracle queries on an input instance with n vertices. Moreover, if the input instance is unweighted, then every instance submitted to the oracle is unweighted.
Proof. We actually prove a stronger fact: given an (approximate) algorithm for LCUTTREES° and a vertex , we compute an (approximate) minimum weight local cut for that contains (if one exists). We then try this procedure for each and pick the solution of minimum weight.
Given , we define by contracting the unique path in between and into a single vertex, then taking a graph quotient in by merging all the terminals (if any) that appear on this path. (If two such terminals have a conflict in , then there is no local cut for containing .) We have an obvious correspondence between local cuts of and local cuts of containing , and clearly is unweighted if is.
Next, we give a 2-approximation algorithm for computing local cuts.
Lemma 3.2. There is a polynomial-time 2-approximation algorithm for LCUTTREES° (and thus also for LCUTTREES, by Observation 3.1).
Proof. Given an instance with , , and , we formulate an LP relaxation with a variable for each edge , where is intended to indicate that lies in the boundary of a local cut. Letting denote the path in between (as an edge set), the relaxation is as follows:
We now describe a rounding procedure of a solution for this linear program. Let denote the optimum solution value. For let , where for a set ; clearly, is connected and . We aim to show that for a proper choice of , is a local cut for of cost at most 2L.
We claim that . As for every , we obtain
where is an indicator function for a predicate .
By the above claim, there exists such that . To finish the proof, it suffices to verify that is an independent set in . For any distinct , we have , so by the LP constraint (2). Thus, is the desired local cut for . As there are at most distinct sets for , namely those for values of of the form for , the radius and the corresponding local cut can be computed in polynomial time.
There is an alternative way to prove Lemma 3.2, via a primal-dual algorithm instead of randomized rounding. We include it in Appendix E. That solution does not require solving a linear program.
We make one last observation about LCUTTREES° on unweighted trees. As mentioned earlier, a reduction from VERTEXCOVER shows that TREEMCUTΣ and CONTREEMCUTmax have no -approximation under standard assumptions, even on unweighted stars. What's interesting about LCUTTREES° is that it is actually equivalent to VERTEXCOVER when T is unweighted. For a graph H, let denote the minimum size of a vertex cover of H.
Observation 3.3. Given an unweighted LCUTTREES° instance , we can in linear time compute a graph and number where . Also, any vertex cover can be converted in linear time to a local cut of with cost .
Proof. Root at . Let be the set of children such that there are no conflicts between the terminals in . Let . Define by adding to if there exist terminals and such that . (H can easily be computed in linear time.)
We now claim that . To see this, observe that for any local cut of , must contain at least one edge from for each , as otherwise would have a conflict. Furthermore, is a vertex cover for . (If was not covered, then some conflicting pair in would be in .) This implies . And given a vertex cover for , the set with boundary is a local cut for .
3.2 Main Algorithm
In this section we prove Theorem 1, by reducing CONTREEMCUT to LCUTTREES .
Lemma 3.4. There is a polynomial-time Turing reduction from CONTREEMCUT to LCUTTREES .
To prove Lemma 3.4, we assume that there is a constant and an oracle for LCUTTREES which, given an instance and a real number , either returns a solution of cost at most or determines that . Using this oracle we then describe an algorithm that, given an instance of CONTREEMCUT and a real number , either returns a multicut for of cost at most , or determines that . All queries to the oracle for LCUTTREES use values .
In this section we assume that is a tree in normal form, rooted at a vertex . To streamline the presentation, we add to a “dummy” parent vertex with .
Intuitions. As a warm-up, we first show a simpler algorithm for CONTREEMCUT with approximation ratio 8. The algorithm proceeds top-down, starting with the root . Compute a (proper) local cut for using the algorithm from Lemma 3.2. Then proceed recursively: for each vertex with , compute a local cut in (that is, treating as the input tree) using Lemma 3.2, and so on. The vertices for which local cuts are computed in this process will be called hubs. The computed multicut for is the set of all 's for hubs .
Lemma 3.2 implies that for each hub , the cost of the local cut in satisfies . Every component of has a boundary in the form , for some hub , so its boundary cost is . To show an upper bound of 8 on the approximation ratio, it suffices to show that for each vertex . This inequality follows by considering the component of the optimal multicut for that contains . Let . This is a local cut for in , whose boundary within has cost . If is not proper, we can merge with any adjacent component below it (which exists, by the normal form, and must be proper), obtaining a proper local cut for in and at most doubling the cost.
While the bounds in this analysis are tight in the worst case, the extra factors of 2 are really due to a poor choice of components. If one considers an optimal multicut of with min-max cost , and we take any component with common ancestor , then is a proper local cut for in with cost at most . This observation suggests a bottom-up approach: first try to compute min-max multicuts for the sub-trees, then compute a local cut for the root using only edges for which admits a “good” solution.
To formalize this idea, we need a slight strengthening of Observation 3.1. For and , we define an -restricted proper local cut for (or just an -restricted cut, for short) to be a proper local cut for such that . Let denote the minimum weight of all -restricted proper local cuts for . (If there is no such cut, let .)
We observe that computing such a cut for can be reduced to instances of LCUTTREES , though this is somewhat subtle . As in Observation 3.1, if is not already a terminal, guess a terminal and contract the edges on the path from to , merging terminals in as needed. If two conflicting terminals were merged, then there is no local cut without separating and . Otherwise, we identify and and contract the edges and merge any terminals in if they got merged in . If we merge two terminals that conflict, this does not necessarily mean that there is no solution, but merely that must be separated from the merged terminal , in this case we
We could trivially reduce to LCUTTREES by increasing the weights of , but this doesn’t work if we want an unweighted tree.
simply add to . But if we try to merge and and , then there is no -restricted cut without separating and . If the previous checks pass, then let be the modified tree and conflict graph. Then by inspection, , where ranges over all terminals where is defined.
We are now ready to describe the reduction, which is simply a dynamic program.
Proof of Lemma 3.4. Let be a real number denoting our target cost and be the approximation ratio of our LCUTTREES oracle. From the discussion above, we may assume that this oracle can compute -restricted proper local cuts: given a number and a tuple , where and , the oracle either returns an -restricted cut for of cost at most or determines that .
For , define an -approximate multicut for as a multicut for with and with 's component satisfying a stricter requirement . For each the algorithm will compute a table entry whose value is either an -approximate multicut for or NULL (undefined). Let
We maintain the following invariant for each vertex :
(★) If there is an -approximate multicut for , then is -approximate.
The validity of for ensures that the existence of a multicut in T of cost at most L implies that is a multicut of cost at most , proving the correctness of the reduction.
We now describe an algorithm that guarantees the validity of the invariant (★) at each node . The computation proceeds bottom-up, starting from the leaves. If is a leaf, set if , and set otherwise. Then (★) holds for .
Now suppose that is an internal vertex and that holds for all . This implies . Using the oracle for LCUTTREES, we now try to compute an -restricted cut in such that and . If the oracle fails, set ; otherwise it returns and set
We first argue that if the oracle succeeds, then is an -approximate multicut for . Indeed, the component of containing is and by construction, . Consider now a component not containing , and let be the common ancestor of its nodes in . Then if , we have , and otherwise by the inductive assumption.
Therefore, to maintain , it suffices to show that if there is an -approximate multicut for , then the oracle succeeds. This is straightforward: suppose we have an -approximate multicut and let be its component containing . By definition of -approximate multicuts, contains a terminal, , and . Thus, is an -restricted proper local cut for ; in other words . By the guarantee of our oracle, it succeeds, returning an -restricted proper local cut for with , as desired.
Proof of Theorem 1. Combine Lemma 3.2 and Lemma 3.4 with binary search. For the weighted case we need an initial upper bound on the optimum, which can be obtained from the 8-approximation sketched earlier or the 2-approximation for TREEMCUT [18], which gives a multicut of min-max cost at most times the optimum.
Proof of Theorem 2. By combining Observation 3.3, Observation 3.1, and Lemma 3.4, we obtain a polynomial-time reduction from unweighted CONTREEMCUT to VERTEXCOVER that is approximation- and parameter-preserving, in the sense described in the beginning of Section 3. The theorem then follows by using the vertex cover algorithms from [21, 9, 5]. (Regarding the time bound, one can observe that all vertex cover instances computed are graph quotients of C and thus have at most vertices.)
A straightforward implementation of our 2-approximation algorithm (solving LCUTTREES° instances with vertex cover) would take time . In Appendix A we give an alternative algorithm whose running time is nearly linear.
4 Polynomial-Time Algorithm for CONTREEMWCUT
In this section we prove Theorem 3; that is we give a polynomial-time algorithm for CONTREEMWCUT , the multiway-cut version of CONTREEMCUT . The result in Theorem 3 is analogous to the result for TREEMWCUT in papers [8, 16, 22, 10], although the min-max cost introduces challenges not present in the min-sum version.
At a high-level, rather than computing the optimum solution directly, the algorithm uses an -time dynamic-programming subroutine that, given a real number L, either returns a multiway cut of min-max cost at most L or determines that the optimum min-max cost is greater than L. Using this subroutine, we can compute an optimal multiway cut for integer weights by binary search. To obtain a strongly polynomial-time algorithm for real weights, we view our dynamic program as computing parametric functions over L, which we then show can be represented using only space per function.
Notation. We assume that is in binary normal form with root . We also add a dummy parent to and set . For a vertex , let , that is the sub-tree rooted at plus 's parent. A -cut is a partition of satisfying the same conditions as a connected multicut, with the possible exception that the component may not contain a terminal. We say is proper if does contain a terminal and improper otherwise. In particular, a proper -cut is just a connected multicut of . When is clear from context, we often call the “top component” of . To avoid clutter, for a -cut the “boundaries” and always refer to the boundary edges restricted to . For a non-top component in , its boundaries in and are identical.
Algorithm for integer weights. For each we define two functions . is the minimum, over all proper -cuts with all non-top boundaries of weight at most , of the boundary weight of its top component in . (When no -cut satisfies these constraints, then .) is defined analogously, but over improper -cuts. We colloquially refer to these as the “D-functions”.
We first fix , and show a dynamic programming algorithm that computes and for all . These values are stored in a table, and computed in the bottom-up order using a recurrence equation. If is a leaf (that is, ), we have (no edges cut), and equals if (cut the edge ) and is otherwise. For an internal vertex
One can formulate a dynamic program using instead of , but the latter is slightly more convenient.

Figure 3: Illustration of equation (3) for . The wide orange (light) curve represents the boundary of the top component of . The two first cases correspond to , the two other cases correspond to .
with children u and w, we use the following recurrences:
Figure 3 illustrates equation (3) for . For , the top component of is obtained from a top (proper) component of and the (improper) top component (which may or may not contain ) of . The case of is symmetric. The intuition behind the recurrence for is similar, except that we also need to take into account the case that its top component may only contain .
From the definitions, we have that if and only if . Thus, checking whether can be done with a subroutine that computes the D-values at all nodes of the tree by the recurrence (3) and (4), and then checks if .
If the weights are integer, the overall algorithm can compute the optimal value by performing binary search for in the interval , in each iteration using the above subroutine to test whether .
To complete the proof of Theorem 3 for integer weights, we still need to justify that all formulas for and are correct. The proof is by induction. If is a leaf, the correctness follows directly from definition. So assume that is an internal vertex.
To streamline the argument, some auxiliary terminology will be helpful. Suppose has children and . A -cut is -feasible if all its non-top boundaries have weight at most . If and are a -cut and -cut respectively with top components and , and one of them is improper, their merge is a -cut consisting of all non-top components of and and top component . Clearly, and . (Recall our convention that the boundary of a top component of a subtree includes only edges in .) Also, is -feasible iff both and are -feasible. Further, any -cut (with top component containing ) induces a -cut and a -cut such that is a merge of and : assign each non-top component to or , depending on in which subtree it is contained, and let the respective top components be and .
We are now ready to continue the proof. Consider first . Recall that in the normal form all terminals are leaves. By the above discussion, any -cut is proper and -feasible if and only if it is a merge of an -feasible -cut and an -feasible -cut , one proper and one improper. The correctness of (3) follows from the earlier established relation between the top boundaries, namely .
Next, consider . We distinguish two disjoint types of improper -feasible -cuts : (i) those whose top component is and (ii) those where . It is sufficient to show that the two options in the formula (4) correctly compute the optimal improper -feasible -cuts of these two types, respectively.
Regarding type (i), let be an improper -feasible -cut. Observe that is of type (i) iff there is a proper -feasible -cut such that the non-top components of consist of all non-top components of and one additional component that satisfies , where is the top component of . (We add because the boundary of , treated as a non-top component in , also includes . Note that there is no type (i) -cut if this inequality is false.) This shows the correctness of the top option in (4).
The argument for type (ii) is easier: By the earlier discussion, -cut is of type (ii) if and only if it is a merge of an improper -feasible -cut and an improper -feasible -cut . Then again the correctness of (4) for type (ii) follows from the earlier established relation between the top boundaries, namely .
Extension to real weights. The key idea is not to deal with individual values of the functions, but rather to deal with the entire functions . This is possible because the functions have a very simple structure.
Claim 4.1. For each and , the function is non-increasing, right-continuous, and piece-wise constant. Furthermore, all points of discontinuity of all D-functions are from some set of size .
Proof. The fact that is non-increasing follows immediately from its definition. To prove the rest of the claim, it is useful to introduce a set of auxiliary functions : for , let if , and otherwise let . Then for , , and for each internal vertex with children , . By induction, all D-functions are some combination of H-functions using component-wise min and + operations.
The condition in the definition of can be phrased as an optimization problem: if and only if there is an improper -cut which cuts and has min-max cost (in ) at most . (Or equivalently, the component containing is a singleton. In this interpretation, corresponds to the boundary of the component containing in such a cut.) Then is the minimum max-cost over all such cuts, and if , and otherwise. That is, is just a right-continuous step function with at most one point of discontinuity. Then, by induction, the points of discontinuity of form a subset of , where and . It also follows that is piece-wise constant and right-continuous.
In the algorithm, we represent a piece-wise constant right-continuous function by a list where are the points of discontinuity and . For , , where is the largest index such that . Given list-representations for functions and with discontinuity sets and respectively, we can compute a list representation for their component-wise minimum or sum, whose discontinuities are in , in time. Crucially, because the points of discontinuity among our -functions come from a subset of size , we can perform these calculations in time.
To account for -values, “right-continuous” in this context means that for each , there is some such that for all .
Algorithm 1 Exponential-time algorithm for computing .
1: Let be the family of all independent sets of , including
2: For each and , create a table entry
3: for do ▷ initialize for all leaves
4: , , , for
5: for , processing bottom-up do
6: Let and be 's children
7: for do
8: ▷ is a partition of
9:
10: .
11: return
The final algorithm is this: for each and , compute the value and a list representation of over discontinuities . Then return , which is equal to . Computing lists for the terminals is easy, so suppose is an internal vertex with children . Computing a list for takes time from functions , , and , using equation (3). To compute a list for , we first need to compute from . To do this, suppose has points of discontinuity and . We then claim , where . Indeed, if is the greatest index where , then and . And by monotonicity, for all , so the formula is correct. Then using the equation we compute a list for . Clearly, we spend computing a list for each , and thus the total running time is , completing the proof of Theorem 3.
5 Algorithms Parameterized by Neighborhood Diversity
In this section we prove Theorem 4(a). We assume that our tree is in binary normal form with root . We add a dummy parent for and set . We will also use the notion of -cuts and their boundary notation as introduced in Section 4.
To motivate our algorithm, we briefly sketch a simple (albeit inefficient) dynamic program for TREEMCUT. Its pseudo-code is presented in Algorithm 1. and have a natural interpretation: for an independent set , is the minimum sum-cost over all -cuts where the top cluster contains exactly the terminals from , while is the minimum sum-cost over all proper -cuts.
Without giving a complete analysis, we quickly justify the recurrences in Lines 8 and 10. For vertex with children and , let be a -cut whose top component satisfies . If (which holds when ), then restricting the components of to and yields a -cut and a -cut , respectively. The terminals in the corresponding top components and partition (perhaps trivially, one or both components may have no terminals), while the boundary edges get partitioned. This justifies Line 8 and the first term in Line 10. When , is improper and removing from the boundary creates a proper -cut, justifying the second term in Line 10.
The runtime is dominated by the number of independent sets in C and Line 8, so it's at most

Figure 4: An example of a conflict graph C and its type graph C. The types are labeled by the vertices of C mapped to them. Since C has four vertices (types), .
in the worst case.
A natural idea for speeding up the algorithm is to group independent sets into equivalence classes, as few as possible, that can be used as states in dynamic programming. Roughly, two independent subsets of can be considered equivalent if, for any vertex , swapping and in the top cluster of will not affect the computation in the ancestors of . To generalize the recurrence in line 8 of the algorithm, this equivalence relation needs to be preserved under disjoint unions. For our algorithm, we define this equivalence relation on independent sets in terms of a type graph and neighborhood diversity [29], which we define next. This relation is in general not optimal, but it applies to a broad class of graphs and can be computed efficiently. Later, in Section 6 we consider a natural generalization of these concepts that allows us to establish Corollary 1.1.
Neighborhood diversity. For a conflict graph , two terminals are of the same type (also called twins) if , where is the open neighborhood in . This property forms an equivalence relation, whose congruence classes are called types. The number of types is then the neighborhood diversity of . We treat types as abstract elements instead of subsets of terminals, using the map to denote which type that terminal is assigned to. Associated with the types is a unique type graph , which has the property that for all , if and only if . (A type may have a self-loop in , which we denote by .) Intuitively, the types form a partition of where (i) each part is either a clique or independent set and (ii) between each pair of parts is either a biclique or no edges at all. It is a standard fact that can be computed in time (see Figure 4 for an example).
States and splits. Let denote the types with self-loops and (i-types). Note that the terminal set is a clique when is a c-type and is an independent set otherwise. Letting be the image of under , we observe that maps independent sets of to independent sets of (with self-loops allowed). From here on we refer to the latter as states and denote its elements using lower-case letters. (We include .) Naturally, will replace in Algorithm 1, but to do so requires obtaining an analog of Line 8; here we need a correspondence between bipartitions of an independent set and pairs of states associated with . Crucially, we in general do not want to consider bipartitions of : while the c-types in will be partitioned between and , if is an i-type, then it's possible that and could both contain terminals from .
This motivates the following definitions. For , and are the c-types and i-types in respectively, so . The splits of denotes the collection of pairs and . In particular, we allow .
Our algorithm does not depend so much on the particulars of neighborhood diversity or type
In terms of , one can see that the running time is in fact , since Line 8 is just a min-sum subset convolution. Note also that independent sets can be enumerated in time [28].
graphs. In fact, we only need the three following properties:
(A1) For all , if and only if .
(A2) For all and , .
(A3) For all where , implies and .
Intuitively, (A1) just says that distinguishes the empty set in , (A2) says we can convert bipartitions of into splits of , (A3) says that is automatically independent if is a split of some state (and that must be this state). That these properties hold is straightforward to verify.
The runtime of our algorithm is dominated by the total number of splits or split complexity, denoted by . It is easy to see that and are disjoint for two distinct states , , so the total number of splits is .
Algorithm for TREEMCUT . As mentioned before, we can compute 's type graph in time. The main algorithm will actually run in time , which we do by enumerating and the splits directly. Enumerating independent sets can be done in time, and for each , can be computed in time by listing all bipartitions of and pairs of subsets of .
We now just need to modify Algorithm 1 as follows: is now , every instance of in Line 4 is replaced by , and the min-sum convolution formula in Line 8 is replaced by . We also reinterpret the meaning of and , as follows. We say a -cut is in state if the top component satisfies . Then is the minimum sum-cost over all -cuts in state , and by property (A1) a -cut is in state if and only if it is improper, so is still the minimum sum-cost over all proper -cuts.
The correctness of for leaves in Line 4 is easy to verify. The formula in Line 10 has not changed, so we only need to justify the new formula for Line 8. Let be a -cut in state with sum-cost , and for , let be the induced -cut by restricting to . Since is proper, and . Letting , we clearly have and . Furthermore, and are in states and respectively, and by property (A2) we must have , and so we have . Likewise, if we are given a -cut and -cut with terminals and in their respective top-components, and , then by property (A3) is independent and , and so merging the two cuts yields a -cut in state . This completes the proof of Theorem 4(a).
Algorithm for CONTREEMCUT . The dynamic programming algorithm claimed in Theorem 4(b) is a straightforward combination of the dynamic program formulation above with techniques in Section 4. The key change is that now we need to store the minimum boundary weight of the top component of -cuts in state s, subject to the other components having boundary weight at most L. More details can be found in the proof of a more general statement in Section 6.
6 Generalized Type Graphs and Split Complexity
In this section, we extend the algorithms from Sections 4 and 5 using “generalized” type graphs, then prove Theorem 5 and Corollary 1.1.

Figure 5: An example of a conflict graph C, its (standard) type graph C, and one generalized type graph C' for C. The types are labeled by the vertices of C mapped to them. In C', vertices may be mapped to multiple types. The example shows that in a generalized type graph the number of types can be smaller.
Basic ideas. We start by briefly explaining the concept of generalized type graphs and split complexity, and outlining the proof of Theorem 5. We are assuming the reader is familiar with the terminology from Section 5. Informally, a “generalized type graph” modifies the notion of type graphs from neighborhood diversity, allowing a terminal to be assigned multiple types rather than one. A conflict is represented by the existence of an edge in between some pair of types from and . This extension can exponentially reduce the number of dynamic programming states: in particular we only need states in this model for -clique cover. Aside from changing the semantics of types, the definition of splits is unchanged, and in fact was already defined in Section 5 for the standard type graph and is unchanged for our general formulation. Crucially, the properties (A1)-(A3) identified in that section still hold in this model, and the algorithms for Theorem 5 are almost identical to their neighborhood diversity variants.
In general, conflict graphs admitting a type graph with low split complexity must have bounded neighborhood diversity , but the former can be exponentially smaller than the factor in Theorem 4. The downside is that the following algorithms require specifying on input; because this model extends graphs with -clique covers, which take time to detect, it is unlikely that efficiently computing a minimal generalized type graph is possible.
Generalized Type Graph. For a conflict graph , a generalized type graph (or simply a type graph) is an undirected graph (with self-loops allowed) on types connected by edges , together with a map , where denotes the family of independent sets in (allowing self-loops). In order to be a valid type graph for , must satisfy the following condition: if and only if there exists some edge with and . (If then is a self-loop.) As in Section 5, the types with self-loops are called c-types and the remaining types are called i-types. For simplicity we also impose .
If maps terminals to singletons, this is equivalent to the standard type graph used to define neighborhood diversity. The crucial difference is that terminals can now be assigned multiple types. Intuitively, the conflict graphs induced by a generalized type graph with types can be constructed in the following way: select (possibly overlapping) subsets of , make some cliques, and add a biclique between any disjoint pair . See Figure 5 for an example.
We make a few remarks before moving on. For one, conflict graphs may be represented by distinct generalized type graphs, even if they use a minimal number of types. Second, the terminals associated with an i-type may not form an independent set, as pairs of some
If we were only interested in minimizing the number of types, then trivially we can make this assumption without loss of generality. It’s not a priori clear that we can make this assumption for minimizing splits, but we’ll put this aside.
terminals may be assigned the same c-type or two types adjacent in . Third, we observe that implies that and are twins, which yields the inequality ; in particular, a type graph with a constant number of types induces a conflict graph with constant neighborhood diversity.
States and splits. We now discuss states and splits for a conflict graph induced by some generalized type graph . Letting for , we observe that, just like in Section 5, maps independent sets in to independent sets in (perhaps with self-loops). Like before, states refer to these independent sets, including the empty set.
The definition of splits is the same as in Section 5. For we define the splits , where refers to c-types which contains.
We illustrate the definitions with two examples. If is a union of cliques, then it is induced by a type graph , where is the set of all self-loops, and indicates which cliques belongs to. We have (every subset of types is independent) and (every bipartition is a split of ).
Letting denote a complete -partite graph (that is not a clique), the standard type graph using neighborhood diversity is a complete graph on types (say ) with no self-loops, where is simply the different parts. The states are exactly the empty set and singleton sets, and the splits of are ; the last split corresponds to dividing a non-empty subset of a part into two non-empty subsets. (If is a clique, then the standard type graph is a single node with a self-loop.)
By inspection, the splits and the map still satisfy properties (A1)-(A3) from Section 5.
The runtime will be dominated by the total number of splits, denoted by like in Section 5. The same reasoning as in Section 5 implies . For the two examples discussed earlier, and , while and .
Algorithm for TREEMCUT . We now prove Theorem 5 for TREEMCUT . Using the type graphs and from earlier, Corollary 1.1 follows for the min-sum case.
Given , we can enumerate in time [28]. For each state we may compute in time by enumerating all partitions of and all pairs of subsets of .
We now just need to modify Algorithm 1 as follows: is now , every instance of in Line 4 is replaced by , and the min-sum convolution formula in Line 8 is replaced by . We now just need to reinterpret the meaning of and . We say a -cut is in state if the top component satisfies . Then is the minimum sum-cost over all -cuts in state , and by property (A1) a -cut is in state if and only if it is improper, so is still the minimum sum-cost over all proper -cuts.
The correctness of for leaves in Line 4 is easy to verify. The formula in Line 10 has not changed, so we only need to justify the new formula for Line 8. Let be a -cut in state with sum-cost , and for , let be the induced -cut by restricting to . Since is proper, and . Letting , we clearly have and . Furthermore, and are in states and respectively, and by property (A2) we must have , and so we have . Likewise, if we were given a -cut and -cut with terminals and in their respective top-components, and , then by property (A3) is independent and , and so merging the two cuts yields a -cut in state .
Algorithm for CONTREEMCUT . We now prove Theorem 5 for CONTREEMCUT . Using the type graphs and , Corollary 1.1 for CONTREEMCUT follows. We assume that our tree is in binary normal form with root , and we add a dummy parent for with . We use the same notion of -cuts and their boundary convention as in the previous sections.
Let be a generalized type graph for given on input and let . As explained before, in time we can enumerate both and the corresponding splits.
Algorithm For Integer Weights. We now describe the main dynamic sub-routine, which in time determines whether for a given real . This automatically implies Theorem 5(b) for integer weights. For now we treat as fixed.
As in Section 5, we say a -cut is in state if the top component satisfies . Furthermore, is -feasible if all non-top boundaries have weight at most . For each and , we define the table entry to be the minimum, over all -feasible -cuts in state , of the boundary weight of its top component in . (When no such cut exists, set .) We also create a table entry , denoting the minimum top-boundary weight over all -feasible proper -cuts. (By Property (A1), is in state if and only if it is improper.) From the definitions, if and only if .
For a leaf , we set , set if and otherwise, and set for . We now describe the recurrence for an internal vertex with children .
The runtime is dominated by the evaluation of Eq. (5), which takes time per vertex.
The formula for the leaves holds from the definitions and inspection. For an internal vertex , observe that and have the same semantics as the table entries and from Section 4; in particular optimizes over improper cuts, while optimizes over proper cuts. Indeed, Eq. (7) matches Eq. (4), so it suffices to show that Eq. (5) is correct.
That Eq. (5) holds follows from a similar argument as in Section 4. Recall that we have a correspondence between -cuts (whose top component contains , which is necessary if is proper) and pairs of a -cut and -cut . Specifically, given and which are -feasible, we can merge them to obtain which is -feasible and satisfies . (We do not know a priori that doesn't contain a conflict, but we can still interpret as a partition.) This implies . Likewise, given an -feasible (whose top component contains , which is necessary if is proper), we can obtain an -feasible pair and satisfying the same relations.
Importantly, in both directions the three cuts satisfy the relation , where denotes the terminals in the respective top components. This implies that if we started with and ( is in state ), then is a split of by Property (A2). Conversely, if we started with and and , then, by Property (A3), is guaranteed to be independent and satisfy , thus as the result of merging is in fact a -cut in state . This correspondence then implies the correctness of Eq. (5), as desired.
Extension to Real Weights. As in Section 4, for each we can define the function and real number , where equals if and is otherwise, and . Since has the same semantics as the table entry from Section 4, and have the same interpretation as before. In particular, is a right-continuous step function with at most one point of discontinuity at . And by induction, (for ) and , as functions of , are non-increasing right-continuous functions whose discontinuities are a subset of , while has the same form with discontinuities in .
This implies that we can compute a list representation for each dynamic programming table entry, using space per function and time for computing component-wise sums and minimums. In the same way as in Section 4, the discontinuities are computed dynamically from the list representation of . This completes the proof of Theorem 5(b) for real weights.
Information on the use of generative AI. The ideas of using the local cuts and the linear program (2) in Section 3, and of working with the entire functions in Section 4, were suggested by the LLM-based service Bolzano. We thank Vašek Rozhoň for providing us with access to the service. In addition, GPT-6 suggested the half-integrality proof in Appendix E.
References
[1] N. Bansal, U. Feige, R. Krauthgamer, K. Makarychev, V. Nagarajan, J. SeffiNaor, and R. Schwartz. Min-max graph partitioning and small set expansion. SIAM Journal on Computing, 43(2):872–904, 2014.
[2] C. Bentz and P. Le Bodic. Complexity of the multicut problem, in its vanilla, partial and generalized versions, in graphs of bounded treewidth. Theoretical Computer Science, 809:239–249, 2020.
[3] D. Bertsimas, C.-P. Teo, and R. Vohra. Analysis of LP relaxations for multiway and multicut problems. Networks, 34(2):102–114, 1999.
[4] N. Bousquet, J. Daligault, S. Thomassé, and A. Yeo. A polynomial kernel for multicut in trees. In Proc. of the 26th International Symposium on Theoretical Aspects of Computer Science (STACS), volume 3 of LIPIcs, pages 183–194. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, Germany, 2009.
[5] L. Brankovic and H. Fernau. A novel parameterised approximation algorithm for minimum vertex cover. Theoretical Computer Science, 511:85–108, 2013. Exact and Parameterized Computation.
[6] J. Chen, J. Fan, I. A. Kanj, Y. Liu, and F. Zhang. Multicut in trees viewed through the eyes of vertex cover. In Proc. of Algorithms and Data Structures - 12th International Symposium (WADS), volume 6844 of Lecture Notes in Computer Science, pages 219–230. Springer, 2011.
[7] B. Cherkasskij. Solution of a problem on multicommodity flows in a network. Ehkon. Mat. Metody, 13:143–151, 1977.
[8] S. Chopra and M. R. Rao. On the multiway cut polyhedron. Networks, 21(1):51–89, 1991.
[9] K. Clinch, S. Gaspers, T. Z. He, S. Mackenzie, and T. Zhang. A faster randomized algorithm for vertex cover: An automated approach, 2025.
[10] M.-C. Costa and A. Billionnet. Multiway cut and integer flow problems in trees. Electronic Notes in Discrete Mathematics, 17:105–109, 2004. Workshop on Graphs and Combinatorial Optimization.
[11] M.-C. Costa, L. Létocart, and F. Roupin. A greedy algorithm for multicut and integral multi-flow in rooted trees. Operations Research Letters, 31(1):21–27, 2003.
[12] M.-C. Costa, L. Létocart, and F. Roupin. Minimal multicut and maximal integer multiflow: A survey. European Journal of Operational Research, 162(1):55–69, 2005. Logistics: From Theory to Application.
[13] M. Cygan, M. Pilipczuk, and M. Pilipczuk. Known algorithms for edge clique cover are probably optimal. SIAM Journal on Computing, 45(1):67–83, 2016.
[14] G. Călinescu, C. G. Fernandes, and B. Reed. Multicuts in unweighted graphs and digraphs with bounded degree and bounded tree-width. Journal of Algorithms, 48(2):333–359, 2003.
[15] G. Călinescu, H. Karloff, and Y. Rabani. An improved approximation algorithm for multiway cut. Journal of Computer and System Sciences, 60(3):564–574, 2000.
[16] E. Dahlhaus, D. S. Johnson, C. H. Papadimitriou, P. D. Seymour, and M. Yannakakis. The complexity of multiterminal cuts. SIAM Journal on Computing, 23(4):864–894, 1994.
[17] N. Garg, V. V. Vazirani, and M. Yannakakis. Approximate max-flow min-(multi)cut theorems and their applications. SIAM Journal on Computing, 25(2):235–251, 1996.
[18] N. Garg, V. V. Vazirani, and M. Yannakakis. Primal-dual approximation algorithms for integral flow and multicut in trees. Algorithmica, 18(1):3–20, 1997.
[19] J. Gramm, J. Guo, F. Hüffner, and R. Niedermeier. Data reduction and exact algorithms for clique cover. ACM J. Exp. Algorithms, 13, Feb. 2009.
[20] J. Guo and R. Niedermeier. Fixed-parameter tractability and data reduction for multicut in trees. Netw., 46(3):124–135, Oct. 2005.
[21] D. G. Harris and N. S. Narayanaswamy. A Faster Algorithm for Vertex Cover Parameterized by Solution Size. In Proc. of 41st International Symposium on Theoretical Aspects of Computer Science (STACS), volume 289 of Leibniz International Proceedings in Informatics (LIPics), pages 40:1–40:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024.
[22] W. Hasan and R. Motwani. Coloring away communication in parallel query optimization. In Proceedings of the 21th International Conference on Very Large Data Bases, VLDB '95, page 239–250, San Francisco, CA, USA, 1995. Morgan Kaufmann Publishers Inc.
[23] C. Hou, S. Gao, W. Liu, W. Wu, D.-Z. Du, and B. Hou. An approximation algorithm for the submodular multicut problem in trees with linear penalties. Optimization Letters, 15(4):1105–1112, Jun 2021.
[24] X. Hou, W. Liu, and B. Hou. An approximation algorithm for the k-prize-collecting multicut on a tree problem. Theoretical Computer Science, 844:26–33, 2020.
[25] I. Kanj, G. Lin, T. Liu, W. Tong, G. Xia, J. Xu, B. Yang, F. Zhang, P. Zhang, and B. Zhu. Improved parameterized and exact algorithms for cut problems on trees. Theoretical Computer Science, 607:455–470, 2015. Combinatorial Optimization and Applications.
[26] D. R. Karger, P. Klein, C. Stein, M. Thorup, and N. E. Young. Rounding algorithms for a geometric embedding of minimum multiway cut. Mathematics of Operations Research, 29(3):436–461, 2004.
[27] P. Kolman and H. R. Tiwary. Min-max connected multiway cut, 2026.
[28] K. Kurita, K. Wasa, T. Uno, and H. Arimura. A constant amortized time enumeration algorithm for independent sets in graphs with bounded clique number. Theoretical Computer Science, 874:32–41, 2021.
[29] M. Lampis. Algorithmic meta-theorems for restrictions of treewidth. Algorithmica, 64(1):19–37, Sep 2012.
[30] A. Levin and D. Segev. Partial multicuts in trees. Theoretical Computer Science, 369(1):384–395, 2006.
[31] H. Liu and P. Zhang. On the generalized multiway cut in trees problem. In G. Lin, editor, Combinatorial Optimization and Applications, pages 151–162, Berlin, Heidelberg, 2012. Springer Berlin Heidelberg.
[32] X. Liu and W. Li. A primal dual approximation algorithm for the multicut problem in trees with submodular penalties. In Algorithmic Aspects in Information and Management, pages 203–211, Cham, 2019. Springer International Publishing.
[33] X. Liu and W. Li. An approximation algorithm for the b-prize-collecting multicut problem in trees. In Theory and Applications of Models of Computation, pages 262–271, Cham, 2022. Springer International Publishing.
[34] X. Liu and W. Li. An approximation algorithm for the K-prize-collecting multicut problem in trees with submodular penalties. Mathematical Structures in Computer Science, 34(3):193–210, 2024.
[35] J. Mestre. Lagrangian Relaxation and Partial Cover. In Proc. of 25th International Symposium on Theoretical Aspects of Computer Science (STACS), volume 1 of Leibniz International Proceedings in Informatics (LIPIcs), pages 539–550. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2008.
[36] G. L. Nemhauser and L. E. Trotter. Properties of vertex packing and independence system polyhedra. Mathematical Programming, 6(1):48–61, Dec 1974.
[37] Z. Svitkina and É. Tardos. Min-max multiway cut. In Approximation, Randomization, and Combinatorial Optimization, Algorithms and Techniques, 7th International Workshop on Approximation Algorithms for Combinatorial Optimization Problems, APPROX, and 8th International Workshop on Randomization and Computation, RANDOM 2004, volume 3122 of Lecture Notes in Computer Science, pages 207–218. Springer, 2004.
[38] M. Yannakakis, P. C. Kanellakis, S. S. Cosmadakis, and C. H. Papadimitriou. Cutting and partitioning a graph after a fixed pattern. In Automata, Languages and Programming, pages 712–722, Berlin, Heidelberg, 1983. Springer Berlin Heidelberg.
A Faster 2-Approximation for Unweighted Trees
In Section 3 we gave a polynomial-time 2-approximation algorithm for the unweighted version of CONTREEMCUT . That algorithm was rather inefficient. In this section we show an alternative and much faster algorithm.
Theorem 6. There is a 2-approximation algorithm for unweighted CONTREEMCUT with running time .
From now on, we fix an instance of CONTREEMCUT consisting of a normal-form tree (where for all ) with root and a conflict graph . To prove Theorem 6, it is sufficient to prove the lemma below, as the algorithm from this lemma can be combined with binary search for to compute the 2-approximate solution.
Lemma A.1. Let be an unweighted CONTREEMCUT instance. After preprocessing, there is an algorithm that, given , either returns a multicut of cost at most or determines that .
The rest of this section consists of the proof of Lemma A.1. For , we define a -cut to be a connected multicut for the restricted instance , with the possible exception that the component containing (called the “top component” of ) may not contain a terminal. is called proper if this component has a terminal and improper otherwise. is called -feasible if all non-top components have cost at most . Furthermore, the local cost of is the top component boundary weight (within ). Let and denote the optimum local cost over all -feasible improper and proper -cuts respectively. We follow the convention that if is a component of a -cut, always refers to the boundary edges in , excluding the edge . (This is similar to -cuts from Section 4, with replaced by .)
The essence of the algorithm is to extend Observation 3.3 to a lower bound on and . Using this, we reduce the problem to solving a set of vertex cover instances, one for each sub-tree , then perform a dynamic-programming bottom-up computation on . For each vertex , we will define an auxiliary graph whose nodes are some children of , and we use a 2-approximate vertex cover for to compute the top component of a multicut for . Crucially, these vertex cover instances do not depend on , and can thus be pre-processed, and their combined size does not exceed .
A.1 Preprocessing
Here we describe how to construct the vertex cover instances needed for our algorithm and how to solve them all in time total.
For an internal vertex , let be the set of children of such that the terminals in do not conflict. An auxiliary conflict graph is where, for vertices , if and only if there exist terminals and such that .
For vertices , let denote their least common ancestor in (which may be or ). For a vertex and descendant , let be the unique child such that . Trivially, . Furthermore, we claim that . This inequality follows by mapping each with to , where , and .
The pseudo-code below shows how to compute every in time. Correctness follows directly from the definition of and the correspondence described above. Since and can be computed in constant time with pre-processing using standard data structures, the computation of all graphs will take time .
Algorithm: Computing graphs and vertex covers for each do false, , for each do and true if then true for if then true for for each (processing bottom-up) do if and then add to for each do if then and if then add to for each internal do if then vertex cover of with else
To compute in the last step, we slightly modify the standard matching-based 2-approximation for VERTEXCOVER: First choose any edge . (We know that .) Let and be the graphs obtained from by removing and , respectively. Compute 2-approximate solutions and for VERTEXCOVER on and . If then let , else let . Since one of must be in the optimal vertex cover of , we obtain that . If it so happens that (and ), we can simply remove any vertex from so that we also have . The running time for computing each is , so the total cost of computing all sets amortizes to .
A.2 Main Algorithm
Let be the given integer. If , the algorithm checks if , and if that is the case, it returns the optimal multicut consisting of just one component , and otherwise it reports that .
So we assume now that . Our algorithm proceeds bottom-up, computing table entries and , for all , that contain a proper -cut and an improper -cut, respectively. We will also keep track of the respective top components that we denote by and . Similar to Sections 4 and 5, , , , and are by convention restricted to . So and are the local costs of and . (It's possible that the solution for will be undefined, which we represent by NULL. By default, the corresponding local cost is then .)
Computing solutions for the leaves is trivial: if is a leaf (and thus ), let for , and . So assume now that is an internal vertex such that all vertices in have already been processed. Let . We partition into two subsets and :
(Note that this partitioning depends on the algorithm.)
Computing and : We distinguish three cases.
(P1) If or : Set
(P2) Otherwise, if : Select for which is minimized, and set
(P3) Otherwise (that is, for and ): set .
Computing and : We have two cases.
(I1) If , set
(I2) Otherwise (for ), set
In the event that NULL appears in the formulas above, we set for any set . With this caveat, we are done describing our recurrence equations. We observe that (when not NULL) the -cuts obtained via these recurrences are proper. In Case (P1), the top component of either contains as a terminal or a terminal leaf from . In Case (P2), it contains a terminal from the top component of . As for , in Case (I1) it does not contain a terminal, because is not a terminal and top components for also do not contain terminals.
After processing all vertices, the algorithm returns if and otherwise declares . This completes the description of the algorithm.
Regarding the running time, for a linear-time implementation, we only need to keep track of the edges in , which are incident to . Then by standard backtracking we can obtain the final multicut.
Analysis. To complete the proof of Lemma A.1, it remains to prove its correctness. We first prove a conditional bound on local costs for each -cut in Lemma A.2, then in Lemma A.7 we show that bounding the local costs of our computed cuts yields a bound on the min-max cost.
Throughout the rest of the proof, for a real number , we use notation .
Lemma A.2. For each vertex v:
(a) If , then .
(b) Likewise, implies .
By the normal form of , each leaf is a terminal, which implies that for each node ( could be ), so in (b) we can write instead of on the right-hand side of the equation.
Proof. We proceed by induction on the tree, assuming both implications in our induction hypothesis. The lemma is trivial when is a leaf, so assume is an internal vertex and the lemma holds for all (for both solution types).
First we make one general observation about the children of v in .
Claim A.3. If is a k-feasible -cut (either proper or improper) with local cost at most k, then for each , 's component in contains u but it does not contain any terminal from .
Proof: Let be the component containing . If did not contain then, by -feasibility of , restricted to would be a proper -feasible -cut with local cost at most . (In particular, the top component in this -cut would be a non-top component in , so it would contain a terminal.) Similarly, if contained and some terminal from then again, restricted to would be a proper -feasible -cut with local cost at most . (In this case, the top component is and contains a terminal.) Either way, we have , and by our induction hypothesis, this implies , contradicting the definition of .
As a corollary, our assumption that implies (and by induction) for all .
Proof of (a): computing . We first analyze , breaking into cases corresponding to the cases in its computation. For the next few claims, it is convenient to introduce the following notation. Given a component of a -cut and , let . Then let , , and . Clearly we have .
Claim A.4. If then
Proof: Consider a proper -feasible -cut with local cost , and let be the top component. We produce three bounds on and . The set is a vertex cover for , implying . (If edge was not covered by then and contains both and . But implies there is some conflicting terminal pair where and , implying has a conflict.) If , then , otherwise would contain and a conflicting pair. Therefore . If , then by Claim A.3, induces an improper -feasible -cut with local cost , implying and . Summing inequalities yields our desired bound.
Suppose now that satisfies Case (P1) of the algorithm, that is or . In this case,
If then . If then . If then for all we have , by induction. Therefore, if at least one of these conditions holds, Claim A.4 implies that
On the other hand, if all three conditions are false then . Thus in Case (P1), as needed.
The next claim handles the case when and .
Claim A.5. If , and , then and
Proof: Consider a proper -feasible -cut with local cost , and let be the top component. By similar reasoning as before, Claim A.3 implies for , so . Combined with and , Claim A.3 also implies that contains a terminal from for some . (In particular, .) Then induces a proper -feasible -cut of local cost , implying . We have for the remaining children , which implies our desired bound.
Suppose now that satisfies Case (P2) of the algorithm, that is , , and . Claim A.5 implies there is some where . By the algorithm, we have , so
Now, if then, by induction, . If then . If then for all we have , by induction. So if at least one of these three conditions holds then
On the other hand, if all three conditions are false then , So holds in Case (P2).
Regarding Case (P3), note that Claim A.5 implies that is non-empty, which means that (under the assumption that ) the algorithm will never execute Case (P3) for computing the proper -cut where . This concludes the analysis of .
Proof of (b): computing . We now analyze and derive one more bound.
Claim A.6. If then
Proof: Let be an improper -feasible -cut with local cost , and let be the top component. By similar reasoning as before, Claim A.3 implies . For , , for otherwise would contain and its terminals. (Recall that is in normal form, so all leaves are terminals.)
For computing the algorithm has two cases. In Case (I2), implies that , and the inductive step holds. So consider Case (I1), that is . Then
If then . If then, as in the previous cases, for we have , so the induction implies . One of these cases must hold (since is not a leaf), so
This finishes the proof of Lemma A.2.
Lemma A.7. For each vertex v:
(a) If then has max-cost (in ) at most 2k.
(b) Likewise, if then has max-cost (in ) at most 2k.
Proof. We proceed by induction on , again assuming both implications in the induction hypothesis. The lemma is trivial for leaves, so suppose is an internal vertex. Whether or is at most , we have the following bounds on the children's local costs: for by definition and by construction. This means our induction hypothesis applies to all children . Specifically, for and , and have each max-cost at most in their respective sub-trees.
We now prove part (a), by estimating the max-cost of when . (The analysis for part (b) is nearly identical, so we omit it.) Let be a component of , so denotes 's boundary in . If is the top component (i.e. ), then , by our assumption.
So we can now assume that is a non-top component of . If contains an edge where , then and . If instead and , then is the top component of and . Lastly, if does not satisfy any of the previous conditions, then must be a non-top component of a previously computed -cut , for some . Either and , or and ; either way, by induction we have .
If , then , which by Lemma A.2 implies . Then by Lemma A.7, is a multicut of with max-cost at most 2k, as desired.
B Normal Forms
In Section 2 we defined a normal form and a binary normal form for trees and stated Lemma 2.1 that says that each tree can be converted into an appropriate normal form. In this section we prove this lemma.
We first describe how to modify a non-weighted tree T into normal form, which can be done by repeatedly applying two reduction rules: (1) If v is a non-terminal leaf, remove it; (2) If v is a non-terminal with exactly two neighbors u and w (and v is not the root), add an edge between u and w and delete v. These steps will eventually convert T into a tree in normal form. To justify correctness, consider just one step, converting T into a tree , and show that it satisfies all necessary properties except possibly (a). For instance, in rule (2), a multicut in T that contains uv or wv (it cannot contain both) has the same cost as the multicut that contains uw instead.
The above construction also works for the weighted case: in rule (2) simply let . Thus to show part (b), we can assume that is in the normal form already. Let . To obtain we then repeatedly apply the following rules:
(3) If is an internal vertex with children , temporarily remove and create a new vertex in its place. That is, is now the parent of each with the same weight . Then reattach to as a leaf and set .
(4) If is an internal vertex with children for , create a new vertex and make it the new parent of with the same weights . Then make a child of and set .
These steps will eventually transform T into binary normal form. To justify correctness, let be the tree obtained after one step of this process from T, and argue that it has the required properties, except possibly (b). The idea, in both cases (3) and (4), is that W is so large that any multicut of that cuts tv can be modified to cut other edges without increasing cost, so again we have an obvious correspondence between multicuts of T and . Both rules preserve the normal form conditions, so the resulting tree will eventually be in binary normal form.

Figure 6: The constructed instance of TREECUTTING. Squares represent terminals, circles represent non-terminals.
C NP-Hardness of Svitkina/Tardos' TREECUTTING Problem [37]
Here we consider the TREECUTTING problem of Svitkina and Tardos [37] which is essentially a bi-objective combination of CONTREEMWCU and CONTREEMWCU : Given a weighted tree , a set of terminals , and a bound , the objective is to compute a partition of into subtrees , each with at most one terminal and with , that minimizes total boundary weight . Svitkina and Tardos [37] gave a pseudo-polynomial algorithm for TREECUTTING that they used as a subroutine to design an approximation algorithm for the TREEMWCU problem for weighted trees (without the connectivity requirement). They did not analyze, however, the computational complexity of TREECUTTING itself. Here, we show that the problem is NP-hard, and thus a pseudo-polynomial time algorithm is all we can hope for if we insist on finding the exact optimum.
The proof is by reduction from PARTITION. Consider an instance of PARTITION with integers and let . We convert it into the following instance of TREECUTTING: the tree has a root vertex , and for each it has three vertices , and , and edges with weight , and , , both with weight . (See Fig. 6.) The terminals are and the boundary bound is . We claim that
(*) The instance of PARTITION has a solution iff the constructed instance of TREECUTTING has a solution of cost at most 9A.
The proof of () is quite simple, so we only sketch the idea, leaving the details to the reader. In the instance of TREECUTTING, for each , in order to separate terminals , and each partition must cut at least two edges among , , and . Cutting all three unnecessarily increases the total cost, so we can assume that only two are cut. By symmetry, we can then assume that is cut. So we have two types of cuts: Type 1 with and cut, and Type 2 with and cut, at costs and , respectively. Have the cut of Type 1 represent being in the solution of the instance of PARTITION, and Type 2 of being in the complement . All clusters except the top one (containing ) have small cost, so only the top cluster is of concern. Then to satisfy the condition on TREECUTTING in () we need:
By simple algebra, these inequalities are equivalent to , so the equivalence (*) is true.
D On the Connectivity Requirement for MWCUT
In this section we examine how the connectivity requirement for affects the value of the optimum solution. We focus on the simple case in which the conflict graph is a clique, that is on . (Recall that in the conflict graph is a clique, so all terminals must be separated.) We refer to the worst-case ratio between the optimal solution for and the optimal connected solution (namely the solution for ) as the connectivity gap.
Trees. We start with the case of weighted trees, that is the solution of TREEMWCUT versus that of CONTREEMWCUT . Svitkina and Tardos [37] gave an example of an instance showing that for trees the connectivity gap for TREEMWCUT is at least 1.25. We show here that this gap is .
For the lower bound, we use a non-weighted and perfectly balanced binary tree and the set of terminals that are the leaves of . Consider a partition of 's vertices into pairs, where each pair is formed by grouping each non-terminal with a unique terminal (one leaf will not be paired with any internal vertex). The min-max cost of this partition is . On the other hand, in a connected partition, the part containing the root would also contain the path from the root to the unique terminal of this part. Then any cut that separates from must have edges. (We can assume that be the leftmost path from the root. Then for each vertex , the rightmost path from to a leaf must contain at least one edge in this cut.) Thus the boundary weight of the partition containing the root is , and we can conclude that the connectivity gap, even for non-weighted trees, is .
We next argue that connectivity gap for weighted trees is . Consider an instance consisting of a tree and a set of terminals . Let be an optimal multicut of TREEMWCUT for this instance, and let . (Here is represented as a partition into connected components, each without conflicts. For brevity, here we will refer to these connected components simply as components, even though some may not contain a terminal.) We will convert into a connected multicut satisfying , thus establishing the claimed upper bound on the connectivity gap.
Each component of M contains at most one terminal. We refer to the pieces with terminals as terminal components and other as nonterminal components. To obtain , we combine the components into larger subtrees, each containing exactly one terminal. To this end, consider a graph Q whose nodes are the components of M and edges connect the pairs of components that have an edge (clearly, exactly one) of T between them. Then Q is itself a tree, which we root at an arbitrary node r.
First, repeatedly merge any nonterminal leaf into its parent. This operation does not increase the boundary weight of the parent component. Consequently, every remaining component has boundary weight at most L, and every leaf of Q is a terminal component. Next, ensure that all nonterminal components of degree two are non-adjacent. To do this, consider any inclusion-wise maximal path of degree two nonterminal components and merge them together into one subtree. The boundary weight of this new subtree is at most 2L. After repeating this process, each nonterminal component in Q of degree two is only adjacent to terminal components.
For each nonterminal component C, choose a nearest terminal node among its descendants, and retain only the edge from C to the child on the path to that terminal (i.e., delete every other edge to C and from C). Remove from Q also all edges connecting two terminal components. This way, by the properties of Q described in the previous paragraph, the tree Q is partitioned into paths of length at most , each ending at a terminal component. Now merge the components of each such path, producing a subtree of T that contains exactly one terminal. The boundary of this subtree will have weight , completing the proof.
Arbitrary graphs. We now show that for arbitrary graphs, the connectivity gap for MWCUT could be much larger than for trees, namely at least , even in the non-weighted case. Our example is a non-weighted graph with terminals . Let be the set of non-terminals. is partitioned into two sets, , where and , so that . The topology of is this: the vertices in form a clique of size , and the vertices in are isolated.
Let be a partition representing the following multicut: each terminal in is a singleton, and all other vertices are grouped into disjoint pairs, with one vertex from and one from . Then .
To show our lower bound, it is sufficient to prove that for some choice of and each connected multicut has cost . In any connected multicut, the components of the terminals in are singletons, and is partitioned into components, each containing one terminal from . Let be a component with maximum cardinality. Observe that . Choosing and , with sufficiently large, we have , which implies that the boundary weight of is . (To see this, consider the cases when and .) Thus the cost of this multicut is , completing the proof of our lower bound.
E Primal-Dual Algorithm for LCUTREES
In this section we present a primal-dual algorithm for LCUTREES° from Section 3, providing an alternative proof of Lemma 3.2. Let be our instance. The dual of the linear program in the proof of Lemma 3.2 is as follows:
Naturally, we can interpret the dual as a flow problem: for each conflict edge , we send two flows from , one to along and another to along . We send units of flow along both paths. (The intersection thus receives units of flow.) The right hand side of inequality (9) is then the total flow going through edge .
We greedily construct a dual solution, similar to the primal-dual algorithms for VERTEXCOVER and TREEMCUT . The variables are initially zero, and we say a tree edge is saturated when its corresponding constraint is tight. Then for each conflict edge , we simply raise the value of until a tree edge (possibly many) in become saturated. Let be the set of saturated tree edges after applying this process to all conflict edges. Our local cut is then the connected component in containing .
By rooting at , we can obtain the tree edges for any in time, and so this algorithm can be implemented in time. Furthermore, is indeed a local cut: for each conflict edge , must contain at least one saturated edge from by construction, implying that at least one of is not in .
We now show that , where refers to the constructed dual variables. The boundary contains only (but not necessarily all) saturated edges, and since is connected and contains , we have for all . This implies
as desired. Then, by duality, X is a 2-approximate solution.
Half-Integrality. We remark that the linear program from Section 3.1 is also half-integral. In fact, the distances for each lie in at the polytope's extremal points. To see this, we root at and observe that our LP is equivalent to the following program:
where our variables are (with as a dummy variable). Intuitively, we’ve simply done a change of variables, where now we assign distances to vertices that induces edge weights

Figure 7: An instance of the “non-split LP” with non-half-integral extremal points; is the single non-terminal at the top, and conflicts are illustrated in dashed red lines. One can use an LP solver to verify that the unique optimal solution of cost 8/3 is achieved by setting for all edges e. By inspection, the best half-integral and integral solutions have cost 3.
, using the observation that weights of a tree can be reconstructed from distances from a fixed source. To ensure that the induced weights are non-negative, we impose an ordering constraint in Eq. 11. Clearly, extremal points of our original LP correspond to extremal points of this new one.
Ignoring the slightly more complicated objective function, it’s now clear that our new LP constraints are just a modified version of the VERTEXCOVER LP. Indeed, standard arguments proving the half-integrality of the VERTEXCOVER LP (e.g. [36]) also apply here; the extra ordering constraints make no difference.
Interestingly, we can slightly modify the linear program from Section 3.1 by not double-counting edges in , which simply means replacing Eq. 2 with . This “non-split LP” is still a relaxation of LCUTREES°, and the same LP rounding and primal-dual algorithms apply to this variant. However, this variant is not half-integral. An example is shown in Figure 7, and indeed it’s not to hard to construct for every integer an example containing an extremal point with denominator .