arXiv:2610.34851cs.DSOct 2026

Manuscript Offprint

arXiv:2610.34851

When is greedy exact for weighted minimum 3-cut?

Armando Rodado Amaris

Abstract

The greedy algorithm for minimum 3-cut splits a global minimum-weight cut and then the cheaper of its two sides; it is a tight 4/3-approximation. We show that it is exact, from every global minimum-weight cut, whenever some optimal 3-partition has two parts joined by total weight at least the weighted edge connectivity λ\lambda. This extends both theorems of Hochbaum and Shmoys from unweighted planar graphs to all weighted graphs, recovers the 4/3 bound, and generalizes to minimum k-cut with a one-paragraph proof. The remaining hard instances have all pair weights below λ\lambda; for them we prove a merge lemma for Gomory–Hu sides. Finally, we give a 7-vertex graph with a unique Gomory–Hu tree whose unique optimal 3-partition contains no side of that tree, so the first stage of Kapoor’s algorithm does not suffice on its own. The main theorem, the 4/3 bound, the merge lemmas and the counterexample are verified in the Lean 4 proof assistant.

Keywords: minimum k-cut, greedy algorithm, Gomory–Hu tree, graph partitioning, submodularity, formal verification

1. Introduction

Given an undirected graph G=(V,E)G = (V, E) with positive edge weights, a 3-cut is a set of edges whose removal leaves at least three components; equivalently, the set of edges crossing a partition of V into three nonempty parts. The minimum 3-cut problem asks for one of least total weight. Throughout, “minimum” refers to total weight, not to the number of edges (see Section 2).

Email address: armando@rodadolab.com (Armando Rodado Amaris)

The problem is polynomial for fixed kk [1]. Exact algorithms for k=3k = 3 have successively used O(n3)O(n^{3}) max-flow computations [2, 3], an O(mn3)O(mn^{3}) enumeration of light cuts [4], and O(n)O(n) candidate cuts drawn from an ordered cut enumeration [5]. Vaughn [6] recently obtained O(n2log⁡2n)O(n^{2} \log^{2} n) randomized and O~(n2)\tilde{O}(n^{2}) deterministic time; under the Max-Weight Clique conjecture this is essentially optimal in general weighted graphs.

The simplest heuristic is the greedy algorithm: take a global minimum-weight cut (S,V∖S)(S, V \setminus S), then a minimum-weight cut of whichever side gives the lighter result. For weighted graphs it is a tight 4/3-approximation [7], as reported in [8]. For unweighted planar graphs, Hochbaum and Shmoys [8] proved, in the language of dual cycles, that it is exact in two structural situations. This note asks when the greedy algorithm is exact in general.

Contributions..

  1. Exactness criterion (Theorem 1). For every 3-partition (A,B,C)(A, B, C) and every global minimum-weight cut SS, greedy(S)≤max⁡(λ+d(A),W(A,B,C))(S) \leq \max(\lambda + d(A), W(A, B, C)). Consequently greedy is exact whenever some optimum has a pair of parts joined by weight at least λ\lambda. This holds in every weighted graph, recovers both Hochbaum–Shmoys theorems (Corollary 2) and the 4/3 bound (Corollary 3), and gives near-linear exact algorithms outside a well-defined hard class on general, planar and bounded-genus graphs (Corollary 4). Theorem 1, Corollaries 2 and 3, Proposition 5 and the merge lemmas are formalized in Lean 4.

  2. Hard instances (Section 4). When the criterion fails, all three pair weights are below λ\lambda, forcing every part's cut weight into [λ,2λ)[\lambda, 2\lambda) and the optimum into [3λ/2,3λ)[3\lambda/2, 3\lambda). A merge lemma shows that any Gomory–Hu side missing a vertex of each of the other two parts can be absorbed into a part of an optimum.

  3. Gomory–Hu sides are not enough (Section 5). Kapoor’s algorithm [2] first tries every side X of a Gomory–Hu tree as a part, completing it by a minimum-weight cut of G[V∖X]G[V \setminus X], and then needs further recursion. We show this cannot be avoided: a 7-vertex graph has a unique Gomory–Hu tree and a unique minimum-weight 3-partition containing no Gomory–Hu side. All claims about this graph are verified in Lean 4.

  4. Minimum k-cut (Section 6). A k-partition is compatible with a cut S if each of its parts lies inside S or inside V∖SV \setminus S. For every k≥3k \geq 3, every global minimum-weight cut SS and every kk-partition PP with parts Ai,AjA_i, A_j, the cheapest compatible kk-partition weighs at most max⁡(W(P)−w(Ai,Aj)+λ,W(P))\max(W(P) - w(A_i, A_j) + \lambda, W(P)) (Theorem 10). Hence every global minimum-weight cut is compatible with some minimum-weight kk-partition as soon as some optimum has two parts joined by weight at least λ\lambda. Without this condition a global minimum-weight cut can be incompatible with every optimum, already for k=3k = 3, where this is exactly the failure of greedy. The theorem also gives a two-line proof of Theorem 1.

Relation to prior arguments.. Two cases in the proof of Theorem 1, a minimum-weight cut crossing the lightest part and the lightest part contained in one side, overlap Lemmas 2 and 3 of Kamidoi, Wakabayashi and Yoshida [3]. The case where Vaughn's algorithm finishes immediately (a part of weight below OPT/2) is a special case of our criterion. The merge lemma is related to Xiao's non-crossing lemmas for 3-way cuts in hypergraphs [9].