Queyranne's Algorithm for Symmetric Submodular Minimization #
Queyranne's algorithm ([Que98]) finds a non-trivial subset minimizing an arbitrary
symmetric submodular set function f : Finset V → β (f Xᶜ = f X and
f (A ∪ B) + f (A ∩ B) ≤ f A + f B) over a finite ground set V with |V| ≥ 2. The comparison
and ordering condition are formulated without subtraction so the algorithm and proof apply uniformly
to ℕ, ℤ, ℚ, ℝ, and any [AddCommMonoid β] [LinearOrder β] [IsOrderedCancelAddMonoid β].
Each phase contracts the ground set into a partition of active supervertices (blocks), greedily
builds a Queyranne ordering maximizing f {x} - f (A ∪ {x}) (equivalently minimizing
f (insert x A) + f {y} against f (insert y A) + f {x}), records the singleton cut {t} of the
last block, and merges the last two blocks (s, t). By Queyranne's pendent-pair lemma
([Que98]), f t ≤ f C for every cut separating s and t; cuts not separating s and
t survive merging them, yielding the phase recursion across |V| - 1 phases.
CslibFrontier.Algorithms.Lean.Query.Submodular.QueyranneliftsqueyranneMintoFreeM (ValueQuery V β)and proves theO(|V|³)value-oracle query bound.- Applications at the bottom of this file specialize
queyranneto real/ordered-monoid-weighted Stoer–Wagner global minimum cut ([SW97], coveringℚ,ℝ,ℤ,ℕ) and hypergraph global minimum cut. Note that evaluating a dense graph'scutWeightvia the set-function oracle evaluates full sums on each query (unlike an incremental adjacency array); only value-oracle queries are charged in the query-complexity companion module.
Main definitions #
Cslib.Algorithms.Lean.Submodular.IsSymmetric:f Xᶜ = f Xfor allX.Cslib.Algorithms.Lean.Submodular.IsQOrdering: a full Queyranne ordering ofV.Cslib.Algorithms.Lean.Submodular.QScanResult,Cslib.Algorithms.Lean.Submodular.QPendentPair,Cslib.Algorithms.Lean.Submodular.QCutResult: named output records for scan, phase pendent pair, and global cut results.Cslib.Algorithms.Lean.Submodular.queyranneM,Cslib.Algorithms.Lean.Submodular.queyranne: monadic and pure Queyranne symmetric submodular minimization algorithms.Cslib.Algorithms.Lean.Submodular.hyperCutWeight: total weight of hyperedges crossing a cut.
Main results #
IsSymmetric.posimodular: every symmetric submodular function is posimodular.pendentPair_le(Queyranne's pendent-pair lemma, [Que98]): if(s, t)are the last two elements of a Queyranne ordering of a symmetric submodularf, thenf {t} ≤ f Cfor every cutCseparatingsandt.queyranne_spec(Queyranne's minimization theorem, [Que98]):queyranne f vsreturns a non-trivial cut minimizingfover all non-trivial subsets ofV.queyranne_cutWeight_spec,queyranne_minCut_eq(real/ordered-monoid Stoer–Wagner, [SW97]): global minimum cut for symmetric nonnegative edge weights in any[AddCommMonoid β] [LinearOrder β] [IsOrderedCancelAddMonoid β](ℚ,ℝ,ℤ,ℕ).isSymmetric_hyperCutWeight,isSubmodular_hyperCutWeight,queyranne_hyperCutWeight_spec: global minimum cut of a nonnegative weighted hypergraph.
References #
Symmetry, posimodularity, and the pendent-pair lemma #
A set function f : Finset V → β on a finite type V is symmetric if f Xᶜ = f X for
every subset X : Finset V.
Every symmetric submodular function is posimodular: f (A \ B) + f (B \ A) ≤ f A + f B.
IsQOrderingFrom f A l: ordering l after prefix A, each element x minimizes
f (insert y A) - f {y} among remaining elements y, stated without subtraction as
f (insert x A) + f {y} ≤ f (insert y A) + f {x}.
A full Queyranne ordering of the finite type V with respect to f.
- nodup : l.Nodup
No element is listed twice.
- mem (v : V) : v ∈ l
Every element of
Vis listed. - isQOrderingFrom : IsQOrderingFrom f ∅ l
Every prefix minimizes marginal insertion cost minus singleton value.
Queyranne's pendent-pair lemma ([Que98]): if (s, t) are the last two elements of
a Queyranne ordering of a symmetric submodular function f, then f {t} ≤ f C for every cut C
separating s and t.
Monadic and pure Queyranne minimization algorithms #
Output of one scan round choosing the next block in a Queyranne ordering.
Pendent pair (fst, snd) returned by one ordering phase together with f snd.
Scan candidates cs left-to-right, minimizing f (A ∪ b) - f b (without subtraction) and
breaking ties toward earlier candidates.
Extend the Queyranne ordering for k remaining selection rounds, returning the last two blocks
(prev, t) and the singleton value f t. When only one candidate (t, st) remains (cs = []),
no query is performed.
Compute the pendent pair and last singleton value for active blocks b₀ :: b₁ :: bs.
Contract blocks s and t into s ∪ t in the active partition list.
Execute steps + 1 contraction phases of Queyranne's algorithm on blocks, returning a
non-trivial cut minimizing f together with its value.
Monadic Queyranne algorithm ([Que98]) on ground list vs, deduplicating vs via
List.eraseDups and contracting through |vs.eraseDups| - 1 phases.
Pure executable Queyranne algorithm ([Que98]) minimizing a symmetric submodular
function f : Finset V → β over vs : List V.
Monad homomorphism naturality bridges #
Correctness of Queyranne's algorithm #
Main minimization theorem and combinatorial cut applications #
Queyranne's theorem ([Que98]): on any finite ground type V with 2 ≤ |V|, for
any list vs containing every vertex and any symmetric submodular function f : Finset V → β with
values in [AddCommMonoid β] [LinearOrder β] [IsOrderedCancelAddMonoid β], queyranne f vs
returns a non-trivial subset S achieving the global minimum of f over all non-trivial subsets
of V.
Real / ordered-monoid Stoer–Wagner global minimum cut ([SW97], via
[Que98]): for symmetric nonnegative edge weights W : V → V → β in any ordered
commutative cancellative monoid (ℚ, ℝ, ℤ, ℕ), queyranne (cutWeight W) vs computes a
non-trivial cut of minimum cutWeight.
On natural-number weighted multigraphs (IsMultigraph W), the value returned by queyranne
equals Cslib.WeightedCut.minCut W.
Cut weight of a weighted hypergraph (H, w) across vertex subset X: total weight of all
hyperedges e ∈ H having at least one vertex in X and at least one vertex outside X.
The hypergraph cut function is symmetric.
Nonnegative hypergraph cut functions are submodular.
Hypergraph global minimum cut ([Que98]): queyranne (hyperCutWeight H w) vs finds
a non-trivial cut of minimum total weight of crossing hyperedges.