arXiv:2609.04521cs.DSSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.04521

A Polymatroidal Perspective on Random Contraction

Karthekeyan Chandrasekaran, Chandra Chekuri, Weihao Zhu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Karger's elegant random contraction algorithm for finding a global mincut in a graph [28, 26] has been highly influential. More recent work has obtained several different (nonuniform) random contraction algorithms for mincut in hypergraphs and hedgegraphs [36, 19, 11, 15, 14]. Motivated by the conceptual goal of understanding these algorithms in a unified fashion, we study random contraction algorithms for finding a minimum quotient of a polymatroid. We introduce the notion of quotient-bounded polymatroids and show that several existing results can be derived and understood under a common algorithmic framework for quotient-bounded polymatroids.

*Grainger College of Engineering. Univ. of Illinois, Urbana-Champaign, Urbana, IL 61801. Email: {karthe, chekuri, weihaoz3}@illinois.edu. Supported in part by NSF grant CCF-2402667.

1 Introduction

In GRAPH-MIN-CUT problem the input contains a connected multigraph G=(V,E)G = (V, E) with n:=∣V∣n := |V| vertices and the goal is to find a minimum number of edges whose removal disconnects the vertex set. Karger developed a simple and highly influential random contraction algorithm for this problem [28]. It is easy to describe it in a recursive fashion. In the base case, when ∣V∣=2|V| = 2, the algorithm returns the unique non-trivial cut in the graph between the two vertices. Otherwise it picks an edge e∈Ee \in E uniformly at random and contracts it to obtain a graph G′=G/eG' = G/e, and recurses on G′G'. Karger proved that for every specific mincut C⊆EC \subseteq E, this algorithm returns CC with probability at least 1(n2)\frac{1}{\binom{n}{2}}. The analysis is also simple, and is routinely taught as a first randomized algorithm. There have been many important and influential developments related to this original work, several of which were already in Karger's thesis [26]. In this paper we focus mainly on polynomial-time solvability and structural aspects, and hence, we will not dwell on several refinements of the random contraction algorithms that yield faster algorithms such as [34].

More recently, random contraction has been studied for computing the minimum cut in hypergraphs, and a generalization of hypergraphs called hedgegraphs. A hypergraph H=(V,E)H = (V, E) consists of a finite vertex set VV and a set EE of hyperedges, where each hyperedge e∈Ee \in E is a subset of vertices. A hedgegraph G=(V,E)G = (V, E) consists of a finite vertex set VV and a finite set EE of hedges, where each hedge e∈Ee \in E is a collection of distinct hyperedges. Hedgegraphs were introduced by Ghaffari, Karger, and Panigrahi [19] to model correlated edge failures in graphs. The global mincut problem in these two structures is easy to define. Find a partition of VV into (S,V−S)(S, V - S) to minimize the number of hyperedges (hedges, respectively) that cross the partition — equivalently, find a minimum number of hyperedges (hedges, respectively) to remove in order to disconnect the hypergraph (or hedgegraph). Ghaffari, Karger and Panigrahi [19] showed that a certain nonuniform random contraction algorithm yields a polynomial-time algorithm for HYPERGRAPH-MIN-CUT problem. Interestingly they also developed a quasi-polynomial-time algorithm for HEDGEGRAPH-MIN-CUT and a PTAS for it, again via a nonuniform version of random contraction. Subsequent work showed that HEDGEGRAPH-MIN-CUT is hard [21] — under the exponential-time hypothesis (ETH) there is no polynomial-time algorithm for it! Chandrasekaran, Xu, and Yu [11] developed a different variant of nonuniform random contraction that also yields a polynomial-time algorithm for HYPERGRAPH-MIN-CUT, and also for the special case of HEDGEGRAPH-MIN-CUT in constant span hedgegraphs (we will formally define span later). Fomin, Golovach, Korhonen, Lokshtanov, and Saurabh [14] designed a different variant of nonuniform random contraction that yields a fixed-parameter algorithm for HEDGEGRAPH-MIN-CUT parameterized by solution size.

A natural question is whether the aforementioned results can be understood in a common framework. We describe a second motivation for our work. Karger, subsequent to his work on graphs, showed that random contraction is natural from a matroidal perspective and that the algorithm to compute a global mincut can be viewed as computing the minimum quotient in the underlying graphic matroid. One could then ask if random contraction works for every matroid to find a minimum quotient. However, finding a minimum quotient is NP-Hard even for restricted classes of matroids 1^1. Despite this, the underlying random sampling machinery can be extended to matroids — Karger pointed this out [27] and derived several applications. More recently, Quanrud [40], building upon some of Karger's work, showed that every matroid (and polymatroid) admits quotient sparsification. This generalized well-known results on graph cut sparsification by Benczur and Karger [7], and hypergraph cut sparsification by Chen, Khanna and Nagda [13], and led to new results. In another direction, Chandrasekaran, Chekuri, and Zhu in recent work [10] showed that

1^1Finding a minimum quotient in the dual of transversal matroids is NP-hard—attributed to Stockmeyer in [38].

it is fruitful to view hedgegraphs from a polymatroidal view even though the cut function (that is defined over the vertex set) is not submodular. These motivate us to understand the successes of random contraction for graphs, hypergraphs, and hedgegraphs from a polymatroidal perspective, and develop a unified picture that is not only explanatory but also has the scope to generalize and yield new results and insights. We first describe relevant background.

Polymatroids, Matroids, and Quotients: A polymatroid f:2N→Z≥0f: 2^{\mathcal{N}} \to \mathbb{Z}_{\geq 0} on a ground set N\mathcal{N} is an integer-valued monotone submodular function with f(∅)=0f(\emptyset) = 0. A function f:2N→Z≥0f: 2^{\mathcal{N}} \to \mathbb{Z}_{\geq 0} is monotone if f(A)≤f(B)f(A) \leq f(B) for every A⊆BA \subseteq B and submodular if f(A)+f(B)≥f(A∪B)+f(A∩B)f(A) + f(B) \geq f(A \cup B) + f(A \cap B) for every A,B⊆NA, B \subseteq \mathcal{N}. Equivalently, ff is submodular if f(A+e)−f(A)≥f(B+e)−f(B)f(A + e) - f(A) \geq f(B + e) - f(B) for all A⊂BA \subset B and e∈N∖Be \in \mathcal{N} \setminus B. We define the rank of ff to be f(N)f(\mathcal{N}). The span of a set AA, denoted span⁡(A):={e∈N∣f(A∪{e})≤f(A)}\operatorname{span}(A) := \{e \in \mathcal{N} \mid f(A \cup \{e\}) \leq f(A)\}. A subset S⊆NS \subseteq \mathcal{N} is closed if f(S∪{e})>f(S)f(S \cup \{e\}) > f(S) for every e∈N∖Se \in \mathcal{N} \setminus S, in other words if span⁡(S)=S\operatorname{span}(S) = S. We call a subset Q⊆NQ \subseteq \mathcal{N} a quotient if N∖Q\mathcal{N} \setminus Q is a closed set. We note that N\mathcal{N} is always a closed set, implying that the empty set ∅\emptyset is a quotient. A matroid M=(N,I)\mathcal{M} = (\mathcal{N}, \mathcal{I}) consists of a finite ground set N\mathcal{N} and a collection of independent sets I⊆2N\mathcal{I} \subseteq 2^{\mathcal{N}} that satisfy three properties. Since these are well-known, we instead define matroids as a special case of polymatroids. In this view, a matroid is defined by its rank function rM:2N→Z≥0r_{\mathcal{M}}: 2^{\mathcal{N}} \to \mathbb{Z}_{\geq 0} which is a polymatroid with an additional property: rM(e)∈{0,1}r_{\mathcal{M}}(e) \in \{0,1\} for each e∈Ne \in \mathcal{N}. A set A⊆NA \subseteq \mathcal{N} is independent iff rM(A)=∣A∣r_{\mathcal{M}}(A) = |A|. A circuit is a minimal dependent set. A base of a matroid is a maximal independent set. It is easy to establish that all bases in a matroid have the same cardinality, and this is called the rank of the matroid M\mathcal{M}. Note that in a polymatroid one can define a base to be a minimal set SS such that f(S)=f(N)f(S) = f(\mathcal{N}), and in this setting, bases may have different cardinalities. We refer to [41] for additional background. The main problem of interest to us is the following.

Definition 1 (MIN-QUOTIENT Problem). Given a polymatroid f:2N→Z≥0f: 2^{\mathcal{N}} \to \mathbb{Z}_{\geq 0} via an evaluation oracle, return a minimum cardinality non-empty quotient of ff.

When ff is the rank function of a matroid M\mathcal{M}, then the min-quotient problem is the same as the well-known min-cocircuit or the cogirth problem. A co-circuit is a set that intersects every base of the matroid, or equivalently, it is a circuit in the dual matroid M∗\mathcal{M}^*. Finding a min-circuit of a matroid is an important algorithmic problem; for instance the shortest code-word in a binary linear code is a special case and Vardy showed that this is NP-Hard [44].

Quotients and cuts in graphs, hypergraphs, and hedgegraphs: Let G=(V,E)G = (V, E) be a multigraph. The well-known graphic matroid associated with GG is MG=(E,I)\mathcal{M}_G = (E, \mathcal{I}) where a set A⊆EA \subseteq E of edges is independent iff the subgraph (V,A)(V, A) is a forest. The rank function of this matroid, rG:2E→Z≥0r_G: 2^E \to \mathbb{Z}_{\geq 0} is defined as: rG(A):=∣V∣−#Comps(V,A)r_G(A) := |V| - \# \mathrm{Comps}(V, A) for A⊆EA \subseteq E, where #Comps(V,A)\# \mathrm{Comps}(V, A) is the number of connected components in the subgraph (V,A)(V, A). When GG is connected, non-empty quotients of rGr_G correspond exactly to edge cutsets (a set of edges whose removal disconnects the graph): a quotient QQ is the set of edges that cross the connected components of the closed set E∖QE \setminus Q. Thus, finding a minimum non-empty quotient of rGr_G is precisely the GRAPH-MIN-CUT problem2^2.

Now we consider a hypergraph H=(V,E)H = (V, E). Here, we consider the function f:2E→Z≥0f: 2^E \to \mathbb{Z}_{\geq 0} defined by f(A)=∣V∣−#Comps(V,A)f(A) = |V| - \# \mathrm{Comps}(V, A), where #Comps(V,A)\# \mathrm{Comps}(V, A) is the number of connected components in the subgraph (V,A)(V, A). ff is a polymatroid and we denote it as the hypergraphic polymatroid associated with HH [10]. For a hyperedge ee, f(e)=∣e∣−1f(e) = |e| - 1 and thus in general ff is not a matroid. As in graphs, a quotient Q⊆EQ \subseteq E corresponds to a hyperedge cutset (i.e., a set of hyperedges whose removal disconnects the hypergraph). Thus, finding a min-quotient of ff is the same as solving HYPERGRAPH-MIN-CUT.

2^2The connection between mincut and min-quotients is most natural when each element has unit weight. In the graph setting we can treat weighted edges by making parallel copies and the equivalence holds.

Next we consider a hedgegraph G=(V,E)G = (V, E). We recall that each hedge e∈Ee \in E is a collection of distinct hyperedges. Consider the function f:2E→Z≥0f: 2^E \to \mathbb{Z}_{\geq 0} defined by f(A)=∣V∣−#Comps(V,A)f(A) = |V| - \# \mathrm{Comps}(V, A), where #Comps(V,A)\# \mathrm{Comps}(V, A) is the number of connected components in the hypergraph (V,{h:h∈e for some e∈A})(V, \{h : h \in e \text{ for some } e \in A\}). ff is a polymatroid and we denote it as the hedgegraph polymatroid associated with GG [10]. Finding a min-quotient of ff is the same as solving HEDGEGRAPH-MIN-CUT.

We point out an important aspect in viewing the mincut problems from the min-quotient view. In both graphs and hypergraphs, the cut function dG:2V→Z≥0d_G: 2^V \to \mathbb{Z}_{\geq 0} defined over the vertices is a nonmonotone submodular set function; thus, one can solve GRAPH-MIN-CUT and HYPERGRAPH-MIN-CUT via submodular set function minimization — in fact, one can solve the min-s-t-cut problem as well. In contrast, the cut function of a hedgegraph is not submodular [19], and min-s-t-cut problem in hedgegraphs is NP-Hard [46]!

c-quotient-bounded Polymatroid Families: The min-cocircuit problem in matroids and polymatroids is NP-Hard. We define a parameterized family of minor-closed polymatroids and show that random contraction algorithms succeed in solving the min-quotient problem for them.

Definition 2 (Minor-Closed Polymatroid Family). Let f:2N→Z+f: 2^{\mathcal{N}} \to \mathbb{Z}_+ be a polymatroid and e∈Ne \in \mathcal{N}. The set function f∖e:2N−e→Z+f_{\setminus e}: 2^{\mathcal{N}-e} \to \mathbb{Z}_+ is the polymatroid obtained by deleting ee, i.e., f∖e(S):=f(S)f_{\setminus e}(S) := f(S) for all S⊆N−eS \subseteq \mathcal{N} - e. The polymatroid fe:2N−e→Z+f_e: 2^{\mathcal{N}-e} \to \mathbb{Z}_+ is the polymatroid obtained by contracting ee, i.e., fe(S):=f(S+e)−f(e)f_e(S) := f(S + e) - f(e) for all S⊆N−eS \subseteq \mathcal{N} - e. For a subset N1⊆N\mathcal{N}_1 \subseteq \mathcal{N}, a polymatroid g:2N1→Z≥0g: 2^{\mathcal{N}_1} \to \mathbb{Z}_{\geq 0} is a minor of ff if it can be obtained from ff by deleting elements and contracting elements. A family F\mathcal{F} of polymatroids is minor-closed if for every f∈Ff \in \mathcal{F} all minors of ff are also in F\mathcal{F}.

Definition 3 (Quotient Bounded Polymatroid Family). Let F\mathcal{F} be a minor-closed family of polymatroids and c≥1c \geq 1 be an integer. The family F\mathcal{F} is a cc-quotient-bounded if for every f:2N→Z≥0f: 2^{\mathcal{N}} \to \mathbb{Z}_{\geq 0} in F\mathcal{F}, there is a non-empty quotient QQ of ff such that3^3

∣Q∣≤c⋅∑e∈Nf(e)f(N).|Q| \leq c \cdot \frac{\sum_{e \in \mathcal{N}} f(e)}{f(\mathcal{N})}.

We say that F\mathcal{F} is cc-strongly-quotient-bounded if for every polymatroid f:2N→Z≥0f: 2^{\mathcal{N}} \to \mathbb{Z}_{\geq 0} in F\mathcal{F}, there is a non-empty quotient QQ of ff such that

∣Q∣≤∑e∈N(f(e)+c)f(N).|Q| \leq \frac{\sum_{e \in \mathcal{N}} (f(e) + c)}{f(\mathcal{N})}.

If F\mathcal{F} is the set of rank functions of a minor-closed family of matroids, then the two definitions are roughly equivalent—in particular, c⋅∑e∈Nf(e)/f(N)=c⋅∣N∣/f(N)c \cdot \sum_{e \in \mathcal{N}} f(e)/f(\mathcal{N}) = c \cdot |\mathcal{N}|/f(\mathcal{N}) and ∑e∈N(f(e)+c)=(c+1)⋅∣N∣/f(N)\sum_{e \in \mathcal{N}} (f(e) + c) = (c+1) \cdot |\mathcal{N}|/f(\mathcal{N}), i.e., they differ by a factor of at most 2. In this setting, our definition is the same as the notion of cc-ratio matroids defined by Karger [27]: these are matroids with a gap of at most cc between the min-quotient and the base packing number. A kk-polymatroid is a polymatroid in which the function value of every singleton set is at most kk. In this sense, 1-polymatroids are equivalent to matroid rank functions. If kk is a fixed-constant, then kk-polymatroids are close to being matroid rank functions; also cc-strongly-quotient-bounded and cc-quotient-bounded are equivalent upto a factor of 2k2k: c⋅∑e∈Nf(e)/f(N)∈[c∣N∣/f(N),ck∣N∣/f(N)]c \cdot \sum_{e \in \mathcal{N}} f(e)/f(\mathcal{N}) \in [c|\mathcal{N}|/f(\mathcal{N}), ck|\mathcal{N}|/f(\mathcal{N})] and ∑e∈N(f(e)+c)∈[(c+1)∣N∣/f(N),(c+k)⋅∣N∣/f(N)]\sum_{e \in \mathcal{N}} (f(e) + c) \in [(c+1)|\mathcal{N}|/f(\mathcal{N}), (c+k) \cdot |\mathcal{N}|/f(\mathcal{N})]. An important example that is relevant to this work are hypergraphs where each hyperedge has at most kk vertices; we call them kk-hypergraphs4^4. The hypergraphic polymatroid family associated with kk-hypergraphs are in fact (k−1)(k-1)-polymatroids.

3^3For simplicity, we assume that the empty polymatroid always satisfies this property.

4^4Typically these are called rank-kk hypergraphs but we avoid this due to the use of rank for other concepts.

Our definitions bring out subtle differences in the setting of general polymatroids. For a minor-closed family of polymatroids, cc-strongly-quotient-bounded is a much stronger property than cc-quotient-bounded, especially from the perspective of random contraction. We explain this next by considering three concrete polymatroid families that are minor-closed.

In graphs, the analysis of the random contraction algorithm of Karger relies on the fact that the global mincut value is at most the average degree which is 2∣E∣/∣V∣2|E|/|V| — this is true because there is a vertex vv with degree at most the average degree and the edges incident to vv form a valid cut. A similar fact is also used in the analysis of the nouniform random contraction of hypergraphs: The global mincut value is at most the average degree which is (∑e∈E∣e∣)/∣V∣(\sum_{e \in E} |e|)/|V|. Via these observations, one can show that both the hypergraphic polymatroid family and the graphic matroid rank function family are 2-quotient-bounded. In fact, one can also show that the hedgegraph polymatroid family is also 2-quotient-bounded. What distinguishes hypergraphs and hedgegraphs? A key observation is that the hypergraphic polymatroid family is 1-strongly-quotient-bounded. The span of a hedgegraph is the maximum number of vertex-disjoint components among all hedges. We also observe that the hedgegraph polymatroid family of hedgegraphs of span at most ss is ss-strongly-quotient-bounded. Section 7 proves these observations.

On random contraction for polymatroids: Random contraction algorithms use a series of contractions to reduce the problem to an easy base case where one can enumerate all the quotients/mincuts by brute force. The base case in the setting of graphs, hypergraphs, and hedgegraphs is when the number of vertices is a fixed constant. In the setting of polymatroids, this is when the rank is small. The algorithm needs to choose an element to contract to ensure that a min-quotient survives. In the setting of matroids, all elements ee have f(e)=1f(e) = 1 and are indistinguishable for a random contraction algorithm that is oblivious to global structure, and hence, uniform random contraction is the natural choice. However, in the setting of polymatroids, f(e)f(e) values can differ substantially, so contracting an element with large f(e)f(e) value reduces the rank significantly in one step but may destroy the minimum quotient. For instance, consider the extreme case of an element ee with f(e)=f(N)f(e) = f(N); every such element belongs to every non-empty quotient. We cannot contract such an element; we need to include it in every quotient and delete it from further consideration. This discussion shows that a random contraction algorithm may need to differentiate the elements according to f(e)f(e) value while being somewhat oblivious to the structure, and this naturally leads to various non-uniform random contraction approaches. We note that the abstract polymatroid framework does not “see” the vertices when applied to the polymatroid associated with graphs, hypergraphs, and hedgegraphs; recall that the polymatroid is defined over edges/hyperedges/hedges. The cc-strongly-quotient-bounded and cc-quotient-bounded conditions abstract the desired average degree bounds on the min-quotient in a clean fashion.

References (33)