Approximate-Oracle Greedy Submodular Maximization over p-Systems #
This module formalizes the greedy algorithm for maximizing a monotone submodular set function
f : Finset α → β over a p-system indep when each greedy round uses an α-approximate
marginal-gain oracle instead of an exact maximizer ([CCPV11], Appendix B;
[FNW78]).
Algorithm design #
- First-occurrence deduplication
xs.eraseDupsproduces the ordered ground listu. - In each round,
feasibleCandidates indep u Stests every remaining elementc ∉ Sofufor feasibility (indep (insert c S)). If no candidate is feasible, the algorithm stops. Otherwise, a selectorchoose S c₀ cs(monadicallychooseM S c₀ cs) picks one elementc ∈ c₀ :: csfrom the nonempty feasible list and inserts it intoS. marginalGainMatroidGreedy/marginalGainMatroidGreedyMinstantiateschooseby scanning a marginal-gain oraclegain : Finset α → α → βover the feasible candidates and picking the first candidate maximizinggain S c.- Exact Fisher–Nemhauser–Wolsey greedy (
CslibFrontier.Algorithms.Lean.Submodular.MatroidGreedy) is theα = 1specialization wherechoosescans exact valuesf (insert c S).
Main definitions #
Cslib.Algorithms.Lean.Submodular.feasibleCandidates,filterIndepM: pure and monadic feasibility filters for one greedy round.Cslib.Algorithms.Lean.Submodular.approxMatroidGreedy,Cslib.Algorithms.Lean.Submodular.approxMatroidGreedyM,Cslib.Algorithms.Lean.Submodular.approxMatroidGreedyChain: selector-driven greedy algorithm and its prefix chain.Cslib.Algorithms.Lean.Submodular.scanMarginalGain,scanMarginalGainM,Cslib.Algorithms.Lean.Submodular.marginalGainMatroidGreedy,Cslib.Algorithms.Lean.Submodular.marginalGainMatroidGreedyM: specialization scanning an explicit marginal-gain oraclegain : Finset α → α → β.
Main results #
sum_le_nsmul_sub_of_pSystem_chain: general chain-level charging inequality forp-systems.mul_add_natCast_mul_le_approxMatroidGreedy: for a monotone submodularf, ap-systemindep, anα-approximate feasible selector (0 ≤ α), and any independentO ⊆ xs.toFinset,α * f O + (p : β) * f ∅ ≤ ((p : β) + α) * f G.div_add_mul_le_approxMatroidGreedy: ordered-field form(α / ((p : β) + α)) * f O ≤ f Gwhen0 < αand0 ≤ f ∅, together with its matroid specialization (div_add_mul_le_approxMatroidGreedy_of_matroid),k-matroid intersection specialization (div_add_mul_le_approxMatroidGreedy_of_iInter_matroid), and modular-objective bound (mul_sum_le_natCast_mul_sum_approxMatroidGreedy).mul_add_natCast_mul_le_marginalGainMatroidGreedy,div_add_mul_le_marginalGainMatroidGreedy:α / (p + α)guarantee for a pointwiseα-approximate marginal-gain oracleα * marginalGain f S c ≤ gain S c ≤ marginalGain f S c.
References #
- [CCPV11] Gruia Calinescu, Chandra Chekuri, Martin Pál, and Jan Vondrák,
Maximizing a Monotone Submodular Function Subject to a Matroid Constraint, 2011 (Appendix B
p-system charging argument; exact theorem numbering not verified against primary PDF). - [FNW78] Marshall L. Fisher, George L. Nemhauser, and Laurence A. Wolsey, An Analysis of Approximations for Maximizing Submodular Set Functions—II, 1978. Attributed via [CCPV11]; not inspected (paywalled).
Selector-driven greedy algorithm #
Feasible candidates of one greedy round: the elements c ∉ S of u with
indep (insert c S) = true, in order.
One pure selector-driven greedy round over deduplicated ground list u: returns
some (insert (choose S c₀ cs) S) when feasibleCandidates indep u S = c₀ :: cs, or none when
no candidate is feasible.
Pure selector-driven greedy loop with fuel k, stopping at the first round without a feasible
candidate.
Pure selector-driven greedy algorithm over independent subsets of the ground list xs.
One monadic selector-driven greedy round: one indepM call per remaining element c ∉ S of
u, then one chooseM S c₀ cs call when feasible candidates exist.
Pure left-to-right scan selecting the first candidate maximizing gain S c.
Pure selector picking the feasible candidate maximizing gain S c.
Monadic selector evaluating gainM S c once per feasible candidate and returning the first
maximizer.
Pure greedy algorithm driven by a marginal-gain oracle gain : Finset α → α → β.
Monadic greedy algorithm driven by a marginal-gain oracle gainM and independence oracle
indepM.
Scan invariants for marginal-gain selection #
The greedy chain, feasibility, and maximality #
The chain S₀ = ∅ ⊆ S₁ ⊆ ⋯ of prefixes produced by approxMatroidGreedyStep.
Once a round finds no feasible candidate, the greedy chain is constant.
The output equals the n-th prefix of the chain, where n = xs.eraseDups.length.
After u.toFinset.card rounds no feasible candidate remains.
The output is a subset of the ground list.
The output is independent whenever ∅ is.
The output is maximal: no element of the ground list can be inserted while keeping independence.
Under an independence test implementing M : Matroid α, the output is a basis of
{x | x ∈ xs}.
General p-system chain charging #
General chain-level charging for p-systems ([CCPV11],
Appendix B). Let indep be a p-system, S : ℕ → Finset α a monotone chain of independent sets
with S 0 = ∅ and (S t).card ≤ t, O an independent set whose elements are all selected or
blocked by round n, and f monotone. If each o ∈ O costs at most f (S (t + 1)) - f (S t)
in every round t < n where o is still feasible, then ∑ o ∈ O, c o ≤ p • (f (S n) - f ∅).
Chain-level charging instantiated for approxMatroidGreedyChain.
α / (p + α) approximation guarantees #
α / (p + α) Greedy Bound over p-Systems (ring form;
[CCPV11], Appendix B; [FNW78]).
If indep is a p-system, f is monotone submodular, and in every independent state S the
selector choose returns a feasible element whose marginal gain is at least α times that of
every feasible candidate (0 ≤ α), then
α * f O + (p : β) * f ∅ ≤ ((p : β) + α) * f (approxMatroidGreedy choose indep xs).
α / (p + α) Greedy Bound over p-Systems, ordered-field form
([CCPV11], Appendix B; [FNW78]): when 0 < r and
0 ≤ f ∅, (r / ((p : β) + r)) * f O ≤ f (approxMatroidGreedy choose indep xs).
α / (1 + α) bound over a matroid (the p = 1 case).
α / (k + α) bound over an intersection of k ≥ 1 matroids (k = Fintype.card ι).
Approximate-oracle modular bound over p-systems: for nonnegative weights w,
r * ∑ x ∈ O, w x ≤ (p : β) * ∑ x ∈ G, w x.
α / (p + α) Bound for a Pointwise Approximate Marginal-Gain Oracle (ring form):
if r * marginalGain f S c ≤ gain S c ≤ marginalGain f S c for every feasible c ∉ S at
independent S, then marginalGainMatroidGreedy gain indep xs achieves
r * f O + (p : β) * f ∅ ≤ ((p : β) + r) * f G.
α / (p + α) Bound for a Pointwise Approximate Marginal-Gain Oracle, ordered-field form:
(r / ((p : β) + r)) * f O ≤ f (marginalGainMatroidGreedy gain indep xs) when 0 < r and
0 ≤ f ∅.