arXiv:2610.24886cs.DSOct 2026

Manuscript Offprint

arXiv:2610.24886

Algorithms for Connected Multicuts of Weighted Trees

Sunny Atalig, Marek Chrobak, Petr Kolman, Claire Mathieu, Hans Raj Tiwary

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 T=(V,E,ω)T = (V, E, \omega), a set of terminals Γ⊆V\Gamma \subseteq V, and a set of pairwise “conflicts” between these terminals represented by edges of a conflict graph C=(Γ,F)\mathcal{C} = (\Gamma, \mathcal{F}). A connected multicut for this instance is a partition M\mathcal{M} of the vertex set VV into subsets called the components of M\mathcal{M}, where each component induces a subtree of TT, 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 M\mathcal{M}, 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 (2+ϵ)(2 + \epsilon)-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 T=(V,E,ω)T = (V, E, \omega) with nn vertices, a set of terminals Γ⊆V\Gamma \subseteq V, and a set of pairwise “conflicts” between these terminals represented by edges of a conflict graph C=(Γ,F)\mathcal{C} = (\Gamma, \mathcal{F}). A connected multicut for this instance is a partition M\mathcal{M} of the vertex set into subsets called the components of M\mathcal{M}, where each component induces a subtree of TT, contains at least one terminal, but does not contain any conflicting terminal pair. When C\mathcal{C} 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 M\mathcal{M} is by the total weight of the edges between different components of M\mathcal{M}, often referred to as the min-sum cost. The problem of minimizing the min-sum cost of a connected multicut in trees, denoted here TREEMCUTΣ\text{TREEMCUT}_{\Sigma}, has been well studied in the literature. It is easy to see that the connectivity requirement is redundant for TREEMCUTΣ\text{TREEMCUT}_{\Sigma} — any multicut without conflicts in its components can be converted, without increasing cost, into a connected one. Garg et al. [18] proved that TREEMCUTΣ\text{TREEMCUT}_{\Sigma} 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 TREEMCUTΣ\text{TREEMCUT}_{\Sigma} remains NP-hard even for binary trees, although for such trees an approximation ratio 1+ϵ1 + \epsilon can be achieved, for each ϵ>0\epsilon > 0. Yannakakis et al. [38] observed (prior to [18]) that TREEMCUTΣ\text{TREEMCUT}_{\Sigma} is polynomial-time solvable for a constant number of terminals. The complexity of TREEMCUTΣ\text{TREEMCUT}_{\Sigma} parametrized by the number of edges in the optimum multicut has been extensively studied [20, 31, 4, 6, 25].

Some earlier work on TREEMCUT Σ\Sigma 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 O(n)O(n)-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 O(n2)O(n^2)-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 max_{max} 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 max_{max} is essential (see also Appendix D). A systematic study of CONTREEMCUT max_{max} was initiated by Kolman and Tiwary [27], who focussed on its multiway-cut variant CONTREEMWCUT max_{max} (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 max_{max} that apply to arbitrary conflict graphs. Unlike TREEMCUT Σ_{\Sigma}, that has substantial literature, the only known complexity results for CONTREEMCUT max_{max} are those in [27], that only address its multiway-cut restriction CONTREEMWCUT max_{max} (when C is a clique). By the same argument as for TREEMCUT Σ_{\Sigma}, CONTREEMCUT max_{max} cannot be approximated with ratio smaller than 2. The idea behind the LP-formulation for TREEMCUT Σ_{\Sigma} in [18] does not apply to CONTREEMCUT max_{max}, and, in fact, CONTREEMCUT max_{max} 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 CONTREEMCUTmaxCONTREEMCUT_{max} can be reduced to the problem of computing local cuts, yielding an algorithm with an optimal approximation ratio.

Theorem 1. (a) For each constant ϵ>0\epsilon > 0, there is a polynomial-time (2+ϵ)(2 + \epsilon)-approximation algorithm for CONTREEMCUTmax\text{CONTREEMCUT}_{\text{max}}. (b) There is a polynomial-time 2-approximation algorithm for the unweighted variant of CONTREEMCUTmax\text{CONTREEMCUT}_{\text{max}}.

Somewhat surprisingly, the approximation algorithm above can be modified to yield a polynomial-time Turing reduction from unweighted CONTREEMCUTmaxCONTREEMCUT_{max} 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 max_{max}, 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 O∗(1.2529k)O^{*}(1.2529^k) and O∗(1.1996∣Γ∣)O^{*}(1.1996^{|\Gamma|}) that determine whether a multicut of cost at most kk exists 1^1.

(b) There is an algorithm with running time O∗(1.09k)O^{*}(1.09^{k}) 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 Σ_{\Sigma} runs in O∗(1.554k)O^{*}(1.554^{k}) time [25, 6], where kk 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 CONTREEMWCUTmaxCONTREEMWCUT_{max}, the restriction of CONTREEMCUTmaxCONTREEMCUT_{max} to conflict graphs that are cliques.

Theorem 3. CONTREEMWCUT max_{max} can be solved in O(nlog⁡W)O(n \log W) time for integer weights (where W is the total edge weight) and O(n2)O(n^2) 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 Σ_{\Sigma}. 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:

1O∗()^{1}O^{*}() hides polynomial factors.

is there a parametrization based only on the conflict graph structure that includes as special cases the known variants of TREEMCUT Σ\Sigma 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 max_{max}.

One simple parameter that naturally captures the relevant structure of conflict graphs is called neighborhood-diversity (see [29]), denoted here by nd(C)\text{nd}(\mathcal{C}), which groups vertices into “types” according to their neighborhoods. In Section 5, we give polynomial-time algorithms for conflict graphs with constant nd(C)\text{nd}(\mathcal{C}).

Theorem 4. (a) TREEMCUT Σ\Sigma can be solved in time O(n+∣F∣+4nd(C)∣Γ∣)O(n + |\mathcal{F}| + 4^{\mathrm{nd}(\mathcal{C})}|\Gamma|).

(b) CONTREEMCUT max_{max} can be solved in time O(n+∣F∣+4nd(C)∣Γ∣2)O(n + |\mathcal{F}| + 4^{\mathrm{nd}(\mathcal{C})}|\Gamma|^{2}) for real weights and in time O(n+∣F∣+4nd(C)∣Γ∣log⁡W)O(n + |\mathcal{F}| + 4^{\mathrm{nd}(\mathcal{C})}|\Gamma|\log W) 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 Σ\Sigma can be solved in time O(n+sp(C)∣Γ∣)O(n + \text{sp}(\mathfrak{C})|\Gamma|).

(b) CONTREEMCUT max_{max} can be solved in time O(n+sp(C)∣Γ∣2)O(n + \text{sp}(\mathfrak{C})|\Gamma|^{2}) for real weights and in time O(n+sp(C)∣Γ∣log⁡W)O(n + \text{sp}(\mathfrak{C})|\Gamma|\log W) 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 C\mathcal{C} is a complete cc-partite graph, then TREEMCUTΣ\text{TREEMCUT}_{\Sigma} can be solved in time O(n+c∣Γ∣)O(n + c|\Gamma|). Likewise CONTREEMCUTmax⁡\text{CONTREEMCUT}_{\max} can be solved in time O(n+c∣Γ∣2)O(n + c|\Gamma|^2) time for real weights and O(n+c∣Γ∣log⁡W)O(n + c|\Gamma|\log W) for integer weights.

(b) If C\mathcal{C} is a union of qq cliques, then TREEMCUTΣ\text{TREEMCUT}_{\Sigma} can be solved in time O(n+3q∣Γ∣)O(n + 3^q|\Gamma|). Likewise CONTREEMCUTmax⁡\text{CONTREEMCUT}_{\max} can be solved in time O(n+3q∣Γ∣2)O(n + 3^q|\Gamma|^2) time for real weights and O(n+3q∣Γ∣log⁡W)O(n + 3^q|\Gamma|\log W) for integer weights.

Previously, Corollary 1.1 was only known for TREEMCUT Σ\Sigma [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 O∗(22q)O^{*}(2^{2^{q}}) time [19] and is optimal assuming ETH [13]. For this reason, we also have to assume that the object C\mathfrak{C} is given for Theorem 5 in general. 2^{2} 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

2^{2}Technically, Corollary 1.1(a) also assumes the parts are already given, but computing that can be done in O(∣Γ∣+∣F∣)O(|\Gamma| + |\mathcal{F}|) 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 max_{max}, proving the ratio of Ω(log⁡n)\Omega(\log n) in the case of trees and Ω(n)\Omega(\sqrt{n}) 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 Σ_{\Sigma} 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 Σ_{\Sigma}, has rich literature. It’s known to be computationally hard. Even its multiway-cut version MWCUT Σ_{\Sigma} with only three terminals is NP-hard [16]. Research on MCUT Σ_{\Sigma} 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 max_{max}, 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 max_{max}, the restriction of MWCUT max_{max} to trees (without the connectivity requirement), for which they proved NP-hardness and gave a (2+ϵ)(2+\epsilon)-approximation algorithm for any ϵ>0\epsilon > 0.

Kolman and Tiwary [27] studied the variant of MWCUT max_{max} with the connectivity requirement on multicut's components. Their results include several hardness results, for example that CONMWCUT max_{max} 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.

References (31)