arXiv:2608.29274cs.DSAug 2026

Manuscript Offprint

arXiv:2608.29274

A Simplified Analysis of the Good-Bad 3/23/2-Approximation Algorithm for Some Minimum-Cost Graph Problems

Shayan Ranjbarzadeh, David P. Williamson, Hannane Yaghoubizade

Abstract

In this paper, we consider an easy greedy approximation algorithm, the good-bad algorithm, introduced by Couëtoux [Cou11] for finding a minimum-cost set of edges such that every connected component has at least kk vertices. Couëtoux proves that the good-bad algorithm achieves a 3/2-approximation for this problem. Davis and Williamson [DW12] extend this result to the more general problem of finding a minimum-cost edge set that contains at least one edge from every cut S⊆VS \subseteq V satisfying h(S)=1h(S) = 1 where h:2V→{0,1}h: 2^V \to \{0,1\} is downward monotone; that is, h(S)=1h(S) = 1 implies h(T)=1h(T) = 1 for every nonempty subset T⊆ST \subseteq S. The original problem corresponds to h(S)=1h(S) = 1 when ∣S∣<k|S| < k. We give a simplified analysis of the good-bad algorithm for downward monotone functions.

1 Introduction

Consider the following problem, which we will refer to as LOWER CAPACITATED TREE PARTITIONING. Given an undirected graph G=(V,E)G = (V, E) with nonnegative edge costs c(e)≥0c(e) \geq 0 for all e∈Ee \in E, and a positive integer kk, the goal is to find a minimum-cost edge set F⊆EF \subseteq E such that each connected component of (V,F)(V, F) has at least kk vertices. If k=2k = 2, the problem is min-cost edge cover, and if k=∣V∣k = |V|, it is minimum spanning tree; both of these problems are known to be polynomial-time solvable. However, for any other constant value of kk, LOWER CAPACITATED TREE PARTITIONING is known to be NP-hard: Imielińska et al. [IKK93] establish this for k≥4k \geq 4, while Bazgan et al. [BCT11] prove it for k=3k = 3 and, more generally, show that the problem is APX-hard for every constant k≥3k \geq 3.

Imielińska et al. [IKK93] give a 2-approximation algorithm for this problem through a natural adaptation of Kruskal's algorithm [Kru56]. As in Kruskal's algorithm, edges are considered in nondecreasing order of cost; however, an edge between two distinct components is selected only when at least one of the components has size less than k. The performance guarantee of the algorithm is tight. Other 2-approximation algorithms based on edge deletion (instead of, or in addition to, edge insertion) are given by Laszlo and Mukherjee [LM05; LM06], who also perform some experimental comparisons.

Goemans and Williamson [GW94] show that the algorithm of Imielińska et al. can be extended to obtain a 2-approximation algorithm for a broad class of graph problems characterized by a downward monotone function h:2V→{0,1}1h: 2^V \to \{0,1\}^1. Specifically, hh is downward monotone if h(S)=1h(S) = 1 implies h(T)=1h(T) = 1 for every nonempty subset T⊆ST \subseteq S. A set of edges FF is feasible for the problem defined by hh if ∣F∩δ(S)∣≥h(S)|F \cap \delta(S)| \geq h(S) for every nontrivial subset S⊆VS \subseteq V, where δ(S)\delta(S) is the set of edges with exactly one endpoint in SS. For example, the LOWER CAPACITATED TREE PARTITIONING corresponds to the function hh where h(S)=1h(S) = 1 if and only if ∣S∣<k|S| < k. For this larger class of problems, similar to before, the algorithm processes the edges in nondecreasing order of cost, and adds an edge whenever it connects two distinct components CC and C′C' such that h(C)=1h(C) = 1 or h(C′)=1h(C') = 1. The edge-deletion algorithm of Laszlo and Mukherjee [LM05; LM06] also provides a 2-approximation guarantee for these problems [LM08]. Goemans and Williamson [GW94] show that several graph problems can be modeled with downward monotone functions, including some location-design and location-routing problems; for example, they consider a problem in which every connected component

1^{1}In fact, Goemans and Williamson [GW94] consider the more general setting of integer-valued downward monotone functions h:2V→Z≥0h: 2^V \to \mathbb{Z}_{\geq 0}, whereas we restrict our attention to binary-valued functions.

not only must have at least kk vertices, but also must have an open depot from a subset D⊆VD \subseteq V, where there is a cost c(d)c(d) for opening the depot d∈Dd \in D to serve the component.

Couëtoux [Cou11] gives a 3/2-approximation algorithm for LOWER CAPACITATED TREE PARTITIONING. In any partial solution constructed by the algorithm, let us call a connected component small if it has fewer than k vertices in it, and big otherwise. We call an edge good if it joins two small components into a big component, and bad otherwise. The algorithm behaves similarly to the Imielińska et al. algorithm in that it considers adding edges to the solution in nondecreasing order of cost. However, when it considers adding an edge e to the solution at cost c(e)c(e), it also considers all good edges e′e' of cost c(e′)≤2c(e)c(e') \leq 2c(e). If such a good edge exists, it adds the cheapest one; otherwise, it adds the edge e. The intuition for the algorithm is that we want to try to decrease the number of small components of a partial solution until there is no small components left. A good edge decreases this number by two, whereas a bad edge decreases it by only one. It is therefore reasonable to pay up to twice as much for a good edge as for a bad edge. We will refer to this algorithm as the good-bad algorithm. Davis and Williamson [DW12] show that the natural extension of the good-bad algorithm to downward monotone functions, in which a component C is small if h(C)=1h(C) = 1 and big if h(C)=0h(C) = 0 also obtains a 3/2-approximation guarantee. 2^{2}

In this paper, we provide a simpler analysis of the good-bad algorithm based on a straightforward charging argument. Couëtoux's analysis relies on a more intricate charging scheme, whereas Davis and Williamson use a primal-dual framework that compares the algorithm's cost directly with the optimal solution rather than with the value of a dual solution. We believe that our analysis is considerably simpler than these previous approaches. Moreover, its clean structure allows us to derive tighter guarantees in certain cases.

In the next section, we give a formal presentation of the good-bad algorithm, and in Section 3, we show that it obtains a 3/2-approximation guarantee.