Matroid secretary problems: threshold-price and partition algorithms #
In the matroid secretary problem ([BIK07], Section 2), elements of a
finite matroid M : Matroid α with nonnegative weights w : α → ℝ arrive in uniformly random
order σ : Fin (Fintype.card α) ≃ α. Upon each arrival the algorithm makes an irrevocable
accept/reject decision maintaining matroid independence (M.Indep), seeking to maximize the total
weight of selected elements relative to an offline maximum-weight independent set.
Main definitions #
Cslib.Probability.OptimalStopping.MatroidSecretary.sampleSet,.postSampleList: the firstselements observed during sampling and the remaining arrival stream.Cslib.Probability.OptimalStopping.MatroidSecretary.sampleMax: maximum weight of a sample (0on empty samples).Cslib.Probability.OptimalStopping.MatroidSecretary.partitionSelect,.partitionSecretaryPMF,.expectedPartitionSecretary: independent per-block execution of the optimal classical secretary cutoff rule on a unit-capacity partition matroid ([BIK07], Section 6).Cslib.Probability.OptimalStopping.MatroidSecretary.thresholdPriceRun,.thresholdPricePMF,.expectedThresholdPrice: the Threshold Price Algorithm of [BIK07], Section 3.2 (filtering0-weight items as in Section 6 so0-weight ties cannot block the maximum element).
Main results #
Cslib.Probability.OptimalStopping.MatroidSecretary.card_filter_mem_sample_not_mem_sample,.one_fourth_le_prob_split: exact counts * (n - s) * (n - 2)!and≥ 1/4half-sampling split probability for any two distinct elements.Cslib.Probability.OptimalStopping.MatroidSecretary.exp_neg_one_le_successProb_optimalCutoff: for alln ≥ 1,Secretary.successProb (cutoffRule (optimalCutoff n)) ndecreases monotonically toexp (-1)and hence is at leastexp (-1).Cslib.Probability.OptimalStopping.MatroidSecretary.partitionSelect_indep,.exp_neg_one_mul_sum_le_expectedPartitionSecretary:partitionSelectalways produces an independent set inunitPartitionMatroid partand achieves expected weight at least(1 / e) · w(I)for every independent setI([BIK07], Section 6).Cslib.Probability.OptimalStopping.MatroidSecretary.thresholdPriceRun_indep,.sum_le_mul_expectedThresholdPrice,.sum_le_sixtyFour_clog_mul_expectedThresholdPrice: Theorem 3.2 of [BIK07] (Section 3.2): on well-behaved nonnegative weights (w x = w y → w x = 0forx ≠ y) over a loopless finite matroid (∀ x, M.Indep {x}) of sizen ≥ 2and rankk = M.eRank.toNat,Threshold Priceoutputs an independent set with expected weight at leastOPT / (32 * (⌈log₂ k⌉ + 1))(andOPT / (64 * ⌈log₂ k⌉)fork ≥ 2). BIK07 states32 ⌈log₂ k⌉by writing1 / log kfor the probability of picking an exponent in{0, …, ⌈log₂ k⌉}; keeping the exact uniform count⌈log₂ k⌉ + 1coversk = 1as well (1/32ofOPT). Requiring2 ≤ Fintype.card αis sharp becauses = ⌈n/2⌉ = 1leaves an empty suffix whenn = 1.
References #
Sampling splits under uniform arrival orders #
The sample set consisting of the first s elements in the arrival order σ.
The post-sample arrival sequence (elements arriving at times s, …, n - 1 in order).
For any two distinct elements a ≠ b and sample size s ≤ |α|, exactly
s * (|α| - s) * (|α| - 2)! arrival orders place a in the sample and b after the sample.
Under a uniformly random arrival order of n ≥ 2 elements, observing s = (n + 1) / 2
elements puts any chosen a in the sample and any distinct b after the sample with probability
at least 1 / 4.
Lower bound for optimal classical secretary cutoff #
Non-asymptotic 1/e bound for the optimal secretary cutoff: for every n ≥ 1, the
optimal cutoff rule selects the best of n candidates with probability at least 1/e (without an
O(1/n) slack, because the optimal success probability decreases monotonically to 1/e).
Partition matroids: e-competitive independent secretary copies #
Block size |{a | part a = i}|.
Online selection on a unit-capacity partition matroid unitPartitionMatroid part: runs
Secretary.cutoffRule (Secretary.optimalCutoff m) independently on each block of size m, using
toLex (w a, a) for tie-breaking independent of σ.
Every set selected by partitionSelect is independent in unitPartitionMatroid part (at most
one element per block).
The PMF of the independent set selected by partitionSelect under a uniformly random arrival
order.
Expected weight collected by partitionSelect under a uniformly random arrival order.
Partition matroid secretary theorem ([BIK07], Section 6, p. 9):
running independent copies of the optimal classical secretary cutoff rule on each part of a
unit-capacity partition matroid unitPartitionMatroid part achieves expected weight at least
(1 / e) · ∑ x ∈ I, w x for every independent set I and nonnegative weight function w.
General matroids: O(log k) Threshold Price algorithm #
Threshold Price Algorithm ([BIK07], Section 3.2) for fixed arrival
order σ and log-scale exponent j: observes s = ⌈n/2⌉ elements (sampleSet σ s), sets
threshold τ = sampleMax w S / 2^j, and greedily selects positive-weight elements above τ in
the remaining stream while maintaining matroid independence (M.Indep). Filtering 0-weight
elements (Section 6) ensures zero-weight ties cannot block the maximum element when sampleMax = 0.
Every run of thresholdPriceRun outputs an independent set of M.
The randomized Threshold Price experiment drawing σ and j uniformly and independently.
Every set in the support of thresholdPricePMF M w is independent in M.
Expected weight collected by the Threshold Price Algorithm under uniform random arrival order
and uniform random threshold exponent j : Fin (Nat.clog 2 M.eRank.toNat + 1).
Every element chosen by thresholdPriceRun arrived after the sample, has strictly positive
weight, and exceeds or equals the sampled threshold τ = sampleMax w S / 2 ^ j.
Theorem 3.2 (Threshold Price Algorithm) of [BIK07] (Section 3.2,
p. 5): on well-behaved nonnegative weights (w x = w y → w x = 0 for x ≠ y) over a loopless
finite matroid (∀ x, M.Indep {x}) with 2 ≤ |α|, the expected weight output by
thresholdPriceRun is at least 1 / (32 * (⌈log₂ k⌉ + 1)) of the weight of any independent set
I, where k = M.eRank.toNat.
O(log k) form of Theorem 3.2 for rank k = M.eRank.toNat ≥ 2: since
⌈log₂ k⌉ + 1 ≤ 2 * ⌈log₂ k⌉, Threshold Price is (64 * ⌈log₂ k⌉)-competitive.