Manuscript Offprint
arXiv:2611.08869As Easy as Rank One: Optimal Algorithms for Matroid Secretary and Single-Sample Matroid Prophet
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We resolve the matroid secretary conjecture in its strong form and the single-sample matroid prophet inequality problem, achieving competitive ratios e and 2, respectively. Both ratios are optimal, even for rank-one matroids.
For matroid secretary, our ordinal algorithm accepts the elements of the canonical optimum independently, each with probability 1/e. It needs only the number of elements in advance and uses an expected polynomial number of independence queries on arrived elements. For single-sample matroid prophet inequalities, our algorithm uses one sample per independent value distribution and independence queries on a known n-element matroid. It works for every arrival order fixed independently of the samples, values, and algorithmic randomness. The selected elements and their values have exactly the joint distribution obtained by independently retaining each element-value pair in the canonical optimum of a fresh product draw with probability 1/2.
Our main algorithms maintain a reference state whose greedy solution contains every accepted element. Its updates, made even after rejections, preserve exact distributional invariants. A short reversible-update argument gives a 4-probability-competitive secretary algorithm, already resolving the original conjecture; a related invariant gives the optimal single-sample prophet inequality. For secretary, we characterize the distributions achievable by ordinal algorithms through a finite polytope. A continuous-time formulation then lets us design an accepted-set distribution achieving the optimal ratio e and realize it efficiently. We also obtain guarantees for matroid intersections.
*This paper merges the preprints of Singla [Sin26]; Abdi, Banihashem, Hajiaghayi, and Mittal [ABHM26]; and Huang [Hua26]. Beyond unifying their presentation, it simplifies several proofs and adds new results. †University of Maryland, College Park. Email: hamedabdi37@gmail.com. ‡University of Maryland, College Park. Email: kiarash@umd.edu. §University of Maryland, College Park. Email: hajiaghayi@gmail.com. ¶The University of Hong Kong. Email: zhiyi@cs.hku.hk. ||University of Maryland, College Park. Email: dannymittal@gmail.com. **School of Computer Science, Georgia Institute of Technology. Email: ssingla@gatech.edu. Supported in part by NSF awards CCF-2327010 and CCF-2440113.
1 Introduction
The classic secretary problem [Dyn63, Lin61] asks us to select the largest of distinct values revealed in uniformly random order, with immediate and irrevocable decisions. Rejecting roughly the first values and then selecting the next value larger than all earlier ones gives the asymptotically optimal success probability . Motivated by applications in auction design, Hajiaghayi, Kleinberg, and Parkes [HKP04] and Kleinberg [Kle05] studied the generalization in which up to values may be selected. Babaioff, Immorlica, and Kleinberg [BIK07], with Kempe in the journal version [BIKK18], introduced the matroid secretary problem: fixed nonnegative values arrive in uniformly random order, and the selected elements must form an independent set of a matroid. Does such a constraint make online selection any harder than choosing a single element?
Matroids are natural constraints for this question. Offline, decreasing-value greedy finds a maximum-value independent set; indeed, among downward-closed systems, matroids are exactly those for which greedy is optimal for every nonnegative value assignment [Edm71]. An algorithm is -competitive, for , if its expected value is at least times the offline optimum.
The matroid secretary conjecture [BIK07] asks whether a universal constant suffices for every matroid; its strong form asks for the optimal constant , matching rank one. Before the results presented here, the best general guarantee was , where is the matroid rank [Lac14, FSZ15]. This bound had stood since 2014, despite constant guarantees for graphic [BIK07], laminar [IW11], and transversal [DP08] matroids, among many other classes (see Table 1). Natural greedy and partition-based approaches also face provable barriers [BBSW21, AKKG23].
A related question concerns the information needed for online selection. In a matroid prophet inequality, the values are independent draws from known distributions, and the arrival order may be any fixed order. Kleinberg and Weinberg [KW12] gave a 2-competitive algorithm for every matroid, matching the classical single-element prophet inequality [KS78]. In the single-sample version [AKW14], the distributions are unknown and the algorithm receives only one independent sample from each. For rank-one matroids, one sample per distribution already suffices for the optimal ratio 2 [RWW20]. For general matroids, however, constant ratios were known only with polylogarithmically many samples per distribution [FLT+24, FSZ26]. Does one sample suffice for a constant competitive ratio, or even for the optimal ratio 2? A positive answer would also resolve the matroid secretary conjecture for known matroids, by Li's reduction [FLT+24] (Appendix E).
We resolve both problems with optimal ratios and 2, matching the rank-one guarantees. Since natural greedy rules that compare arrivals with a fixed sample can fail (Appendix A), our algorithms maintain a reference state whose greedy solution contains every accepted element, updating it even after rejections to preserve an exact distributional invariant. Our secretary algorithms use only ordinal information: the relative order of observed values. Moreover, our optimal algorithm accepts each element of the canonical optimum independently with probability . Such a per-element guarantee of , called -probability-competitiveness, implies ordinary -competitiveness.
The canonical optimum is obtained by decreasing-value greedy, with ties broken by a fixed order of element labels.
Our second result considers the standard single-sample prophet model with an oblivious arrival order: the matroid and one independent sample per element are given before arrivals.
Theorem 1.2 (Optimal single-sample matroid prophet inequality; informal Theorem 3.1). For every known matroid and independent nonnegative value distributions, one independent sample from each distribution suffices for a 2-competitive algorithm using comparisons and independence queries. The arrival order may be any fixed order independent of the samples, values, and algorithmic randomness; the algorithm need not know that order.
More strongly, its accepted elements and values are distributed exactly as an independent half-sample of the canonical optimum of fresh independent values, so it obtains exactly half the expected offline optimum.
A short combinatorial argument proves the original matroid secretary conjecture (Section 2).
Theorem 1.3 (Combinatorial matroid secretary; informal Theorem 2.2). For every -element matroid revealed online, there is an ordinal secretary algorithm that accepts each element of the canonical optimum with probability at least . Knowing only in advance, it uses independence queries on subsets of arrived elements.
Characterizing online acceptance distributions. For a known matroid, we also show that a finite polytope exactly characterizes the conditional accepted-set distributions of ordinal secretary algorithms (Theorem 4.1). Its continuous-time version turns algorithm design into distribution design: every family satisfying its constraints is realized online. Constructing one such family already resolves the strong matroid secretary conjecture; we then give an efficient implementation (Theorems 5.2 and 6.1). The same characterization also gives exact LPs for two benchmarks among ordinal algorithms (Section 4.2): the optimal per-element selection probability (probability competitiveness) and the best expected-value fraction (ordinal competitiveness). These differ even on uniform matroids: for rank and , the first is as , whereas ordinal algorithms achieve expected-value fraction (Theorem 7.1). The matching lower bound resolves a question of Soto, Turkieltaub, and Verdugo [STV18].
Finite-size guarantees and extensions. For linear matroids known in advance, one can beat for every finite : a separate construction selects each optimum element with the classical rank-one success probability for elements (Theorem 7.2). Computations on small matroids suggest the same finite-size comparison for ordinal competitiveness more generally (Appendix C). Beyond a single matroid, combining our reference-set method with the preprocessing of Feldman, Svensson, and Zenklusen [FSZ22] gives ratio for intersections of matroids (Theorem 7.3), avoiding the exponential dependence on in their general combination bound.
1.2 Technical overview
Inserting an optimum element into a greedy solution displaces at most one element, its exchange partner. If this partner were fixed independently of a uniformly random processing order, then with probability the optimum element would precede it and could be accepted safely. But the partner depends on the algorithm's state, which depends on the order. Instead, our algorithms maintain a reference state whose greedy solution contains every accepted element, and update it even after rejections so that the state seen by any fixed element, its snapshot, has an explicit distribution.
Reversible updates (Section 2). The combinatorial algorithm of Theorem 1.3 first rejects a random half-sample, which becomes the reference set. It then tries to insert each real arrival and, interleaved with these, to delete each sample element, updating only when greedy membership of every previously processed element is preserved. This test is symmetric, so every update can be undone: for any fixed processing order, the updates merely permute the equally likely initial samples. Hence each snapshot is uniform and independent of the processing order, and conditioning on it fixes the exchange partner without biasing their relative order. An optimum element is a real arrival with probability 1/2 and is then accepted with probability at least 1/2, giving 1/4.
Exchangeable values (Section 3). The prophet algorithm of Theorem 1.2 stores one value per element, initially its sample, and each arrival proposes replacing its sample by its real value. If the update would remove a processed element from the greedy basis, that element's acceptance blocks it and its rejection forces it; otherwise a fair coin decides. The arrival is accepted if the update occurs and it belongs to the new basis. By exchangeability of sample and real values, the stored values remain a fresh product draw, and the accepted set a half-sample of its processed greedy elements.
Distributions as algorithms (Section 4). For the optimal ratio e, we reverse the approach: design the accepted-set distributions first, and then realize them online. In a continuous-time formulation, two linear conditions characterize which distributions are realizable: capacity, which prevents moving more probability mass than a state contains, and consistency, which ensures that the transitions produce the prescribed distributions. Every feasible family is realized by an explicit rule (Theorem 4.4), so it suffices to construct one.
Survivor distributions (Section 5). We construct this family from an offline experiment with independent auxiliary arrival times: sample each element independently with probability 1/e, and then thin the sample's greedy solution to obtain the survivors. The thinning probabilities are motivated by the rank-one analysis and preserve every sampled global optimum element. The survivors therefore form an independent set and include each optimum element independently with probability 1/e. The main obstacle is showing that this family is feasible. Consistency follows from a direct calculation as time advances. The crux is capacity: for every possible preceding accepted set, there must be enough probability mass to support the next acceptance. We prove it by induction after removing the largest element, comparing the survivor experiment with the same experiment in the matroid contracted by the arriving element. The rule realizing this family (Algorithm 3) already resolves the strong matroid secretary conjecture (Theorem 5.2).
From proof to efficient algorithm (Section 6). This rule needs probabilities of entire survivor sets, which we do not know how to compute efficiently. We therefore turn the capacity proof into a sampler: inductive comparisons become recursive calls, and unused mass becomes rejection. The sampler needs the auxiliary randomness conditioned on the accepted set, so we maintain a sample of it, one coordinate per element. Forward updates make new acceptances survive; reverse updates prevent old rejections from surviving. A continuous snapshot argument shows these updates keep the sample correctly distributed, giving an expected-polynomial-time algorithm (Theorem 1.1).
1.3 Related work and roadmap
Matroid secretary and related models. For general matroids, the guarantee improved from [BIK07] to [CL12] and then to [Lac14, FSZ15]; Table 1 lists progress on special classes. Constant guarantees were known in models that weaken the adversary: free-order secretary [JSZ13, AKW14], where the algorithm chooses the order; randomly assigned values [Sot13, GV13]; and prophet secretary [EHKS24], with known value distributions.
Sample-based prophet inequalities. Beyond rank one [RWW20], single-sample guarantees were known for several matroid classes and matchings [CDF 22]. For general matroids, [FLT 24] obtained
| Matroid class | Guarantees and references |
|---|---|
| General matroids | [Lac14, FSZ15] e (this paper, Theorem 6.1). |
| Rank one / partition | e [Lin61, Dyn63, BIKK07]. |
| Uniform (rank ) | [HKP04]; [Kle05]; [STV18]; finite-rank refinements [BJS14, CCJ15, AL21]. |
| Truncated partition | [BIK07, BIKK18]; also covered by laminar results. |
| Transversal | 16 [DP08] 8 [KP09] e [KRTV13]; e [STV18]. |
| Laminar | [IW11]; [HP13]; [JSZ13]; [MTW16]; [STV18]; [HPZ24]; [BLSV25]. |
| Graphic | 16 [BIK07]; [BDG 09]; [KP09]; [STV18]; [BLSV25]; [BHK 25]. |
| Simple / high-girth graphic | Simple: [BHK 25], [BLSV25]; girth : [BHK 25]. |
| Cographic; regular / MFMC | 3e [Sot13]; 9e for regular and max-flow min-cut [DK14]. |
| Hypergraphic; matching | for both [STV18]; matching matroids have a vertex ground set. |
| k-column-sparse; k-framed | ke for column-sparse [Sot13]; for both () [STV18]. |
| Gammoids | for exchangeability ; semiplanar: [STV18]. |
| Rank two | [BLSV25]; all rank-two matroids. |
| Density / cocircuits | ; if each nonloop lies in a cocircuit of size [Sot13]. |
| Paving; almost all matroids | for paving; for almost all labelled matroids [HN20]. |
| Proper minor-closed | over (fixed prime ), under a structural hypothesis [HN20]. |
| k-fold unions | for [GHKQ26]. |
| Graphic, arrived-elements-only | 36 [DPPP26]. |
Table 1: Earlier guarantees and our optimal general-matroid ratio. P denotes a per-element probability guarantee. Some results require advance knowledge of the matroid or its representation. Parameters and are defined in the cited works.
ratio using samples per distribution. Feldman, Svensson, and Zenklusen [FSZ26] reduced this to samples with the same ratio. Both handle an almighty adversary, which sees the samples, values, and algorithmic randomness before choosing the order. We assume an oblivious order. Complementing Li's reduction, Azar, Kleinberg, and Weinberg [AKW14] convert order-oblivious secretary algorithms, whose guarantee survives an arbitrary order after a random initial sample, into single-sample prophet algorithms with the same ratio.
LP and distributional approaches. Buchbinder, Jain, and Singh [BJS14] give finite LP characterizations for classical and multiple-choice secretary problems; Chan, Chen, and Jiang [CCJ15] develop continuous LPs for these variants. These LPs track only the number of accepted elements, which suffices under cardinality constraints; for general matroids, feasibility depends on the accepted set itself, so our polytope tracks distributions over accepted sets. Random-order contention resolution [AW18, LS18] provides related per-element guarantees, and Dughmi [Dug25] establishes an equivalence between matroid secretary and correlated random-order contention resolution. Aminian, Niazadeh, and Nuti [ANN26] study stationary online contention resolution schemes, whose output distribution is independent of arrival order. Our characterization instead conditions on the observed elements and their relative value order, averaging over the arrival order.
Concurrent and subsequent work. The linear-matroid guarantee, including the finite-size probabilities in Theorem 7.2, was obtained independently in [BDL⁺26]. Building on Singla’s preprint [Sin26], Chan, Lin, and Wang [CLW26] improved the general-matroid competitive ratio from 4 to ≈ 3.1462. OpenAI [Ope26] subsequently obtained a constant-competitive single-sample matroid prophet inequality against the stronger almighty adversary.
Roadmap. Sections 2 and 3 prove the 4-competitive secretary and optimal single-sample prophet guarantees. Sections 4 to 6 develop the polyhedral characterization, the optimal survivor distributions, and their efficient implementation, respectively. Section 7 gives finite-size results and extensions. AI models played a material role in developing the main algorithmic guarantees; the AI methodology statement describes this role. The appendices contain examples, deferred proofs, and computations.
2 Matroid Secretary via Reversible Updates
We begin with a combinatorial 4-probability-competitive algorithm for matroid secretary. Its proof illustrates two ideas that will recur: protect irrevocable decisions through a changing greedy solution, and make the updates to a reference state reversible, so that they preserve a useful distribution.
2.1 Preliminaries
Fix a matroid with nonnegative values . Ties are broken by a fixed order of element labels, independent of arrival order; “larger” and “smaller” refer to this tie-broken value order. Write , , and . For , let be the output of greedy, which scans in decreasing value order and adds each element that keeps the current set independent. Greedy includes zero-valued elements whenever possible, so is a basis of the restriction to ; this does not change the optimum value.
The rank of is the largest size of an independent subset of . An element is spanned by if adding it does not increase the rank; the closure is the set of all such elements, and an element spanned by is a loop. The elements greedy selects from a prefix of its scan span , so an element is selected precisely when the elements preceding it do not span it, and greedy selects exactly rank() elements from . We use the following standard consequences [Edm71, Bru69, Sch03].
Lemma 2.1 (Greedy monotonicity and one-element sensitivity). With fixed tie-breaking, the following properties hold.
(i) If and , then . More generally, reducing other values while keeping a selected element's value fixed does not remove it from greedy.
(ii) For , the set is either , , or for one .
(iii) Changing one value on a fixed ground set either leaves the greedy basis unchanged or exchanges that element with one other element. An increase can only bring the changed element into the basis; a decrease can only remove it.
Proof. For (i), restricting the ground set or reducing other values can only shrink the selected element's predecessor set. A subset cannot span an element that the larger set did not span.
For (ii), inserting into the scan can only add a predecessor to each old element. Thus no old element can enter greedy, and the only possible new member is . Greedy returns bases of and , whose ranks differ by at most one, giving the three possibilities.
For (iii), increasing the value of shrinks its predecessor set and can only add to the others', so only can enter and only other elements can leave; since both bases have the same size, any change is one exchange. A decrease is symmetric.
2.2 The algorithm
Model. The elements arrive in a uniformly random order. On each arrival, the algorithm observes the element and its value and must irrevocably accept or reject it before the next arrival. The accepted set must be independent. The number is known; values and the matroid are otherwise unknown, and independence queries may involve only observed elements. A -probability-competitive algorithm accepts each with probability at least . An algorithm is ordinal if it uses values only through their tie-broken order.
Algorithm. The algorithm first rejects and stores a random initial sample , with ; call the remaining arrivals . It then runs processing steps, each either receives the next real arrival or internally processes the next stored sample element. Its reference state is a configuration , initially ; it also maintains the set of processed elements, initially empty. A sample element enters only when internally processed and remains rejected. Write for adding to if absent and removing it if present, so . Processing proposes , a deletion for a sample element and an insertion for a real arrival. The update occurs exactly when it passes the preservation test: the greedy membership of every element of remains unchanged.
Algorithm 1 Matroid Secretary via Reversible Updates
- Draw uniformly from , and let denote the number of ones.
- Reject the first arrivals. Store this sample in arrival order; call the remaining elements real.
- Initialize ALG = , configuration , and processed set .
- For : Process elements one by one
- If , let be the next stored sample element; otherwise, receive the next real arrival . Set .
- If : Preservation test (a) If , set . Accept (b) Set . Update even without acceptance
- Set . Record every processed element
- Return ALG.
Only the step processing can change its membership in , so immediately before that step if and only if . At a sample processing step, therefore, and cannot be accepted in step 2(a). All queried sets consist of observed elements.
The preservation test on all of protects earlier acceptances. Its symmetry also makes each configuration update reversible: with and fixed, it swaps and when the test passes and leaves both unchanged otherwise. Thus, for a fixed processing order, the updates permute the possible configurations. As a result, the configuration before any fixed element is processed is a uniformly random subset of , independent of the processing order (Corollary 2.5). Appendix A illustrates this mechanism and explains why natural greedy alternatives fail.
Theorem 2.2. Algorithm 1 always returns an independent set and accepts each with probability at least . It is ordinal and uses independence queries.
Lemma 2.3 (Feasibility). After every processing step, .
Proof. The inclusion holds initially, since . If a step's preservation test fails, and are unchanged and only grows. If it passes, every previous acceptance lies in , so it stays in the greedy solution, and a new acceptance lies in and is then added to .
2.3 The snapshot lemma
Let be the processing order. For each , the snapshot is the configuration immediately before processing .
Lemma 2.4 (Snapshot lemma). Fix an element and a processing order . For every , exactly one initial sample set gives .
Proof. Fix the processing order and consider a step before . Let be the element processed at this step and the set processed before it. Both and are determined by the fixed order.
At this step, the algorithm either leaves the configuration unchanged or replaces it by . The test has the same answer at and : the two sides are simply interchanged. If it passes, starting from gives , and starting from gives . If it fails, each of these two configurations stays unchanged. Thus each step maps configurations bijectively onto themselves and is its own inverse; this is the reversibility of the updates.
Consequently, given the configuration immediately after this step, we can recover the preceding configuration explicitly. Compare and . If they are equal, the preceding configuration was ; otherwise it was . These are the only two possible predecessors, since this step can change only the membership of , and the test selects exactly one of them.
Now start from the prescribed snapshot immediately before and undo the preceding steps from last to first by the above rule. This determines a unique configuration before the first step, which must be the initial sample. Conversely, running the algorithm forward from reverses each reconstruction step and reaches , so indeed gives .
The reconstruction does not require the accepted set: every test uses only the current configuration, the current element, and the processed set determined by the fixed order.
Corollary 2.5 (Snapshot independence). For each fixed , the snapshot is a uniformly random subset of , independent of the uniformly random processing order .
Proof. Fix and a permutation . By Lemma 2.4, there is exactly one initial sample giving under order . Exactly one bit vector and arrival order produce , and the arrival order lists first and then , each in its order within . This choice has probability . Hence , which proves the claim.
2.4 The competitive guarantee
Proof of Theorem 2.2. By Lemma 2.3, ALG lies in a greedy basis and is independent. Fix and condition on with . Since only 's own step changes its membership in the configuration, , so is processed at its real arrival. By Lemma 2.1(i), , so it is accepted whenever the preservation test passes.
If inserting removes no element, the preservation test passes. Otherwise, Lemma 2.1(ii) gives a unique displaced with . Since , the test passes precisely when , or equivalently when precedes in . The partner is determined by , while conditional on , the order remains uniform by Corollary 2.5. Hence precedes with probability . In either case, . Finally, . Averaging over these snapshots gives .
The algorithm uses only comparisons and independence queries on observed sets, with at most two greedy scans of at most queries at each of the steps.
3 Single-Sample Matroid Prophet Inequalities
We next obtain the optimal 2-competitive single-sample matroid prophet inequality. As in Section 2, we prove feasibility, a snapshot lemma, and snapshot independence; exchangeability of sample and real values now replaces reversibility. The invariant has two parts: the configuration keeps its initial product distribution, and, conditional on it, each processed greedy element is accepted independently with probability .
3.1 The algorithm
Model. Fix a matroid with elements. Each element has a nonnegative real value drawn independently from an unknown distribution . Before the arrivals, the algorithm receives one sample for each . These samples are mutually independent and independent of all real values. The matroid is given by an independence oracle on all subsets of . The real values arrive in an arbitrary fixed order , independent of the samples, real values, and algorithmic randomness. The algorithm need not know in advance. It must immediately accept or reject each arrival, and its accepted set must be independent.
Algorithm. The reference state is again a configuration: assigns each a value , initially . Once is revealed, write for switching coordinate between its sample and real values, leaving the other coordinates unchanged. Thus . If the values are equal, changes nothing numerically, but the analysis distinguishes the copies. Only processing changes its coordinate, so when arrives, and installs . Write Greedy() for the greedy basis of with values and the fixed tie-breaking from Section 2.
Maintain the configuration , the accepted set ALG, and the processed set . The default is to update with probability . If the update would remove a processed element from the greedy basis, its earlier decision determines the outcome: an acceptance blocks the update, and a rejection forces it. Accept the arriving element exactly when the update occurs and it belongs to the new basis.
Algorithm 2 Single-Sample Matroid Prophet
• Initialize ALG = , for every , and .
• For each arriving element , when is revealed:
-
Set and compute .
-
Draw a fresh independent fair bit . If , set .
-
If , set and . Update even without acceptance
-
If and , set ALG ALG + e. Accept
-
Set . Record every processed element
• Return ALG.
By Lemma 2.1(iii), has at most one element. The override in step 2 applies only to a processed element leaving the basis, not one reentering it.
Theorem 3.1. Algorithm 2 always returns an independent set and satisfies
It uses independence queries and no distributional knowledge beyond the given samples. More strongly, the selected elements and their values have exactly the distribution obtained by drawing and retaining each with independently with probability .
The ratio 2 is optimal even for rank-one matroids with known distributions, by the classical prophet inequality [KS78].
Lemma 3.2 (Feasibility). After every arrival,
Proof. The statements hold initially. Any earlier acceptance removed by an update would belong to , and the override blocks exactly such an update. Thus every update preserves earlier acceptances. A newly accepted element belongs to and has its real value in . Later steps leave its coordinate unchanged. Every arrival is added to .
3.2 The snapshot lemma
As in Section 2, the snapshot is the configuration that faces, immediately before it is processed. Two independent draws from the same distribution can equivalently be generated by drawing their unordered pair and then assigning its entries to sample and real by a fair coin. For the next lemma, fix the arrival order and, for each , the unordered pair . The assignments of each pair's entries to and remain independent fair coins; the algorithm's fresh coins also remain random and are independent of these assignments. The pairs are fixed only for analysis; the algorithm does not know them before the corresponding arrivals.
Let the bit record which endpoint currently supplies : zero means and one means . Distinguish the endpoint copies even when their numerical values are equal. Initially, is uniform on . A performed update at in step 3 flips , installing its real value. For fixed value pairs, determines the configuration , and in particular each snapshot . An independent half-sample of a set is obtained by retaining each element independently with probability .
Lemma 3.3 (Snapshot lemma). Fix the value pairs and arrival order. After any fixed prefix, let , , and denote the current configuration, processed set, and endpoint vector. Then is uniform on , and conditional on , the accepted set is an independent half-sample of .
Proof. Induct on the processed prefix. Initially, is uniform and . Let be the next element. Condition only on the current coordinates , averaging over the preceding execution rather than fixing its decisions. Let and be the greedy bases of the configuration given by together with or , respectively. Both are determined by , and the algorithm's current and proposed bases are and . The induction hypothesis makes fair and specifies the conditional accepted-set distribution in each orientation. Write for this bit after processing . We split the analysis into two cases.
Case 1: . Write . The old accepted set is an independent half-sample of , independent of . No processed element would leave the basis, so step 2 does not override the fresh fair bit . Step 3 flips when and leaves it unchanged when . Thus
The bits and are independent and fair, and both are independent of the old accepted set. Earlier acceptances are unchanged, and is accepted exactly when and . Thus, conditional on the new endpoint vector, the accepted set is an independent half-sample of .
Case 2: . By Lemma 2.1(iii), increasing 's value from to exchanges a unique processed element for : . Put , the processed elements common to both bases. By induction, the accepted subset of is an independent half-sample of in both orientations. Condition on this subset; then remains fair, and only and remain to be tracked.
If , the current basis is , and by induction was accepted with probability , even under this conditioning. The update would install and remove the processed , so step 2 overrides : acceptance of blocks the update, while rejection of forces it, and then is accepted. If , the current basis is , so was rejected by feasibility. The update would install and remove only the unprocessed , so the fresh bit decides. Either way is rejected: with nothing changes, and with the new basis excludes . Hence each row below has probability , conditional on the accepted subset of .
| Deciding event | New basis | ||
|---|---|---|---|
| 0 | accepted | ||
| 1 | |||
| 0 | rejected | ||
| 1 |
Each new basis appears in two rows, so is fair. Given the new basis, its unique member of is accepted in exactly one of those rows, hence with probability . These probabilities hold for every accepted subset of . Thus conditioning on the new basis leaves that subset an independent half-sample of , independent of this additional acceptance. This gives the required distribution on .
In both cases, is fair conditional on the unchanged coordinates . Hence the full endpoint vector remains uniform, with the required conditional accepted-set distribution.
Corollary 3.4 (Snapshot independence). In the original sampling model, after every fixed prefix, . Conditional on , the accepted set is an independent half-sample of Greedy(w) . In particular, every snapshot has this product distribution for every fixed arrival order.
Proof. Generate the sample and real values as described before Lemma 3.3; conditional on the value pairs, the lemma applies. Averaging over the pairs gives . The conditional accepted-set distribution from the lemma depends on the pairs and orientations only through the numerical configuration : it is an independent half-sample of Greedy() . It therefore persists after averaging over the pairs, even when some endpoint values are equal.
3.3 The competitive guarantee
Proof of Theorem 3.1. At the final prefix, . By Corollary 3.4, has the same joint distribution as a fresh product draw together with an independent half-sample of Greedy. By Lemma 3.2, every accepted element has its real value stored in . Consequently,
Taking expected total values, which are nonnegative, and using greedy optimality gives the claimed expected-value identity. The distributional identity uses a fresh draw ; the output need not be a half-sample of the optimum of the realized values .
Every decision uses only the samples, the current real value, earlier observations, and fair coins, so no distributional knowledge is needed. Since the algorithm stores , it computes one new greedy basis per arrival: at most greedy scans, hence independence queries.
4 Polyhedral Characterization of Ordinal Secretary Algorithms
The preceding sections construct algorithms by preserving suitable distributions. We now characterize exactly the accepted-set distributions achievable by ordinal secretary algorithms on a fixed known matroid: they form a finite polytope, and every feasible point yields an online algorithm. Constraints on the terminal distribution, the accepted-set distribution after all arrivals, give exact LPs over ordinal algorithms, which we use to study small matroids (Section 7.1 and Appendix C). Analytically, the continuous-time version reduces the design of our optimal algorithm to constructing feasible distributions (Sections 5 and 6).
Fix a matroid with elements and positive rank. Values are fixed and nonnegative, arrivals form a uniformly random permutation, and ties are broken by a fixed order of labels. An algorithm is ordinal if it uses values only through the tie-broken order among observed elements; it may otherwise use its entire history and internal randomness. The characterization allows advance knowledge of the matroid; the family in Section 5 uses only its observed restriction.
4.1 Distributions and feasible transitions
We describe an ordinal algorithm by two families of numbers: the distribution of its accepted set given the elements observed so far, and the probability mass it moves at each arrival. Since an ordinal algorithm sees only the relative order of values, both are indexed by ordered sets. An ordered set is a subset of equipped with its decreasing-value order, not its arrival order. We use the same symbol for its underlying set, and inherits the restricted order. Write for a full value order, identified with the ordered set , and Greedy for the greedy basis under the order of .
Write for the set accepted after the first arrivals. For an ordered set of size , the accepted-set distribution is the intended conditional distribution of , with probabilities
It averages over the uniform arrival order on and the algorithm's randomness, and is the same for every full value order extending , since an ordinal algorithm cannot see unobserved comparisons.
For and , the accepting mass is the probability that the previous accepted set is and is accepted, conditional on the first arrivals forming and the last arrival being . Thus is the probability mass moved from to . Using these joint probabilities, rather than acceptance probabilities, keeps the constraints linear; the corresponding acceptance rule from accepted set is
All entries outside their stated supports are zero. Two linear conditions constrain these numbers.
Capacity. Only available mass can be moved, and an accepted extension must remain independent. Hence, for and ,
Consistency. Conditional on the first arrivals forming , the last element is uniform in . To finish with a particular set , an element must be rejected from , whereas must be accepted from . Therefore, for every nonempty and ,
This equation enforces irreversibility. For example, in rank one, the family that always places all mass on the best observed element cannot satisfy it: accepting a first element leaves no way to replace it when a larger element arrives.
Let be the polytope of families with supported on independent subsets of and satisfying
capacity (3),
consistency (4).
(5)
Theorem 4.1 (Exact characterization). The points of are exactly the accepted-set distributions and accepting masses of ordinal algorithms. Every point is realized by the rule (2), which uses only the observed ordered set, the current arrival, and the previously accepted set.
Proof. For necessity, fix an ordinal algorithm and a full value order. Conditional on the preceding observed set being , learning that the next arrival is does not change the uniform order of those preceding arrivals or the distribution of past internal randomness. The preceding accepted set therefore has distribution . Its accepting masses satisfy capacity, and averaging the two possible transitions to each over the uniform last arrival gives consistency. Normalization and independent support are immediate.
Conversely, fix and apply (2) at each arrival. Capacity makes this a feasible probability and preserves independence. Induct on to prove that the conditional distribution after arrivals is . The claim is immediate for . Conditional on a nonempty observed set and last arrival , the induction hypothesis gives preceding distribution . The rule moves exactly from each to , including when , since then capacity forces . Averaging over gives by (4). This also proves that every accepting mass is the prescribed .
Thus an ordinal algorithm gains nothing from remembering the arrival order of earlier elements: the rule (2) realizes its accepted-set distributions using only , , and . This justifies indexing the variables by ordered sets rather than arrival sequences. For example, Algorithm 1 induces a feasible point whose terminal distribution includes every optimum element with probability at least 1/4.
Remark (Scope of the realization theorem). The proof of Theorem 4.1 applies to any known downward-closed feasibility family, with “independent” replaced by “feasible.” The matroid-specific work lies in constructing distributions that satisfy capacity and consistency, and in implementing them efficiently (Lemmas 5.3 and 6.2). The prefix objective in Corollary 4.3 uses greedy optimality and is stated only for matroids.
4.2 Optimal competitive guarantees
Both competitive guarantees below can be expressed as linear constraints on the terminal distributions , the distributions of the final accepted set for each full value order . Thus Theorem 4.1 turns the search for optimal ordinal algorithms into linear programs.
Let be the infimum probability-competitive ratio among ordinal algorithms for the known matroid . Equivalently, is the largest fraction for which one such algorithm selects every element of Greedy() with probability at least , for every value assignment. The per-element guarantee therefore gives the LP
Corollary 4.2 (Probability competitiveness). The value of (6) is , and an optimum is attained. A feasible point of value yields a -probability-competitive algorithm by (2).
Proof. Both directions follow from Theorem 4.1 and the terminal inclusion constraints. The feasible region is nonempty and compact: all entries and lie in . Its optimum is positive: accepting the element at a uniform arrival position, if it is a nonloop, gives .
The expected-value objective leads to a similar LP. Let be the infimum expected-value competitive ratio among ordinal algorithms, the ordinal competitive ratio. Following [STV18], consider each prefix of the decreasing-value order , consisting of its largest elements. The prefix constraints below require the algorithm to select, in expectation, a fraction of the maximum feasible number of elements from every such prefix.
Corollary 4.3 (Ordinal competitiveness). The largest expected-value fraction achievable by an ordinal algorithm is the value of (6) with its terminal constraints replaced by
An optimum is attained and is realized by (2).
Proof. For a fixed order, nonnegative values are nonnegative combinations of prefix indicators, and by greedy. Thus the prefix inequalities imply the expected-value guarantee. Conversely, approximate a prefix indicator by strictly ordered values with the same order; the algorithm's distribution stays fixed, so the guarantee implies the prefix inequality in the limit. This is the prefix characterization of Soto, Turkieltaub, and Verdugo [STV18]. Apply Theorem 4.1; compactness is as above.
The probability constraints imply the prefix constraints by summing over , so . Section 7.1 applies these programs to special classes. For our optimal construction, we now pass to continuous time, where the distributions also vary with time.
4.3 Continuous-time acceptance distributions
For the construction in Sections 5 and 6, it is convenient to express the characterization of Theorem 4.1 in continuous time. In the continuous-time model, each element arrives at an independent uniform time . The algorithm observes this time when arrives and immediately accepts or rejects , using only observations so far and independent private randomness. When is known, any algorithm in this model can be simulated in the ordinary secretary model: independently sample and sort uniform times, and reveal the next time to the algorithm at each arrival. Conversely, an ordinary secretary algorithm can ignore the times. The same capacity and consistency principles therefore apply, now averaging over the last arrival's time as well as its identity.
For , the accepted-set distribution is the intended distribution of the accepted set, conditional on precisely the ordered set having arrived by . The accepting mass is the joint probability that the previous accepted set is and is accepted, conditional on arriving at time with preceding observed set . These are the continuous-time counterparts of and ; as before, they are shared by all full value orders extending . Each is a probability distribution on independent subsets of , with . We define by continuity. In particular, is the terminal distribution, since all elements have arrived by time 1.
Capacity. For and , the measurable accepting masses must satisfy
Consistency. Averaging over the last arrival gives, for , , and ,
Theorem 4.4 (Continuous-time realization). The accepted-set distributions and accepting masses are realizable by an ordinal algorithm in the continuous-time model if and only if they satisfy capacity (8) and consistency (9). Call such a family feasible; every feasible family is realized by accepting the current arrival e at time t, from accepted set A, with probability
Proof. Necessity of capacity is as in the discrete formulation.
For consistency, fix a nonempty , let , and condition on precisely having arrived by . Under this conditioning, its arrival times are independent uniforms on . For a specified
Accepting masses are equivalent if they differ only on a probability-zero set of times.
element to be last at time , its own arrival time contributes density , while all other arrival times must be at most , an event of probability . Thus the joint density of the last identity and its time is . Conditional on this last arrival, the preceding arrival times are independent uniforms on . The observations before therefore have the same distribution as when precisely has arrived by . Since decisions cannot depend on future arrivals, the accepted set immediately before arrives has distribution .
Fix . If , ending in requires the preceding accepted set to be and to be rejected. This has probability . If , the preceding set must be and must be accepted, with probability . Summing over the last element , integrating over its time , and multiplying by gives (9).
Conversely, use (10), which is feasible by capacity. Induct on , starting from the empty set. Once the preceding distributions are realized, the joint masses are . The same last-arrival calculation gives (9), so the resulting distribution is . Continuity gives the terminal distribution at .
If the distributions and masses depend only on , the current time, the observed order, and the arrived matroid restriction, so does the realizing rule. The next two sections construct such a family and implement it efficiently.
5 A Feasible Family with Guarantee 1/e
We now construct a feasible family for Section 4.3 in two steps. First, an offline experiment on an ordered set at horizon defines the survivor distribution over independent sets, our target accepted-set distribution. The experiment is not an online selection rule: its auxiliary arrival times are independent of actual arrivals, and its survival decisions are not online acceptances. Second, we prescribe accepting masses and prove capacity and consistency. Theorem 4.4 then gives an online algorithm whose accepted set, conditional on precisely having arrived by , has distribution . The resulting guarantee already resolves the strong matroid secretary conjecture. Section 6 gives an efficient implementation without evaluating probabilities of entire survivor sets.
5.1 The survivor distributions
Motivation from rank one. Fix throughout. The classical single-item secretary rule in the continuous-time model rejects arrivals before , then selects the first subsequent element larger than all earlier arrivals. Suppose arrives at , is larger than every predecessor, and has at least one predecessor. It is selected exactly when the largest predecessor arrived before . Conditional on the predecessor set and , the largest predecessor's arrival time is uniform on . Hence is selected with probability . This averages over earlier arrival times; it is not conditional on having made no selection.
For a matroid, let contain the elements observed up to and including the current arrival , ordered by value. Call eligible if , or equivalently if the larger observed elements do not span it. This generalizes being larger than all predecessors in rank one. We target acceptance probability for each eligible arrival at , conditional on , , and but averaged over earlier arrival times and decisions. By greedy monotonicity (Lemma 2.1(i)), every global optimum element
If is the first arrival overall and arrives after , the classical rule will accept it; our construction instead uses .
is eligible whenever it arrives, giving the target selection probability
This is maximized at . The challenge is to achieve these probabilities while keeping the accepted set independent. We first construct a survivor set, always independent in , with these inclusion probabilities, then realize its distribution online as an accepted-set distribution.
Definition 5.1 (Survivor distribution ). For an ordered set and horizon , perform the following offline survivor experiment:
-
Draw independent auxiliary times for . Set . Call these elements early and the others late.
-
For each , let its capped spanning time be the first time when the larger elements already present in the survivor experiment span . These are the elements , where means that is larger in the tie-broken value order. Set if they never span by .
-
Conditional on all auxiliary times, each early element survives independently with probability , its conditional survival probability. No late element survives.
The surviving elements form the survivor set, with distribution and output probabilities . For or , is the point mass at .
We choose the logarithm in step 3 to reproduce the rank-one integral (11), stopped when larger elements span : an eligible arrival at time should be accepted with probability , and remains eligible until . At horizon 1, the larger elements' auxiliary times fix but not , so is still early with probability . Its survival probability is therefore : early sampling supplies the factor , and step 3 the logarithm.
In step 2, all larger elements present contribute to spanning, whether or not they survive. Since and , the conditional survival probabilities lie in . An early element outside Greedy() has and cannot survive. Thus the survivor set is a subset of Greedy() and is independent.
The accepting masses . Recall from Section 4.3 that specifies the joint probability of the preceding accepted set being and accepting , conditional on the observed ordered set and the arrival of at time . For a nonloop , the contraction has independent sets with . A set spans in exactly when spans in . For any ordered set , let denote the survivor distribution on in , with the restricted value order. To determine whether is spanned, this experiment adds to the larger elements present, regardless of how compares with .
Every output can be extended by . We therefore use the contracted survivor distribution to allocate the target probability among feasible predecessor sets:
For an eligible arrival at , summing over predecessor sets gives , matching the rank-one target. This choice will also give consistency in Section 5.3: with auxiliary times fixed, an early has conditional survival probability , with derivative . Averaging over auxiliary times gives the -terms in (9). The realizing rule divides by to obtain the acceptance probability from set , as in (10); capacity bounds it by 1.
Theorem 5.2 (Feasible survivor distributions). With given by (12), the survivor distributions satisfy capacity (8) and consistency (9). Hence Algorithm 3 is ordinal and accepts the elements of Greedy(V) independently, each with probability , which equals for .
Algorithm 3 Survival secretary rule
• Initialize ALG = , and generate arrival times in the continuous-time model (Section 4.3).
- When arrives at time , let be the arrived set, including . If and , accept with probability
and reject it otherwise. On acceptance, set .
• Return ALG.
Why this resolves the strong conjecture. For and every , the larger elements never span , so regardless of the auxiliary times. Conditional on being early, survives with the fixed probability . The early indicators are independent, each with probability , and the survival coins are independent. Thus the optimum elements survive independently, each with probability .
At and , an optimum element survives surely when early, giving independent inclusion with probability . Once capacity and consistency are proved in Sections 5.2 and 5.3, Theorem 4.4 transfers this guarantee to an ordinal online algorithm. Observe that the algorithm may also accept elements outside Greedy(V).
5.2 Continuous-time capacity
For an ordered set and a nonloop , we need to show that
Applied to the predecessor set, this says that the mass prescribed for accepting is available in each state .
To prove this, we would like to induct on , removing its largest element after conditioning on its auxiliary arrival time. We handle 's survival separately and apply induction to . However, simply deleting would change the remaining elements' spanning times: once present, contributes to spanning smaller elements whether or not it survives. We therefore strengthen the induction hypothesis to allow background elements with fixed auxiliary arrival times.
Background elements. Choose some elements of and assign them fixed auxiliary arrival times in . For , let be those whose auxiliary times are at most , and write for this background schedule. Background elements contribute to spanning once present, regardless of their values, but are not candidates for survival.
For each , its spanning time is now the first at which
spans , or if this never occurs. All other parts of the survivor experiment are unchanged. Denote its distribution by : the background is fixed, while the auxiliary times of elements in remain independent uniforms on , and their survival coins remain random. Empty background is omitted from the notation. A constant background is denoted by ; for a nonloop , this gives the contracted experiment in .
Let be the first at which spans , or if this never occurs. For , write for adding to the background with auxiliary time , and abbreviate . If is already in the background, keep the earlier of its old and new auxiliary times.
Lemma 5.3 (Capacity comparison). For every background schedule disjoint from , every (possibly already in the background, in which case lowers its auxiliary time to ), and every ,
With empty background and a nonloop , , giving the desired capacity bound with factor in (13).
Proof. We induct on , assuming the comparison for every smaller candidate set, every fixed background, and every element outside that set. The empty case is immediate: both experiments output and .
Condition on the largest element. Let be the largest element of and fix . To shorten the formulas, write for the smaller experiment with background . The induction hypothesis applies to these distributions on . The induction step must show
We first express these probabilities by conditioning on . Let
Since is largest in , its spanning time depends only on the background. If it is early, it survives with probability , while the remaining experiment has background whether or not it survives: every early is present throughout . If its auxiliary arrival time is , it cannot survive, and the remaining background is . Hence
Here is the probability that is early, and that its auxiliary time lies in . The same recurrences hold under , with in place of . To prove (15), we compare each expression with times its counterpart under . Induction compares the terms, but its factors depend on spanning times in the modified backgrounds, which we compute next.
How the spanning times change. For any set , closure exchange gives
Both sides say that , , and have rank . Applied to for , this says that adding newly spans on exactly the same interval as adding newly spans . The former interval is .
If , this interval is empty. Adding to the background with any auxiliary time therefore leaves the capped spanning time of unchanged. Apply induction on , adding to the backgrounds and . In both cases the comparison factor is . Since , the coefficients in the two recurrences agree and are nonnegative, proving (15).
From now on, suppose . Equality of the two nonempty intervals gives
In , the fixed auxiliary time of is , so it can help span only from onward; without that help the spanning time is . In , the background spans at or when itself becomes present at , whichever comes first. Consequently,
Thus the required factor for the full experiment is , while the identities above determine the factors available from induction on . We first prove the comparison for output , and then for output .
Outputs containing . Induction under and (18) give . Therefore
The second inequality uses and nonnegativity of the logarithms. This proves the comparison in (15) for output .
Outputs A without f: the early deficit. It remains to prove the comparison for output A. Subtracting times (17) under from the recurrence under H, and multiplying by t, gives
where is the contribution from early auxiliary arrivals of f; the integral is the contribution from late arrivals. We must show that their sum is nonnegative. The early term may be negative: adding e makes an early f more likely to be absent from the output. We first bound this possible loss, then show that the late contribution compensates.
Since and , we have , so the induction bound gives
(21) using . It therefore suffices to show that the integral in (20) satisfies
The late surplus pays for the deficit. The required bound involves , so we compare the late probabilities to this same quantity. For , apply the induction hypothesis on twice: first add to the background with auxiliary time , then change 's fixed auxiliary time from to , using the case where the added element already lies in the background. By (19),
Since , the first bound leaves a nonnegative coefficient, so we may substitute the second:
(22)
Here . For , (19) instead gives , so the induction hypothesis alone makes the same difference nonnegative. It remains to integrate this lower bound. Reversing the order of integration gives exactly the scalar integral required above:
Both double integrals range over the region . Integrating the lower bound in (22) over exactly cancels the negative lower bound in (21). The remaining late contribution, from , is nonnegative. Hence the right side of (20) is nonnegative, proving the comparison in (15) for outputs without and completing the induction.
For an eligible arrival at time , apply Lemma 5.3 to with empty background. Since is a nonloop, , giving . All other accepting masses are zero, and the contracted experiment outputs only sets extendible by . Thus (8) holds.
Remark (A constructive proof). The proof of Lemma 5.3 is constructive: Section 6.4 turns each use of the induction hypothesis into a recursive call of the efficient implementation, and each lowered coefficient into a random rejection.
5.3 Continuous-time consistency
We verify consistency by increasing while keeping and fixed. Multiplying by removes the uniform-density factor, leaving an integral over . For , increasing has two effects. The expanding integration domain contributes configurations with an auxiliary arrival at time ; that element is late and cannot survive. For fixed auxiliary times inside the domain, each early has conditional survival probability , which increases at rate . We compute both contributions and show that their sum gives the differential balance identity, then integrate.
Lemma 5.4 (Consistency). The survivor distributions and accepting masses satisfy (9).
Proof. Fix , let , and fix . First take . For a vector of auxiliary arrival times , let be the probability of survivor set , averaging only over the survival coins. The vector has density , so
Expanding the integration domain. As increases, new auxiliary-time vectors enter . The contribution with places at the horizon. This late element cannot survive and changes no other conditional survival probability: any spanning time it reduces to was already capped at . The remaining experiment is therefore the one on . Integrating over the other coordinates gives zero if , and otherwise. Summing over gives .
Changing the survival probabilities. Fix the auxiliary times , all strictly below . An early element outside Greedy() is already spanned before , so its conditional survival probability is unchanged. For an early , however, , so that probability is and increases at rate . Late elements never survive.
When is early, the other survivors have the same conditional distribution as the experiment in with the same auxiliary times. Indeed, for smaller than , the larger elements determining its spanning time already include from . For larger than , adding cannot make spanned sooner: if the larger elements present do not span but does, closure exchange implies that spans . All elements of are larger than , contrary to . Thus the other spanning times and conditional survival probabilities agree with the contracted experiment, irrespective of the precise value of .
Conditional on , is a product of Bernoulli probabilities. The factor for early is if and otherwise. Differentiating it gives or , multiplied by the probability that the other survivors are or , respectively.
For , integrating this contribution gives
The three factors come from integrating the early coordinate , differentiating its conditional survival probability, and integrating the other coordinates. For , the contribution is instead . Elements outside Greedy() contribute zero to this interior term and have . For , the boundary contribution and the negative contribution above combine to give , the rejected-arrival term. For , the positive contribution is the accepted-arrival term. Together,
which is the differential form of (9). For , the survivor set is empty and all accepting masses vanish, so both sides equal .
Integrating the balance equation. For auxiliary times in , increasing the horizon from to changes each conditional survival probability by at most . A product of Bernoulli probabilities changes by at most the sum of the parameter changes. Comparing the integral over with the added domain gives, for ,
These bounds justify the differentiation above and show that increments of on equal integrals of its derivative. On , it equals , which is zero at 0 and agrees with the survivor experiment at . Integrating the displayed differential identity from 0 to therefore gives (9) for every .
Proof of Theorem 5.2. The experiments give measurable distributions on independent sets. Lemmas 5.3 and 5.4 verify capacity and consistency; Theorem 4.4 realizes them via (10), which is exactly Algorithm 3. The rule uses only the observed value order, the current time, and the arrived matroid restriction; suffices to simulate the arrival times. The terminal guarantee was established after the theorem.
6 Efficient Survival Simulation
Toward an efficient implementation. Fix . We want to accept an eligible element arriving at time with probability
where O and A are the sets of observed and accepted elements before e's arrival. We do not know how to compute this probability efficiently. Instead, we sample a binary acceptance decision with this probability without computing it.
The inductive proof of Lemma 5.3 is almost a recursive algorithm for sampling such a decision. Its inductive step
-
conditions on the auxiliary time (denoted by in the proof) of the largest element , expressing both distributions as mixtures of survivor-set probabilities on with modified backgrounds;
-
decreases selected nonnegative coefficients in the expression for ; and
-
applies the induction hypothesis once or twice to each term in the expression for , matching the terms for up to the factor p/t.
The coefficient reductions in step 2 correspond to rejecting with an appropriate probability. The uses of induction in step 3 become recursive calls on smaller candidate sets, with modified backgrounds and comparison factor . The main obstacle is step 1: it needs a sample of given , , and the survivor set , and an independent uniform sample does not suffice.
This motivates maintaining a configuration that encodes the experiment's auxiliary times and survival coins, and whose survivor set equals the accepted set. If, conditional on the observed set at horizon , these encoded values are independent and uniform as in the survivor experiment, then conditioning additionally on gives exactly the sample of needed above.
The natural source of randomness is the arrival times. However, using them directly as auxiliary times has two problems. First, an eligible element accepted at time cannot keep , or it would be late and could not survive. We must make it early, adjusting the other coordinates without changing their survivors. Second, increasing the horizon can increase an early element's survival probability. If a previously rejected element would become a survivor, we cannot accept it retroactively; we must instead make it late, again adjusting the other coordinates. Forward and reverse procedures perform these two updates. Their probability transfers balance, preserving uniformity conditional on the observed set at each fixed horizon.
Computational model. We work in the randomized real RAM: exact arithmetic operations, comparisons, and independent uniform draws from cost one unit each, as do evaluations of and , which go beyond the standard model. Independence queries are counted separately. All running-time bounds below are expected bounds in this model, not bit-complexity bounds.
Theorem 6.1 (Efficient realization). Algorithm 4 realizes the same survivor distributions and accepting masses as Algorithm 3 with . It is ordinal, uses only and comparison and independence queries on arrived elements, and has expected polynomial arithmetic and independence-oracle complexity. Its terminal set has distribution ; in particular, the elements of Greedy(V) are accepted independently, each with probability .
6.1 Auxiliary configurations and update procedures
The auxiliary configuration is a vector with one coordinate per element : if , it specifies a late auxiliary arrival at ; if , it specifies an early element and is its survival coin. Lowercase denotes a particular value of this coordinate. The exact auxiliary time of an early element is irrelevant, since it is present throughout . A late element never survives, so its survival coin is irrelevant. Thus one coordinate suffices. For independent uniform coordinates on , the early set and late auxiliary times have the same distribution as in Definition 5.1. Conditional on them, the variables for early elements are independent uniforms on , providing the required survival randomness.
Given and a background schedule , let be the first time at which
spans , or if this never occurs. As in Definition 5.1, is the capped spanning time of . Note that does not depend on , and we suppress its dependence on , and . Further, write
For , we have . By the definition of the auxiliary configuration, is early and the coin is at most the survival probability if and only if . Hence, the survivor set determined by configuration is
We omit when it is empty, and write for constant background , as in Section 5. For a uniform configuration on , this set has distribution .
The forward procedure takes a configuration and either returns failure, denoted , or a configuration for the experiment with background . The reverse procedure takes and always returns an . We write for the probability of a successful forward output in , and for the reverse output distribution, suppressing parameters when unambiguous. The forward measure can have total mass less than one, in which case the missing mass corresponds to failure. The notation denotes ordinary volume measure on the coordinate domain . The next lemma summarizes the properties we need for these two procedures.
Lemma 6.2 (Forward and reverse procedures). For every ordered set , horizon , background disjoint from , and , there are forward and reverse procedures with the following properties.
(i) Probability-mass balance. Reverse calls always return an output, and the measures on successful input-output pairs satisfy
In particular, a forward call on uniform input succeeds with probability and, conditional on success, has uniform output.
(ii) Survivors are preserved. Every pair from a successful forward call or a reverse call satisfies
(iii) Coordinates move only when allowed. For such a pair, for , and for . Thus survivors' coordinates never change; other coordinates only decrease forward and increase in reverse.
(iv) Expected cost. On uniform input, either procedure makes recursive calls in expectation. Excluding recursion, the number of independence queries and the expected number of arithmetic operations per call are polynomial in the number of available elements.
We construct the procedures and prove Lemma 6.2 in Section 6.4. Identity (25) is stronger than the capacity comparison: it matches individual successful input-output pairs, not just the probabilities of survivor sets. For an eligible arrival at , empty background gives . Integrating the identity over pairs with survivor set yields, for uniform ,
If , dividing by gives the acceptance probability from the opening paragraph. This probability averages over the coordinates conditional on survivor set ; it need not be the success probability for each individual vector. If , use the convention from Algorithm 3.
6.2 The efficient online algorithm
We use the continuous-time model of Section 4.3, simulating arrival times internally in the ordinary secretary model. The algorithm maintains the observed ordered set , the accepted set ALG, and coordinates . Its internal updates via reverse procedures are called reverse events.
A rejected element can still have an early coordinate in the configuration, either because it arrived before or because a later forward call lowered its coordinate. Reverse events prevent exactly these elements from becoming survivors. They never reverse an online decision. Throughout this section, the configuration at an event time refers to the one immediately after the update; we omit the probability-zero cases of coincident events.
Lemma 6.3 (Feasibility invariant). Almost surely, at every the algorithm maintains
Accepted coordinates never change, and every recomputed reverse event lies strictly in the future.
Algorithm 4 Efficient survival simulation
-
Let and . Initialize and an empty vector . Use the forward and reverse procedures of Lemma 6.2.
-
Process arrivals and reverse events in chronological order.
-
. Reject , set , and add to .
-
. If , run . On success, replace by the returned vector, set , and accept by adding it to ALG. If is ineligible or the call fails, reject it, leave unchanged, and set . In either case add to .
-
. For each with , the candidate event time is . At such an event at time , set
Leave ALG unchanged.
- Recompute candidate reverse times after every event. Return ALG at time 1.
Proof. At time , the accepted and survivor sets are empty, since and the coordinates are positive almost surely.
Rejected arrival. A rejected arrival at gets and cannot survive. It enters the survivor experiment only at the current horizon, so it changes no other capped spanning time for .
Accepted arrival. Let be the input and output of the forward call. Then (Lemma 6.2). Setting makes early. As shown in the proof of Lemma 5.4, an early affects the other spanning times exactly as a constant background . Thus the old survivors are unchanged. The new element has capped spanning time , so makes it a survivor as well.
Between events. With and the coordinates fixed, the threshold increases only for , whose capped spanning time is . No survivor disappears. A rejected element can become a survivor only if it lies in and reaches , which is precisely its scheduled reverse event.
Reverse event. Just before the event, the triggering is an early nonsurvivor and acts on the other elements as constant background . The reverse call removes this background while preserving the survivor set on (Lemma 6.2). Appending to the returned configuration changes no capped spanning time for and keeps a nonsurvivor. Hence the accepted set remains unchanged.
The procedures fix every survivor's coordinate, so an accepted keeps thereafter. Finally, just after an update at time , a reverse-event candidate has but is not a survivor. Therefore , and its candidate time is strictly greater than .
Number of events. At a reverse event, the triggering element's configuration coordinate becomes . Subsequent reverse calls only increase nonsurvivors' coordinates, so that same element cannot trigger again before the next arrival. There are consequently at most forward calls and reverse events. In particular, the event schedule is finite.
6.3 The continuous snapshot lemma
Lemma 6.4 (Continuous snapshot lemma). At every fixed , conditional on the observed ordered set , the coordinates are jointly uniform on .
This is the continuous counterpart of Lemma 2.4. There, reversible updates permute equally likely configurations. Here, the updates are randomized, and (25) replaces the bijection by an equality of probability masses. Concretely, an accepted arrival of at time moves its coordinate from to , and a reverse event of at time moves it back from to . Under uniform coordinates, the horizon reaches an arrival time in with probability proportional to , while the threshold reaches a rejected early coordinate with probability proportional to . Since is exactly the factor in (25), these two flows of probability cancel. We make this precise by reconstructing an execution backward.
Proof. For analysis only, append the unarrived coordinates, setting until arrives. The full vector is uniform at time . At a horizon away from event times, it determines the arrived set and, by (26), the accepted set. Between events the vector is constant. We show that its uniform distribution is preserved at every fixed later time.
The event table. At time , an arrival has . A reverse event has with still rejected immediately before the update. Call these the late and early boundaries, respectively. For this table, let include the element involved in the event, and let be vectors on . Abbreviate and , and let for eligible . Each pair in the middle columns lists .
| Event | Before | After | Update |
|---|---|---|---|
| Ineligible arrival | Identity | ||
| Rejected eligible arrival | Probability | ||
| Accepted arrival | |||
| Reverse event |
The first three rows describe three cases of 's arrival; in the last row, has already arrived and remains rejected.
Backward reconstruction. We compare executions of the online algorithm from uniform vectors at time with the following backward reconstructions from uniform vectors at time , and show that their measures agree after reversing time. Start from a generic vector at the target time . Set , , and , and run the horizon backward. Keep coordinates fixed until reaching one of the following boundaries.
-
At a late boundary of an arrived element, is a nonsurvivor. If , remove it from . Otherwise apply to . On failure, remove from . On success, replace by the output, set , and keep arrived but rejected.
-
At an early boundary of an accepted element, : otherwise , and survival would give . Apply to , set , and remove from both and ALG.
Once an element is removed from at time , its coordinate remains fixed at , which serves as its arrival time in the reconstructed execution. In the first rule, a removal reconstructs a rejected arrival and a successful call reconstructs a reverse event; the second rule reconstructs an accepted arrival. The reconstructed state corresponds to the moment just before the event at time .
Validity of the reconstruction. We check that the reconstructed state is valid at every horizon between events: and , as in (26). The first condition holds by construction: the procedures return coordinates in , and the horizon reaches a coordinate in only at a late boundary, which either removes the element or lowers its coordinate to . For the second, an element kept rejected at is a nonsurvivor just before , since for . The survivor-preserving property of Lemma 6.2(ii), together with the argument of Lemma 6.3, shows that these steps leave the survivor status of every element other than unchanged and give valid states between events.
Termination of the reconstruction. Between two removals, every update is a successful forward call, which only decreases nonsurvivors' coordinates, followed by setting the triggering coordinate to . Each element therefore triggers at most once in between. There are at most removals and successful forward calls. Hence, the reconstruction reaches time . There the survivor set is empty since , so and the reconstruction ends in a valid initial state.
Matching individual events. We show that each event of the online algorithm and the backward step that reconstructs it carry the same mass when their input states are weighted by the corresponding boundary weights. Under uniform volume, a late boundary has weight , because . An early boundary has weight , because . The coordinates of unarrived elements contribute the same additional volume factor and are temporarily held fixed. Since and , (25) gives
This matches each accepted arrival with the second rule, and each reverse event with a successful call in the first rule. A rejected eligible arrival leaves the vector unchanged and has probability in both directions. An ineligible arrival is the identity in both directions. Thus all four rows have matching weighted transition measures.
From events to complete executions. The boundary weights are ordinary volume on the full vector, with the event time in place of the coordinate . Partition states at time , or just after an event, according to the next boundary (late or early) and its element, with a separate part for reaching without another event. On each part, the vector remains unchanged until that boundary or time . Hence the volume at the beginning of the interval matches the boundary weight if a boundary is reached, and the volume at time otherwise. The same holds backward, partitioning according to the previous boundary or reaching . The two partitions pair up, since validity on both sides (Lemma 6.3 for the online algorithm) rules out early boundaries inside an interval: an accepted element would be a nonsurvivor before its boundary, and a rejected element of Greedy() a survivor after it.
Fix a sequence of event types and elements. Alternating these unchanged-vector intervals with the matched random updates gives equal measures to executions of the online algorithm and to the backward reconstructions that visit the same states in reverse order. Integrate over the intermediate states and sum over event sequences. The online algorithm and the backward reconstruction both have a uniform finite bound on the number of events; all terms are nonnegative. Coincident boundaries form a null set for the corresponding boundary weights. By (27), the weighted transitions assign zero mass to these exceptional outgoing configurations in either direction. Since executions have finitely many events, coincidences occur with probability zero. We obtain
where and are the output distributions of the online algorithm from time to and of the backward reconstruction from to , respectively. This argument uses measures on pairs; it does not assume that the randomized updates have densities. Since the backward reconstruction terminates with probability one, integrating out gives
Thus the full vector is uniform at time . Conditioning on proves the lemma.
Uniformity at a fixed time does not by itself describe inputs at random internal events. We need those inputs both to identify the accepting masses and to bound the total work. The same backward argument supplies them. The following notation records expected numbers of events in a specified time-and-coordinate region; it counts every occurrence of a reverse event, not just the first.
Corollary 6.5 (Inputs at algorithm events). For a measurable region of pairs , let be the expected number of arrivals of with preceding observed set and immediately before the arrival. For ,
Similarly, let be the expected number of reverse events with observed set O, triggering element f, and just before the event. Then
For this measure is zero. Thus, for fixed event time, observed set, and triggering element, the relevant inputs are uniform under these expected-event measures.
Proof. Stop an execution of the online algorithm immediately before a marked event and reconstruct that prefix backward, without undoing the marked event itself. The input state has the arriving element still unarrived, or the triggering element still rejected. The same interval and update matchings show that the expected-event measure of these input states is their boundary weight multiplied by the probability that the backward reconstruction terminates. That probability is one by the validity and termination argument above. The weights are therefore at arrivals and at reverse events, times volume on the unarrived coordinates. There are such coordinates in the first case and in the second, each ranging over . Integrating them out gives the stated factors. Every marked occurrence gives one prefix, so this also counts repeated reverse events correctly.
Proof of Theorem 6.1. Before the accepted set is empty. Thereafter, Lemma 6.4 and (26) give the conditional distribution at each fixed horizon. At an eligible arrival, Corollary 6.5 supplies the uniform input needed for the calculation after Lemma 6.2; hence the accepting mass is exactly . Before and at ineligible arrivals it is zero. The algorithm therefore realizes the prescribed distributions and accepting masses. The terminal independence guarantee follows from Theorem 5.2.
For complexity, compare reverse events with accepted arrivals. Fix an observed set and . An arrival of into has input measure by (29). On successful forward calls, (25), integrated over , gives output measure
because reverse calls return an output with probability one. This is precisely (30). Summing over and and integrating gives
This is an equality of expected counts, not a pairing within a single execution. There are also at most forward calls. Integrating the uniform-input cost bounds of Lemma 6.2 against the event measures gives expected calls in total, including recursion. Each call uses polynomial local work. Updating the greedy solution and recomputing candidate event times also cost polynomial work, using the pathwise event bound.
Every comparison and independence query involves arrived elements: recursive calls only move elements of their input into the fixed background. All decisions use only observed value comparisons, arrival times, and independent randomness. This proves ordinality, the information restriction, and the asserted expected complexity.
6.4 Proof of Lemma 6.2
We now construct the procedures of Lemma 6.2. As in the proof of Lemma 5.3, we remove the largest element , remember when it contributes to spanning, and recurse on . Here its configuration coordinate also specifies whether it survives. We give the scalar updates explicitly and identify the smaller background comparisons they require. Every recursive call below has candidate set and the same horizon . A failed forward subcall fails the enclosing call.
Base cases. If , then is already spanned by , so adding it changes no spanning time; both procedures directly return their input. If , the forward procedure returns the empty vector with probability and otherwise fails; the reverse procedure always returns the empty vector.
Unchanged spanning times. Beyond the base cases above, let be the largest element of . If 's spanning time stays the same with added to the background, i.e., , keep its coordinate and recurse with background , where forward and in reverse.
The main case. Suppose
Then by (18). Under , the element survives exactly when ; under , exactly when . Let
Here by (19), and , as verified below. Figure 1 specifies four branches, numbered from top to bottom, and the failure outcomes. An arrow means a forward call
on the remaining coordinates; in reverse it means . Two arrows are performed in the displayed order forward and the opposite order in reverse. The labels “w.p.” give the probabilities of choosing a branch, before making its recursive calls; unlabeled choices have probability one.

Figure 1: Forward and reverse coordinate updates in the main case . Read the diagram from left to right for the forward procedure and from right to left for the reverse procedure. The middle rectangles specify recursive background changes on ; gray ribbons lead to forward failure . Ribbon widths are schematic.
Reading the forward procedure. If , use the first branch with probability , keeping , and otherwise fail. If , fail immediately. If , use the second branch and set
For , choose branch 3 with probability and branch 4 with probability . In the third branch, is an independent uniform draw from ; in the fourth, .
The first branch corresponds to outputs containing in the capacity proof: it uses only part of the available surviving mass. The second branch maps early nonsurviving coordinates from to . It covers only a fraction of the required mass there; the missing fraction is exactly the early deficit in (21). The third branch uses the late surplus to cover the early deficit; it is precisely the two successive comparisons in (22), not an additional rejection rule. The fourth branch leaves late.
Reading the reverse procedure. If , use the first branch, keeping . If , choose the second or third branch with probabilities and . In the second branch, set
In the third branch, draw with density proportional to
and perform the two smaller reverse calls in reverse order. If , use the fourth branch, keeping . All reverse subcalls return an output. If , then , so the second branch is unused and no division by is performed. Endpoint cases of zero probability do not affect the identities.
To sample (31) efficiently, draw uniformly from and, independently, draw with . Repeat until . The successful pair has density proportional to on , so its -marginal has the required density. This is the integration region in (23). A trial succeeds with probability
concavity puts above its chord on , and . Thus this scalar sampler uses at most two trials in expectation.
Proof of Lemma 6.2. We prove the claims by induction on , first checking balance, then the coordinate properties and costs.
Probability-mass balance. The base cases satisfy (25) directly. When the largest element's spanning time is unchanged, its coordinate is copied, and the smaller call has the required factor : by closure exchange, if f newly spanned e at some time before t, then e would newly span f at that time, contradicting . Induction applies.
We now consider the main case. By (18) and (19), the recursive calls in the first, second, and fourth branches have probability-mass balance factors , , and . Multiplying by the scalar change-of-variable factors and branch probabilities gives, respectively,
These are the required factor times the respective reverse-branch probabilities.
The third branch has two recursive factors, and , and scalar output density . Its joint contribution, before normalizing the reverse choice of , is
By (23), the antiderivative in (21), and the definitions of , its integral is
This nonnegative integral also verifies ; follows from . Normalizing gives exactly the reverse density and branch probability. Induction and composition therefore prove (25) for every branch, including its recursive choices. Integrating over shows that a uniform-input forward call succeeds with probability and has uniform output conditional on success.
Survivors and coordinates. In the base cases, every coordinate and survivor is unchanged. When 's spanning time is unchanged, keeps its coordinate and its survival status. In the main case, in the first branch, survives in both experiments and keeps its coordinate. In the other branches it does not survive, and . For the affine branch this follows from
In each branch, the recursive backgrounds record exactly when f is present before and after its coordinate update. Every smaller call preserves its survivor set, fixes survivors' coordinates, and decreases other coordinates forward. Their composition gives properties (ii) and (iii). Reverse calls read these same pairs in the opposite direction.
Number of recursive calls. On a uniform forward input, the remaining coordinates are uniform conditional on and the chosen branch. By the induction hypothesis, the output of a smaller call conditioned on success is uniform. Inductively, every recursive call also receives uniform input.
In the main case, let be the probability of making exactly direct recursive calls. Only the third branch can make two; making no child call means an immediate failure in the surviving range. Consequently,
Thus the expected number of children is . Each recursive call has one fewer element in its candidate set, so induction bounds the expected total number of recursive forward calls by . The unchanged-spanning-time case has one child and satisfies the same bound; the base cases have none.
The branchwise balance identities also match successful forward and reverse trees of recursive calls, with the same number of nodes. Hence a reverse call on uniform input has the recursive-call count of a successful forward call on uniform input. Since that success probability is , its expected number of recursive reverse calls is at most .
Finally, the spanning times used by a call are found by checking rank at the finitely many fixed background times. Each call therefore needs only polynomially many independence queries and arithmetic operations outside its recursive calls. The only repeated scalar sampling takes at most two trials in expectation. All elements involved belong to the original call's candidates, background, or added element e. This proves property (iv) and completes the lemma.
7 Extensions and Consequences
We first use the characterization to compare probability and ordinal competitiveness on special classes and examine finite-size guarantees. We then extend the snapshot algorithm to intersections of matroids and derive a submodular consequence of the optimal single-matroid algorithm. In these last two applications, competitiveness refers to the expected objective value.
7.1 Examples and finite-size evidence
The characterization in Section 4.2 supports both algorithm construction and impossibility proofs. Uniform matroids separate the two competitive objectives, while linear matroids admit stronger finite-size guarantees.
Uniform matroids: separating the two objectives. Let be the matroid on elements whose independent sets have size at most .
Theorem 7.1 (Uniform matroids). The optimal per-element selection fraction among ordinal algorithms satisfies as , uniformly over . In contrast, an ordinal algorithm can achieve expected-value fraction .
Proof. The probability statement combines Propositions B.1 and B.2. The expected-value guarantee follows from Kleinberg's algorithm [Kle05, STV18].
Thus the extra loss in the per-element guarantee is necessary, answering the question of Soto, Turkieltaub, and Verdugo [STV18]. The constructive bound uses relative-rank thresholds and independent thinning; its parameters and analysis are given in Proposition B.1.
The matching lower bound already holds for and uses a single midpoint snapshot. If each optimum element is selected with probability at least , capacity permits at most expected selections outside the optimum, while the -th largest element can be missed with probability at most . Let count the top elements among the first arrivals, so . Combining these two requirements and eliminating the algorithm's midpoint acceptance marginals gives
For values of , the summand is bounded below by an absolute positive constant. This forces . Proposition B.2 proves the certificate and extends the bound to every . No threshold or monotonicity assumption on the algorithm is needed.
Linear matroids: the finite-size rank-one guarantee. For and , write for the success probability of the classical secretary rule that rejects the first arrivals.
Theorem 7.2 (Linear matroids). For every linear matroid on elements, known in advance, and every , there is an ordinal algorithm accepting each element of Greedy(V) with probability exactly , for every nonnegative value assignment.
Choosing the best cutoff gives whenever has positive rank. Thus the guarantee improves on for every finite . This covers representable classes such as graphic, transversal, and laminar matroids [FO19], but only when the matroid is known in advance.
The construction bounds the expected dimension of the intersection of the accepted span with every subspace. The one-dimensional constraints ensure sufficient mass on sets that do not span an arriving candidate; the higher-dimensional constraints allow these availability guarantees to be maintained together. Appendix B.2 gives the feasible family and proof. The construction is finite, with no polynomial running-time bound asserted.
Computational evidence beyond linear matroids. Let denote the optimal expected-value competitive ratio among ordinal algorithms. Numerically optimizing the LP of Corollary 4.3 suggested the stronger finite-size comparison
Every tested instance satisfied this inequality up to numerical precision. The computations covered every positive-rank matroid on seven elements and 1655 of the 1723 positive-rank matroids on eight elements, including 43 of the 44 nonrepresentable ones. These are floating-point observations for the expected-value objective, rather than proofs of the stronger per-element guarantee. Appendix C gives the computational reductions, coverage, and numerical details.
7.2 Intersection of matroids
Fix matroids for , with , and fixed nonnegative values . Let be a maximum-value common independent set. For an auxiliary value vector , write and let be greedy in on , using values and the fixed tie-breaking order. The individual optima need not have a valuable intersection, even when has large value. The preprocessing of Feldman, Svensson, and Zenklusen [FSZ22] supplies auxiliary values for which their overlap is valuable in expectation.
Theorem 7.3. There is an -competitive secretary algorithm under the intersection of matroids. It needs only , comparisons of values, and independence queries on arrived elements in each matroid, and uses independence queries.
Proof. Preprocessing. Let , draw , and reject the first arrivals, forming a sample . Each element belongs to independently with probability . Let be decreasing-value greedy on subject to all constraints: it adds each element whenever the resulting set is independent in every matroid. Define
Greedy scans every element with positive auxiliary value before the zero-valued elements. Thus the overlap guarantee of Feldman, Svensson, and Zenklusen [FSZ22, Theorem 3.3] gives
In particular, . The value is computable at the arrival of using only . It therefore suffices to select each element of with conditional probability at least , given . The snapshot argument below supplies this probability by requiring the element to precede at most one exchange partner per matroid.
A common reference set. Conditional on , let and . If , return the empty set. Otherwise, run Algorithm 1 on all remaining elements with values and fresh randomness. Its initial reference set is a new sample from , not the preprocessing sample . Require the preservation test in every matroid:
If the test passes, accept the current element exactly when it belongs to every proposed greedy set, and perform the reference-set update whether or not it is accepted. After each processing step, add its element to . As in Section 2, sample steps cannot be accepted because they are deleted from the proposed set.
We retain all elements of in the stream, including those assigned auxiliary value zero. Thus the second algorithm knows its input size without knowing how many future elements will pass the preprocessing test. Its invariant proves feasibility in all matroids.
Snapshot and acceptance probability. Conditional on , the auxiliary values are fixed and the remaining arrival order is uniform. The conjunction of the preservation tests has the same answer at and . Thus each update can be undone by the same rule, and Lemma 2.4 and Corollary 2.5 apply unchanged. For each fixed target , the configuration immediately before its processing step is therefore uniform on , independently of the uniformly random processing order.
Fix and condition on with . This is a real arrival, since no earlier step changes the membership of . By greedy monotonicity (Lemma 2.1(i)), for every . Inserting displaces at most one element in each matroid. Let be the set of distinct displaced elements. Once are fixed, is fixed and .
The test passes exactly when no element of has been processed, or equivalently when precedes them all in the processing order. The snapshot property leaves that order uniform, giving
Since , each element of is accepted with conditional probability at least . Therefore,
Finally, preprocessing uses at most common-greedy scans, each requiring independence queries. The second stage uses at most two greedy scans per matroid at each of its processing steps. All queries involve only or the current and proposed reference sets, hence only arrived elements. The total is .
7.3 Submodular objectives
A set function is submodular if whenever and ; it need not be monotone. In the submodular matroid secretary problem, the goal is to maximize , compared with . The algorithm knows and may query and independence on sets of arrived elements. The reduction below additionally requires an upper bound on every element's selection probability. Our survivor construction provides this because only elements of the auxiliary early sample can survive.
Theorem 7.4 (Feldman and Zenklusen [FZ18]). Let . Suppose an additive matroid secretary algorithm is -competitive and selects every element with probability at most . Then there is a -competitive algorithm for nonnegative submodular objectives in the same information model. The reduction preserves expected polynomial arithmetic and oracle complexity.
Corollary 7.5. For every matroid and every nonnegative submodular objective, there is a 96e-competitive secretary algorithm with expected polynomial arithmetic and oracle complexity. It needs only the number of elements and independence and value-oracle queries on subsets of arrived elements.
Proof. The algorithm of Theorem 6.1 is e-competitive and has terminal distribution . In the survivor experiment defining this distribution, every survivor belongs to the auxiliary early sample . Hence, for every ,
Apply Theorem 7.4 with .
Acknowledgments and AI Methodology Statement
Relation to the predecessor manuscripts. This paper merges and extends the preprints [Sin26, ABHM26, Hua26] into a unified treatment. The combinatorial snapshot algorithm was presented by Singla [Sin26]; the optimal single-sample prophet inequality by Abdi, Banihashem, Hajiaghayi, and Mittal [ABHM26]; and the optimal general-matroid secretary algorithm and its efficient implementation by Huang [Hua26]. The paper [ABHM26] also gave, in the known-matroid model, an optimal secretary algorithm for linear matroids and a black-box reduction yielding a 64-competitive algorithm for arbitrary matroids. This treatment organizes the results around snapshot invariants, acceptance distributions, and survival simulation.
AI usage in research. The results came from combining the authors' direction with the technical capabilities of AI models. The authors made judgment calls about which approaches to pursue, used linear-program computations to guide the search, and directed the exploration toward simulating an offline distribution of accepted elements. The linear program in Section 4 and the computations with it were devised and carried out without AI models, starting in February 2026. Interactions with models available through ChatGPT Pro, especially GPT Astra, were used in obtaining the main algorithmic guarantees, including Theorems 2.2, 3.1, 5.2 and 7.2; GPT Sol 5.6 was also used in developing the single-sample prophet and linear-matroid results. Along the way, the authors explored single-sample algorithms [Li24, DKL 24], pairings of sample and real elements [RS26], the minimax principle [KMPS26], and reductions to free-order secretary through tangential sequences [FSW26]. Recognizing that the survival-comparison and online-realization arguments are algorithmic led from partial, computationally inefficient guarantees to the efficient implementation. The authors checked the resulting proofs.
AI usage in writing. This manuscript was prepared with the assistance of ChatGPT and Claude, which were used to draft and revise the exposition, including the unified presentation of results that first appeared in separate papers. The authors have checked all mathematical arguments and take full responsibility for the contents.
The implementation and its outputs are available at https://github.com/TlatoaniHJ/MatroidSecretary.
Acknowledgments. Singla is grateful to Anupam Gupta and S. Matthew Weinberg for discussions on the matroid secretary problem over the past decade, and thanks Thomas Kesselheim, Robert Kleinberg, Wenzheng Li, Thiago Oliveira, Kalen Patton, Rebecca Reiffenhäuser, Aviad Rubinstein, Siddharth M. Sundaram, and Ola Svensson for related discussions, and Anupam Gupta, S. Matthew Weinberg, and Robert Kleinberg for comments on early versions of [Sin26]. Banihashem thanks Neel Patel for pointing out the existence of the reduction from matroid secretary to constant-sample prophet inequalities. Banihashem, Hajiaghayi, and Mittal thank Dariusz Kowalski, Piotr Krysta, and Jan Olkowski for early discussions and joint work on the matroid secretary problem, which led to [BHK⁺25] on graphic matroids. Huang thanks Dongchen Li, Zahra Parsaeian, and Zixuan Zhu for early discussions and joint work on the matroid secretary problem.
References
[ABHM26] Hamed Abdi, Kiarash Banihashem, MohammadTaghi Hajiaghayi, and Danny Mittal. On the Strong Matroid Secretary Conjecture and Beyond, 2026. arXiv:2609.19118.
[AKKG23] Dorna Abdolazimi, Anna R. Karlin, Nathan Klein, and Shayan Oveis Gharan. Matroid partition property and the secretary problem. In 14th Innovations in Theoretical Computer Science Conference, ITCS, volume 251 of LIPIcs, pages 2:1–2:9, 2023.
[AKW14] Pablo Daniel Azar, Robert Kleinberg, and S. Matthew Weinberg. Prophet inequalities with limited information. In Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA, pages 1358–1377. SIAM, 2014.
[AL21] Susanne Albers and Leon Ladewig. New results for the k-secretary problem. Theoretical Computer Science, 863:102–119, 2021. Full version; preliminary version in ISAAC 2019.
[ANN26] Mohammad Reza Aminian, Rad Niazadeh, and Pranav Nuti. Stationary online contention resolution schemes, 2026. arXiv:2603.21532.
[AW18] Marek Adamczyk and Michal Wlodarczyk. Random order contention resolution schemes. In 59th IEEE Annual Symposium on Foundations of Computer Science, FOCS, pages 790–801. IEEE Computer Society, 2018.
[BBSW21] Maryam Baharani, Hedyeh Beyhaghi, Sahil Singla, and S. Matthew Weinberg. Formal barriers to simple algorithms for the matroid secretary problem. In Web and Internet Economics - 17th International Conference, WINE, Proceedings, volume 13112 of Lecture Notes in Computer Science, pages 280–298. Springer, 2021.
[BDG⁺09] Moshe Babaioff, Michael Dinitz, Anupam Gupta, Nicole Immorlica, and Kunal Talwar. Secretary problems: Weights and discounts. In Proceedings of the 20th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1245–1254, 2009.
[BDL⁺26] Kristóf Bérczí, Shaddin Dughmi, Vasilis Livanos, José A. Soto, and Victor Verdugo. The Strong Secretary Conjecture is True for Linear Matroids, 2026. arXiv:2609.20797.
[BHK⁺25] Kiarash Banihashem, MohammadTaghi Hajiaghayi, Dariusz R. Kowalski, Piotr Krysta, Danny Mittal, and Jan Olkowski. Beating competitive ratio 4 for graphic matroid secretary. In 33rd Annual European Symposium on Algorithms (ESA 2025), volume 351, pages 52:1–52:16, 2025.
[BIK07] Moshe Babaioff, Nicole Immorlica, and Robert Kleinberg. Matroids, secretary problems, and online mechanisms. In Proceedings of the 18th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 434–443, 2007.
[BIKK07] Moshe Babaioff, Nicole Immorlica, David Kempe, and Robert Kleinberg. A knapsack secretary problem with applications. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM), volume 4627, pages 16–28, 2007.
[BIKK18] Moshe Babaioff, Nicole Immorlica, David Kempe, and Robert Kleinberg. Matroid secretary problems. Journal of the ACM, 65(6):35:1–35:26, 2018.
[BJS14] Niv Buchbinder, Kamal Jain, and Mohit Singh. Secretary problems via linear programming. Mathematics of Operations Research, 39(1):190–206, 2014.
[BLSV25] Kristóf Bérczi, Vasilis Livanos, José A. Soto, and Victor Verdugo. Matroid secretary via labeling schemes. In Integer Programming and Combinatorial Optimization (IPCO), pages 128–141, 2025. Full version arXiv:2411.12069v2, 2025; first preprint 2024.
[Bru69] Richard A. Brualdi. Comments on bases in dependence structures. Bulletin of the Australian Mathematical Society, 1(2):161–167, 1969.
[CCJ15] T.-H. Hubert Chan, Fei Chen, and Shaofeng H.-C. Jiang. Revealing optimal thresholds for generalized secretary problem via continuous LP: Impacts on online K-item auction and bipartite K-matching with random arrival order. In Proceedings of the 26th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1169–1188, 2015.
[CDF+22] Constantine Caramanis, Paul Dütting, Matthew Faw, Federico Fusco, Philip Lazos, Stefano Leonardi, Orestis Papadigenopoulos, Emmanuel Pountourakis, and Rebecca Reiffenhäuser. Single-sample prophet inequalities via greedy-ordered selection. In Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms, SODA, pages 1298–1325. SIAM, 2022.
[CL12] Sourav Chakraborty and Oded Lachish. Improved competitive ratio for the matroid secretary problem. In Proceedings of the 23rd Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1702–1712, 2012.
[CLW26] Hau Chan, Jianan Lin, and Chenhao Wang. A 3.1462-Competitive Algorithm for Matroid Secretary, 2026. arXiv:2609.17782, version 2.
[DK14] Michael Dinitz and Guy Kortsarz. Matroid secretary for regular and decomposable matroids. SIAM Journal on Computing, 43(5):1807–1830, 2014.
[DKL+24] Paul Dütting, Thomas Kesselheim, Brendan Lucier, Rebecca Reiffenhäuser, and Sahil Singla. Online combinatorial allocations and auctions with few samples. In 65th IEEE Annual Symposium on Foundations of Computer Science, FOCS, pages 1231–1250. IEEE, 2024.
[DP08] Nedialko B. Dimitrov and C. Greg Plaxton. Competitive weighted matching in transversal matroids. In Automata, Languages and Programming (ICALP), Part I, volume 5125 of Lecture Notes in Computer Science, pages 397–408, 2008.
[DPPP26] Paul Dütting, Renato Paes Leme, Martin Pál, and Neel Patel. Graphic matroid secretary without the graph, 2026. arXiv:2608.11413.
[Dug25] Shaddin Dughmi. From contention resolution to matroid secretary and back. SIAM J. Comput., 54(3):585–624, 2025.
[Dyn63] E. B. Dynkin. The optimum choice of the instant for stopping a Markov process. Soviet Mathematics Doklady, 4:627–629, 1963.
[Edm71] Jack Edmonds. Matroids and the greedy algorithm. Mathematical programming, 1(1):127–136, 1971.
[EHKS24] Soheil Ehsani, MohammadTaghi Hajiaghayi, Thomas Kesselheim, and Sahil Singla. Prophet secretary for combinatorial auctions and matroids. SIAM J. Comput., 53(6):1641–1662, 2024.
[FLT+24] Hu Fu, Pinyan Lu, Zhihao Gavin Tang, Hongxun Wu, Jinzhao Wu, and Qianfan Zhang. Sample-based matroid prophet inequalities. In Proceedings of the 25th ACM Conference on Economics and Computation, EC, page 781. ACM, 2024.
[FO19] Tara Fife and James Oxley. Generalized laminar matroids. European Journal of Combinatorics, 79:111–122, 2019.
[FSW26] Matthew Faw, Sahil Singla, and Yifan Wang. Online allocation using few samples, 2026. arXiv:2609.17343.
[FSZ15] Moran Feldman, Ola Svensson, and Rico Zenklusen. A simple -competitive algorithm for the matroid secretary problem. In Proceedings of the 26th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1189–1201, 2015.
[FSZ22] Moran Feldman, Ola Svensson, and Rico Zenklusen. A framework for the secretary problem on the intersection of matroids. SIAM J. Comput., 51(3):766–819, 2022. Preprint: arXiv:1704.02608.
[FSZ26] Moran Feldman, Ola Svensson, and Rico Zenklusen. Nearly tight sample complexity for matroid online contention resolution. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA, pages 4692–4711. SIAM, 2026.
[FZ18] Moran Feldman and Rico Zenklusen. The submodular secretary problem goes linear. SIAM J. Comput., 47(2):330–366, 2018.
[GHKQ26] Rishi Gujjar, Kevin Hua, Robert Kleinberg, and Frederick V. Qiu. The k-fold matroid secretary problem. In Proceedings of the 2026 SIAM Symposium on Simplicity in Algorithms (SOSA), pages 91–99. SIAM, 2026.
[GV13] Shayan Oveis Gharan and Jan Vondrák. On variants of the matroid secretary problem. Algorithmica, 67(4):472–497, 2013.
[HKP04] MohammadTaghi Hajiaghayi, Robert D. Kleinberg, and David C. Parkes. Adaptive limited-supply online auctions. In Proceedings of the 5th ACM Conference on Electronic Commerce (EC), pages 71–80, 2004.
[HN20] Tony Huynh and Peter Nelson. The matroid secretary problem for minor-closed classes and random matroids. SIAM Journal on Discrete Mathematics, 34(1):163–176, 2020.
[HP13] David Harris and Manish Purohit. Improved algorithms and analysis for the laminar matroid secretary problem, 2013. arXiv:1301.4958.
[HPZ24] Zhiyi Huang, Zahra Parsaeian, and Zixuan Zhu. Laminar matroid secretary: Greedy strikes back. In 32nd Annual European Symposium on Algorithms (ESA 2024), pages 73:1–73:8, 2024.
[Hua26] Zhiyi Huang. Settling the Matroid Secretary Problem, 2026. arXiv:2609.30421.
[IW11] Sungjin Im and Yajun Wang. Secretary problems: Laminar matroid and interval scheduling. In Proceedings of the 22nd Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1265–1274, 2011.
[JSZ13] Patrick Jaillet, José A. Soto, and Rico Zenklusen. Advances on matroid secretary problems: Free order model and laminar case. In Integer Programming and Combinatorial Optimization (IPCO), volume 7801 of Lecture Notes in Computer Science, pages 254–265, 2013.
[Kle05] Robert Kleinberg. A multiple-choice secretary algorithm with applications to online auctions. In Proceedings of the 16th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 630–631, 2005.
[KMPS26] Thomas Kesselheim, Marco Molinaro, Kalen Patton, and Sahil Singla. Online algorithms via minimax and posterior matching. In Proceedings of the 67th IEEE Annual Symposium on Foundations of Computer Science (FOCS), 2026. To appear. arXiv:2608.01616.
[KP09] Nitish Korula and Martin Pál. Algorithms for secretary problems on graphs and hypergraphs. In Automata, Languages and Programming (ICALP), Part II, volume 5556 of Lecture Notes in Computer Science, pages 508–520, 2009.
[KRTV13] Thomas Kesselheim, Klaus Radke, Andreas Tönnis, and Berthold Vöcking. An optimal online algorithm for weighted bipartite matching and extensions to combinatorial auctions. In Algorithms – ESA 2013, volume 8125 of Lecture Notes in Computer Science, pages 589–600, 2013.
[KS78] Ulrich Krengel and Louis Sucheston. On semiamarts, amarts, and processes with finite value. In J. Kuelbs, editor, Probability on Banach Spaces, volume 4 of Advances in Probability and Related Topics, pages 197–266. Marcel Dekker, New York, 1978.
[KW12] Robert Kleinberg and S. Matthew Weinberg. Matroid prophet inequalities. In Howard J. Karloff and Toniann Pitassi, editors, Proceedings of the 44th Symposium on Theory of Computing Conference, STOC 2012, New York, NY, USA, May 19 - 22, 2012, pages 123–136. ACM, 2012.
[Lac14] Oded Lachish. O(log log Rank) competitive ratio for the matroid secretary problem. In Proceedings of the 55th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 326–335, 2014.
[Le 60] Lucien Le Cam. An approximation theorem for the Poisson binomial distribution. Pacific J. Math., 10(4):1181–1197, 1960.
[Li24] Wenzheng Li. Personal communication, 2024.
[Lin61] D. V. Lindley. Dynamic programming and decision theory. Applied Statistics, 10(1):39–51, 1961.
[LS18] Euiwoong Lee and Sahil Singla. Optimal online contention resolution schemes via ex-ante prophet inequalities. In 26th Annual European Symposium on Algorithms, ESA, volume 112 of LIPIcs, pages 57:1–57:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2018.
[MR08] Dillon Mayhew and Gordon F. Royle. Matroids with nine elements. J. Combin. Theory Ser. B, 98(2):415–431, 2008.
[MTW16] Tengyu Ma, Bo Tang, and Yajun Wang. The simulated greedy algorithm for several submodular matroid secretary problems. Theory of Computing Systems, 58(4):681–706, 2016. Preliminary version appeared at STACS 2013.
[Ope26] OpenAI. One Sample Suffices for Matroid Prophet Inequalities against an Almighty Adversary. OpenAI Math Release preprint OAI:One-Sample-Suffices-for-Matroid-Prophet-Inequalities-against-an-Almighty-Adversary-September-23-2026, 2026.
[Oxl11] James Oxley. Matroid Theory, volume 21 of Oxford Graduate Texts in Mathematics. Oxford University Press, 2 edition, 2011.
[Rad57] Richard Rado. Note on independence functions. Proc. London Math. Soc. (3), 7(1):300–320, 1957.
[RS26] Aviad Rubinstein and Sahil Singla. Secretary, prophet, and stochastic probing via big-decisions-first. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, STOC, pages 1242–1253. ACM, 2026.
[RWW20] Aviad Rubinstein, Jack Z. Wang, and S. Matthew Weinberg. Optimal single-choice prophet inequalities from samples. In 11th Innovations in Theoretical Computer Science Conference, ITCS, volume 151 of LIPIcs, pages 60:1–60:10. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2020.
[Sch03] Alexander Schrijver. Combinatorial Optimization: Polyhedra and Efficiency, volume 24 of Algorithms and Combinatorics. Springer, 2003.
[Sin26] Sahil Singla. The Matroid Secretary Conjecture is True, 2026. arXiv:2609.14555, version 2.
[Sot13] José A. Soto. Matroid secretary problem in the random-assignment model. SIAM Journal on Computing, 42(1):178–211, 2013.
[STV18] José A. Soto, Abner Turkieltaub, and Victor Verdugo. Strong algorithms for the ordinal matroid secretary problem. In Proceedings of the 29th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 715–734, 2018. Journal version: Mathematics of Operations Research 46(2):642–673, 2021; doi:10.1287/moor.2020.1083.
[vN28] John von Neumann. Zur Theorie der Gesellschaftsspiele. Math. Ann., 100:295–320, 1928.
A Why Natural Greedy Rules Fail
Many sample-based algorithms for matroid secretary exploit greedy monotonicity (Lemma 2.1), i.e., an element of the global optimum is also part of the optimal solution on any subset containing . This suggests a naïve algorithm that discards the first roughly elements to use as a sample and then accepts an element if and only if . In the secretary setting, this algorithm has good total value since it accepts every , but its accepted set need not be independent. For example, consider the graphic matroid in Figure 2(a): the sample consists of edges of weight 1, and the real elements are of weight 2. The naïve algorithm accepts all three real edges, which form a cycle.
Greedy algorithms. A natural approach to go beyond the naïve algorithm maintains an independent set at all times , initialized to the optimum solution on the sample, and containing all accepted elements. It accepts the next real element if and only if the optimum solution on after contracting the accepted elements contains , and updates to this new solution (with the contracted elements included).
The authors of [BBSW21] considered this and related “greedy” algorithms. More formally, their algorithms maintain an independent set that spans the previously observed elements and satisfies two properties: (i) contains all accepted elements, and (ii) contains no real element rejected after the sampling stage. The choice of is flexible, but the contracted-greedy acceptance rule above is mandatory. They show that this class cannot be constant-competitive on graphic matroids, using hat-shaped instances.
A small hat illustrates the failure mechanism; see Figure 2(b). The sample contains a path with edge weights 4, 2, while the real elements form another path with weights 1, 3, followed by a base edge of arbitrarily large weight . The greedy algorithm accepts the weight-1 edge since it preserves independence. It then accepts the weight-3 edge: after contracting the first acceptance, the optimum keeps weights 4, 3, 1 and drops the weight-2 sample. The two accepted edges now connect to , making the heavy base edge infeasible.

(a) The naïve rule accepts a cycle.

(b) A hat; real arrival order .
Figure 2: Dashed edges belong to the sample; solid edges are real. In (a), every real edge individually belongs to the optimum when added to the sample. In (b), contracting allows greedy to accept , whereas ordinary greedy would drop .
The combinatorial secretary algorithm (Algorithm 1) builds on two ideas.
Idea 1: Preserve processed greedy decisions (Step 2 of Algorithm 1). Rather than making the greedy decision from a single independent set after contracting the accepted elements, maintain a reference set and only consider if the proposed update preserves greedy membership on the processed elements. In particular, we do not contract the already accepted elements; instead, Step 2 ensures that these greedy memberships do not change. This immediately guarantees feasibility, since the accepted elements always belong to the optimum of the current reference set.
On the hat above, after sampling , consider the processing order , so both sample elements are processed after all real arrivals. The weight-1 edge is accepted, but inserting the weight-3 edge would change the ordinary optimum from weights 4, 2, 1 to 4, 3, 2, removing . Step 2 therefore rejects this update, and the heavy base can subsequently be accepted. Thus, unlike contracted greedy, our algorithm can reject an element even when it improves the optimum subject to retaining earlier acceptances.
Although this idea avoids the harmful exchange above, if we update the reference set only when we accept an element, the algorithm can get stuck on simple matroids. For example, consider a uniform matroid of rank on elements with values in , with distinct perturbations to avoid ties. In the secretary algorithm, this modification keeps : sample elements are never deleted. Once the smallest element of Greedy() is an accepted element, every improving insertion would remove it and is forbidden. The algorithm can then remain permanently stuck with many unused slots. A heuristic calculation suggests that it accepts only elements in expectation, rather than .^5
Idea 2: Update reversibly (Step 2(b) of Algorithm 1). To overcome this rigidity, the algorithm updates the reference set whenever the element passes Step 2, even when it is not accepted. In the secretary algorithm, this allows consistent deletions of sample elements. Such a deletion can bring a smaller, not-yet-processed sample element into the optimum, allowing a later real arrival to replace that sample without removing an earlier acceptance. This also explains why we retain the whole reference set rather than only its current optimum: sampled elements outside that optimum can become relevant after later updates.
Because Step 2 compares the same two optima in either direction, every permitted update is reversible; this is the basis of the snapshot lemma (Lemma 2.4).
B Feasible Families for Special Classes
This appendix proves the special-class results in Section 7.1. For uniform matroids, a threshold-and-thinning construction and a matching midpoint lower bound establish the probability guarantee in Theorem 7.1. For linear matroids, a recursive feasible family based on a subspace invariant proves Theorem 7.2.
B.1 Uniform matroids
We prove the two probability bounds used in Theorem 7.1. Recall that has all subsets of size at most as its independent sets. We first recover the known per-element probability guarantee [STV18], then prove the matching lower bound.
Proposition B.1. For , the probability LP for the uniform matroid has value at least , with an absolute constant independent of .
^5Roughly, ignoring the extra restrictions from processed sample elements, after acceptances the smallest accepted element has only elements below it in the current greedy solution, on average. Every further acceptance must replace a sample element below this accepted element, and there are only such elements left.
Proof. It suffices to consider , since bounded values of k can be absorbed into the constant. Set
Call an arrival at position i eligible if it is among the first elements of the observed value order.
Starting from , define the accepting masses by
and define each recursively by consistency (4). Capacity holds directly, and induction gives nonnegative, normalized distributions supported on sets of size at most . The realizing algorithm accepts each eligible arrival with probability , independently, until it has accepted elements.
Consider this algorithm without the limit of acceptances, and let be its total number of acceptances. The successive relative ranks, with rank 1 denoting the largest element observed so far, are independent, with the rank at position uniform on . Thus is a sum of independent Bernoulli variables, and
A Chernoff bound therefore gives
Fix and condition on its arrival at position . Its relative rank is , where counts the larger elements among the preceding arrivals. Thus is hypergeometric, with mean at most . Suppose . If , eligibility is automatic. Otherwise, failure of the rank test implies
The hypergeometric Chernoff bound gives
The positions with have total probability at most . Hence passes the rank test and its independent acceptance coin succeeds with probability at least . Outside the event , all such acceptances fit within capacity. Consequently,
This holds for every full value order and every , proving all terminal inclusion constraints.
Proposition B.2 (Matching probability lower bound). For and , the probability for has value at most . Consequently, together with Proposition B.1, its value is , uniformly over as .
Proof. First let . By Theorem 4.1, a feasible point of value yields an ordinal algorithm selecting each of the largest elements with probability at least . Average the algorithm over permutations of the element labels; this preserves its guarantee. Number the elements by decreasing value, for analysis only, and let be the first arrivals.
The relative arrival order within is independent of its set of global ranks. By symmetry and ordinality, there are numbers such that, conditional on any possible , its -th largest element has been accepted by this midpoint with probability . Put
Let count the accepted elements of outside , and let be the event that element belongs to but is rejected. The terminal inclusion constraints and the capacity bound give , while . The -th largest element of is outside exactly when . Conditional on , element belongs to with probability and is then its -th largest element. Hence
Combining these two inequalities eliminates the algorithm:
Set and . For , symmetry gives . We claim that throughout this interval. Indeed, is a maximum point mass; since , Chebyshev's inequality gives . For , the binomial-coefficient ratio and for give
Thus for . On these indices, both and are at least . Equation (33) therefore yields
Finally, an ordinal algorithm on elements can be simulated on real elements by interleaving fictitious elements, all smaller than the real ones, at uniformly random positions and in a uniformly random relative order. Fictitious selections are discarded but still consume capacity. The combined order is uniform, and its largest elements are real, so the simulation preserves the per-element guarantee. The bound for elements therefore applies to every .
Remark (A midpoint certificate). Equation (33) is a dual certificate for a relaxation of the probability LP: retain only the symmetrized midpoint marginals , the terminal guarantee for element , and the sum of the terminal guarantees for all optimum elements. It gives the finite bound
No threshold or monotonicity assumption on the algorithm is used.
B.2 Linear matroids
We prove Theorem 7.2 by recursively constructing a family in , using a subspace invariant in place of the survivor distributions of Section 5. Throughout, is a linear matroid on elements, known in advance, and is a fixed cutoff. Recall that , defined in Section 7.1, is the success probability of the classical cutoff rule. Its maximum over is the optimal success probability for the classical -element secretary problem [Lin61, Dyn63], and hence equals . The construction below is finite; no polynomial running-time bound is asserted.
The subspace invariant. By a theorem of Rado [Rad57], every linear matroid has a representation over a finite field. Fix such a representation in , for a finite field ; the algorithm can find one by exhaustive search before the arrivals. For , let be the span of , and for a vector let be its span. For a subspace , the load of at is . A distribution on independent sets is -bounded if
There are finitely many subspaces, so this is a finite system of linear inequalities.
To motivate the invariant, recall the cutoff rule in rank one. After arrivals it has accepted an element with probability exactly , and it accepts a record arriving at time with probability . These numbers satisfy
For a nonloop of a linear matroid, the constraint (34) at the line spanned by states that with probability at most . With , at least of the probability mass can therefore accept at time . Lines bound the mass available for an acceptance but not its cost: bounding the increase of the load at requires the constraint at . To maintain many constraints at once, the proof replaces families of subspaces by chains of intersections and sums, and intersections of subspaces spanned by elements need not be spanned by elements. The invariant is therefore imposed on every subspace.
Definition B.3 (The family for linear matroids). Fix . For , let be the point mass at and . For , assume that has been defined for every , and let be a canonical (for instance, lexicographically smallest) solution of the following finite linear system:
(a) for every and independent ;
(b) unless and ;
(c) for every ;
(d) the distribution defined by (4) is -bounded.
The family depends only on the ordered sets and the fixed representation. If the systems are feasible, normalization follows inductively from (4); together with (a) and (b), this places the family in . By Theorem 4.1, it is realized by (2). The only issue is feasibility of the system for .
Proposition B.4. For every ordered set with , the system in Definition B.3 is feasible. For , the distribution is a -bounded probability distribution on independent subsets of .
We prove the proposition below. Accepting at a state raises the load at exactly when . Along a chain of subspaces these sets of states are nested, so a single order of filling the acceptance mass preserves every constraint of the chain. Any weighted family of subspaces can be replaced by a chain without decreasing any load or changing the total dimension, and a minimax argument then gives one solution for all subspaces. The bound holds only on average over the identity of the last arrival. This is where the uniformly random order is used: the candidates Greedy(O) form an independent set, which has at most vectors in any subspace .
Admitting an element along a chain. The following two identities hold for subspaces and a vector . Both follow from :
(37)
By (36), accepting at a state with raises the load at by one exactly when . We call such states expensive for . By (37), if , the probability that , that is, of an expensive or infeasible state, is the difference between the expected loads at and at .
An addition rule for on a distribution assigns masses , with whenever . It moves mass from to ; its total mass is .
Lemma B.5 (Chain admission). Let be -bounded, let , and let . For every chain of subspaces , there is an addition rule of total mass whose updated distribution satisfies for every in the chain.
Proof. For a chain member , let be its set of expensive or infeasible states. These sets are nested along the chain. Give each feasible state the index , or if there is no such . The feasible mass is , by (34) at . Place mass on feasible states in decreasing order of index, splitting the last atom if necessary.
Fix a chain member and let . Every state outside is feasible and is filled before any state of . Hence the mass placed in is , and by (36) this is the increase of the expected load at . If , then contains every state and the increase is . Otherwise, (37) gives . Using , the updated load is
Lemma B.5 needs a chain; the next lemma reduces any weighted family of subspaces to one.
Lemma B.6 (Uncrossing). For nonnegative rational weights , there are a chain and nonnegative weights such that, for every subspace ,
Proof. Clear denominators and regard the weights as a multiset of subspaces; at the end, will be the multiplicity of divided by the common denominator. While two members are incomparable, replace them by and . This preserves the total dimension. It does not decrease the left side for any : the subspaces and have intersection and sum contained in . With , the sum of squared dimensions increases by . This integer is bounded, so the process terminates, at a chain.
Lemma B.7 (Averaged extension). Let , let be independent, and for each let be a -bounded distribution on independent subsets of . If , there are addition rules for , of total mass for and zero for , such that the average over of the updated distributions is -bounded.
Proof. Let be the set of families of addition rules with the prescribed total masses. It is a nonempty polytope: the elements of the independent set are nonloops, so by the availability bound in the proof of Lemma B.5, each with has feasible mass at least . For and a subspace , let be the expected load at of the averaged updated distribution; it is affine in . We need with for all .
Fix nonnegative rational weights , and obtain a chain from Lemma B.6. Apply Lemma B.5 to this chain in every row , and add nothing in the other rows. For each chain member , averaging the row bounds gives
since the independent set has at most vectors in . Taking expectations in the pointwise domination of Lemma B.6 gives .
Thus for every rational nonnegative , and hence for every in the probability simplex: the minimum over the compact set of a jointly continuous function is continuous in . The function is linear in and affine in , on a product of two polytopes. By the minimax theorem [vN28], some makes the maximum over the simplex nonpositive, so every constraint holds at that .
The lemma controls only the average of the updated distributions, not each row separately; the independence of bounds the average increase.
Proof of Proposition B.4. We show by induction on that the system in Definition B.3 is feasible when and that is a -bounded probability distribution on independent sets. For , the point mass at is 0-bounded and . For , apply Lemma B.7 with , , , and . Elements of the independent set are nonloops, so . The resulting rules satisfy (a)–(c), and (d) holds because by (35). The distribution defined by (4) is the averaged updated distribution, a probability distribution on independent sets.
Proof of Theorem 7.2. By Proposition B.4, the family in Definition B.3 is well defined and belongs to . Apply Theorem 4.1.
Fix . By Lemma 2.1(i), for every observed ordered set containing . Conditional on arriving at position and on the observed order , its acceptance probability is therefore when , and zero when . Since arrives at each position with probability ,
Choosing optimally gives . It remains to show . For , . For , let , , and ; then . Using
, first for and then for , with strict inequality in the second case,
Hence one of the two cutoffs achieves more than 1/e.
In a loopless matroid of rank one, the system in Definition B.3 has a unique solution and the algorithm is exactly the classical cutoff rule. The subspace invariant replaces the single number by a bound on every subspace.
Open problem. Does every matroid on elements with a nonloop, known in advance, satisfy ? Equivalently, is there always an ordinal algorithm that selects every element of Greedy(V) with probability at least ? Theorem 7.2 answers this affirmatively for linear matroids. The computations of Appendix C suggest the weaker comparison for the ordinal expected-value objective.
C Computational Insights
This appendix gives the numerical findings and computational reductions summarized in Section 7.1. Write for the optimal expected-value competitive ratio among ordinal algorithms on the known matroid . By Corollary 4.3, its reciprocal is the value of the program with prefix constraints. The ratio in Section 4.2 instead requires a guarantee for every element of Greedy(V). The computations reported here concern .
C.1 Numerical findings and coverage
Using the catalogue of matroids on at most nine elements of Mayhew and Royle [MR08], we solved the program with Gurobi in floating-point arithmetic. The coverage is summarized below.
| Ground-set size | Positive-rank matroids solved | Nonrepresentable matroids solved |
|---|---|---|
| 7 | All | None exist |
| 8 | 1655 of 1723 | 43 of 44 |
The 68 unsolved eight-element matroids all have rank four, and all but one have no nontrivial automorphism. For these 67 matroids, the symmetry reduction described below does not shrink the programs. Every matroid on at most seven elements is representable over some field [Oxl11]; on eight elements, there are 44 matroids not representable over any field [MR08].
Every computed ratio was below e. More strongly, every tested instance satisfied
with equality, up to numerical precision, only for itself. For , the computed values of exceed by at least 0.004 except for , far above the solver tolerance. These are floating-point observations, not exact certificates. For , representability and Theorem 7.2
The implementation and its outputs are available at https://github.com/TlatoaniHJ/MatroidSecretary.
also prove for every positive-rank matroid. The solved eight-element instances include 43 nonrepresentable matroids, beyond the scope of that theorem.
These computations predate the proofs in this paper. At the time, they were evidence for the strong conjecture beyond the classes for which it was known, and they guided the search for the single-sample prophet inequality of Section 3 and the construction of Appendix B.2.
C.2 LP representation and reductions
Acceptance marginals. For a full value order and an element , define
The element arrives at each position with probability ; conditional on position , its observed set is uniform among the sets of that size containing . Thus (38) is its inclusion probability, and equals for a feasible family. The ordinal objective can therefore be imposed through
This expression uses the total accepting mass for each element, which is preserved by the state aggregation below.
Computational reductions. We use the unconditional state and accepting-transition probabilities
respectively. This rescaling preserves the optimum. Three further reductions make the program tractable for small matroids. First, only prefixes ending with an element of Greedy() need constraints: between successive such prefixes, the rank is unchanged and the left side only increases. Second, averaging a feasible family over the automorphism group of preserves its objective, so an optimal family can be restricted to orbit representatives.
Third, call independent sets equivalent at if and have the same independence status for every . They admit the same feasible extensions. A class at lies in one class at after rejecting . Moreover, either every can accept or none can; in the former case all sets , for , lie in one class at . Both facts follow directly from the definition, using extension sets and , respectively.
The aggregated program has a probability variable for each class at each ordered set and an accepting-mass variable for each predecessor class. It imposes the initial point mass at , class capacities, independent support, and (4) summed over each destination class. In (38), replace the sum over states by the sum over predecessor classes. Summing a feasible family over classes gives an aggregated feasible solution with exactly the same accepting totals and objective. Conversely, at a state in a predecessor class , accept with probability , with . The class determines both possible destination classes, so induction in (4) shows that this algorithm realizes the prescribed class distributions and accepting masses. Formula (38) then gives the same per-element marginals and hence the same objective. The aggregation preserves the optimum; it need not preserve each individual terminal set probability.
C.3 The truncation hypothesis
Before the general result was known, the computations also suggested structural statements that would imply the strong conjecture. We describe one of them. For , the truncation has the independent sets of of size at most . The truncation is the classical secretary problem on the nonloops of , so . We say that satisfies truncation monotonicity if is nonincreasing in ; then , which would have implied the strong conjecture. The computed values satisfy truncation monotonicity, up to solver tolerance. Appendix D shows that it holds, strictly, for uniform matroids, but fails for the graphic matroid of a large complete bipartite graph . The failure of this route is part of why the construction of Appendix B.2 controls the span of the accepted set directly instead of inducting on the rank.
Truncation monotonicity would also imply the comparison with rank one observed above. Indeed, is the classical problem on the nonloops of , and inserting fictitious elements, as in the proof of Proposition D.7, shows that . The counterexample does not contradict this weaker statement: there, is only shown to exceed 100/53, while is close to e. Theorem 7.2 proves it for every linear matroid.
D Ordinal Ratios under Truncation
This appendix proves the two statements about truncation mentioned in Appendix C. Recall that is the optimal ordinal competitive ratio of a known matroid , and that is its truncation to rank . Truncation monotonicity asserts that for . Theorem D.5 proves it, with strict inequality, for uniform matroids. Theorem D.6 refutes it for a graphic matroid; there, the bound on holds even for algorithms that observe numerical values.
D.1 Uniform matroids
For , let be the largest expected fraction of the largest elements that a possibly randomized algorithm can select, with capacity , when elements arrive in uniformly random order and the algorithm observes only the relative order of the arrived elements. The maximum exists, and is attained by a deterministic rule, because the problem is a finite Markov decision problem.
Let be the relative rank of the -th arrival among the first , with 1 the largest. The relative ranks are independent, is uniform on , and conditional on the set of global ranks of the first arrivals is a uniform -subset of . The -th arrival is the -th largest of this subset. Hence, conditional on the entire ordinal history, it is among the largest elements with probability
the number of successes among draws without replacement from items, of which are successes.
Lemma D.1. For , .
Proof. Let an ordinal algorithm be -competitive on . Run it on a uniformly random relabeling of the elements; every permutation of the ground set is an automorphism of , so this preserves feasibility. For each value order, its behavior is an average of its behavior on other value orders, so it remains -competitive, and the sequence of labels it observes is now independent of .
The labels can therefore be generated by internal randomness, so the relabeled algorithm observes only relative order, as in the definition of . Corollary 4.3, applied to the prefix of the largest elements, shows that it selects at least of them in expectation. Hence .
Conversely, since the relative ranks are independent, the optimal continuation value depends only on the time and the number of free slots. By backward induction, there is an optimal deterministic rule for that accepts the -th arrival, when slots remain, exactly when is at least a threshold depending only on and . Since is nonincreasing in , a smaller relative rank is accepted whenever a larger one is. We claim that under this rule, the probability that the element of global rank is selected is nonincreasing in . Pair each arrival order with the order exchanging the positions of the elements of ranks and . Every other element compares identically with these two elements. Hence the two runs see the same relative ranks, except at the later of the two positions, where the relative rank is smaller by one when the later element has rank . The decisions coincide before that position, and at that position the run with the smaller relative rank accepts whenever the other does. Summing over the pair shows that rank is selected at least as often as rank , and averaging over all pairs proves the claim.
Consequently, for a prefix of size , the average selection probability over is at least that over the largest elements, which is . For , the expected number selected from is at least . In both cases it is at least rank, and Corollary 4.3 gives .
We reformulate as an optimal stopping problem. For independent nonnegative random variables with finite support, let be the largest expected total of at most selections made online, where is observed at time . Let . Then
Indeed, by (39), the expected number of the largest elements selected by a rank-observing algorithm is the expected sum of over the selected times. Every rule based on is rank-observing. Conversely, by independence, the Bellman decision of a rank-observing rule at time depends on only through , so observing the relative ranks does not increase the optimal value.
Lemma D.2 (Comparison). Let have independent coordinates with for every and every . Then for every .
Proof. Let be the optimal value from time onward with slots, with and . Then and
The map is nondecreasing in both arguments, and the threshold is nonnegative. Backward induction on gives for all .
Lemma D.3 (Thinning and capacity). Let , and let be independent Bernoulli variables, independent of . Then
Proof. Give each time an independent uniform color . For each set of colors, the variables form an -thinning of . Run on each of them the same optimal deterministic -selection rule, chosen never to select a zero reward, and let indicate its selections. Let . Only the sets containing can select at time , so . Each copy selects at most times, so . The expected value equals .
Round these fractional decisions online with one independent uniform . With , select at time when . This selects at most times, at time with probability conditional on and the colors. For every fixed coloring, it is an online rule for . With probability , all colors coincide; then all active copies see itself and make identical decisions, so at most selections are made. Bounding the value by on this event and by otherwise proves the lemma.
Lemma D.4 (Adjacent posteriors). For , every , and every convex with ,
Proof. Couple the two hypergeometric counts by turning one uniformly random success of the population into a failure. Given that the sample contains successes, the removed success was sampled with probability . Hence , that is,
while for . Jensen's inequality and summation over give
Since is uniform on , and whenever , we have and . Dividing by proves the claim.
Theorem D.5. For , . Equivalently, .
Proof. Let , and let be independent Bernoulli variables. For , the function is convex and vanishes at zero. By Lemma D.4,
By (40) and Lemmas D.2 and D.3,
It remains to show . For and every , we have . Follow an optimal -selection rule, and use one additional slot at its first rejection among the first times; such a rejection exists because at most of these times are selected. This gains at least on every realization. Hence .
Together with Lemma D.1, the theorem gives . This recovers, as a guarantee on value, the known ratio e for uniform matroids; the ordinal algorithm of [BIKK07] even selects each of the k largest elements with the classical cutoff probability.
D.2 A graphic counterexample
Theorem D.6. Let , and let be the graphic matroid of the complete bipartite graph . Then
Since , there is with . The upper bound on holds even for algorithms that observe numerical values and know the input distribution used in the proof.
The graph has no cycle of length at most three, so every set of at most three edges is independent and is the uniform matroid . The theorem follows from the next two propositions and Lemma D.1.
Proposition D.7. For every , , where is given by (41).
Proof. Consider elements and the following rule: reject the first arrivals; until time , accept records; afterwards, accept arrivals among the three largest so far; stop after three acceptances. Call the -th arrival eligible if the rule would accept it with a free slot: in the first active phase, and in the second. Eligibility events are independent, with probabilities and , respectively, and a slot is free at time exactly when fewer than three earlier arrivals were eligible. This event depends only on , so it is independent of .
Apply (39) with in place of . Given a free slot, time contributes in expectation selected top-three elements in the first phase, and in the second. Write . As , uniformly, and the expected number of eligible arrivals before converges uniformly to for and to for . By Le Cam's inequality [Le 60], the number of eligible arrivals before differs in total variation from a Poisson variable with the same mean by at most the sum of the squared eligibility probabilities, which is . Hence the expected fraction of the top three selected converges to
where . With and , integration gives
Enclosures 0.693 < < 0.694 and 1.098 < < 1.099, used with the unfavorable endpoint in each term, give .
To apply this to elements, choose and insert fictitious elements, smaller than all real ones, at uniformly random positions and in a uniformly random relative order; both are sampled before the arrivals. Comparisons involving fictitious elements are known to the algorithm. Fictitious selections are discarded but count against the capacity. The combined order is uniform and its three largest elements are real, so is at least the value of the rule on elements. Letting proves the proposition.
Proposition D.8. With , every online algorithm for the graphic matroid of , even one observing numerical values, has expected value less than times the expected optimum on some random instance. Hence .
Proof. We use the construction of [BHK 25]. First consider two elements. Fix integers and . Choose with probability , where , and present the values and in uniformly random order. The expected maximum is . Suppose an algorithm accepts a first value with probability . Granting it the second value whenever it rejects the first, its expected reward at scale is at most
Each scale has probability times equal to , so the differences telescope. Using , the expected reward is at most , where .
Now let be the two vertices of degree in , and let be the others. The edges form the -th pair. Draw an independent two-element instance for each pair, assign its values to the two edges in random order, and present all edges in uniformly random order. For each pair, consider the first selected edge of that pair. Condition on the values of the other pairs, the arrival order of the edges, and the algorithm's randomness; these are independent of the pair's scale and of the assignment of its values, so the first arriving edge of the pair carries either value with probability , as in the two-element instance. The decision on that edge depends only on its value. The bound above therefore applies, and the first selections have total expected value at most . A forest contains both edges of at most one pair, since two complete pairs form a cycle of length four. The remaining selections are worth at most . On the other hand, the heavier edges of the pairs form a forest, so the expected optimum is at least . The ratio is at most .
For , , and , we have , so and . The ratio is at most . A -competitive algorithm has expected value at least times the optimum on every fixed instance, and hence on average. Therefore every such satisfies , and so does the infimum .
E From Single-Sample Prophet Inequalities to Secretary
This appendix shows how to turn a single-sample matroid prophet algorithm into a matroid secretary algorithm. We give a self-contained presentation of the construction attributed to Wenzheng Li by [FLT 24]. We work in the secretary model with the matroid and known in advance; the values are fixed and arrive in uniformly random order. As in Section 2, Greedy( ) is decreasing-value greedy on with ties broken by labels, and means that precedes in this order. For a nonnegative vector indexed by , write for the optimum value of the restriction to ; thus .
A single-sample prophet algorithm is c-competitive in random order if, for every matroid and independent nonnegative distributions, given one independent sample from each distribution, it selects an independent set of expected value at least times the expected optimum, when the arrival order is uniformly random and independent of the samples and values and is not known to the algorithm. By averaging over orders, Theorem 3.1 gives such an algorithm with c = 2.
Theorem E.1 (Secretary from single-sample prophet inequalities). A single-sample prophet algorithm that is c-competitive in random order yields a -competitive secretary algorithm for every matroid known in advance. The reduction preserves polynomial running time. With Algorithm 2, it gives an ordinal 64-competitive secretary algorithm.
The natural idea is to reject a prefix of the arrivals, use their values as samples, and run the prophet algorithm on the remaining elements. The difficulty is that the prophet algorithm may select an element whose value was used as a sample, and such an element has already been rejected. The reduction makes these conflicts rare: each element is presented to the prophet algorithm with a value that is nonzero only with a small probability , independently as a sample and as a value. The useful reward is then linear in , while a conflict requires both activations and costs only order . A preliminary sample ensures that this quadratic loss is charged against the optimum rather than against the total value of all elements.
A preliminary sample. Draw and reject the first arrivals, forming a set ; it contains each element independently with probability . An element is eligible if . Let be the set of eligible elements. Eligibility of can be decided when arrives, since all values in have been observed.
Lemma E.2. and .
Proof. Whether is independent of whether . If it fails, then when , and when ; both happen with probability . Summing over gives the equality, and is independent, which gives the inequality. Each is not spanned by the elements preceding it, so is an independent subset of , of expected value .
Rare activations. Condition on , and let and . The remaining arrival order is uniform on . For let , which can be computed when arrives. Fix . We run the prophet algorithm on the restriction of to with the independent distributions . Its sample and value of are and , where all are independent Bernoulli() bits.
-
Draw independent Bernoulli bits , and let . Reject the next arrivals, forming a set , and set . Give the prophet algorithm the sample for and for , and draw the bits independently.
-
For : if , take the next element of in its arrival order; if , let be the next arrival and compute . Present to the prophet algorithm with value . If the prophet algorithm selects and , accept .
All selections are recorded in the internal state of the prophet algorithm, including selections of elements of , which are discarded. Hence the accepted set is a subset of the prophet algorithm's independent output. Every decision on an arrival is made immediately.
Lemma E.3. Conditional on , the set contains each element of independently with probability , and the order in which elements are presented to the prophet algorithm is uniform and independent of and of the bits .
Proof. Fix and an order of . The outcome occurs for exactly one arrival order and one bit string: the arrival order lists in the order followed by in the order , and the bits mark the positions of in . Hence
The bits Y are drawn independently of both.
By Lemma E.3, the prophet algorithm sees independent samples and values from the distributions , in a uniformly random order independent of them, exactly as its guarantee requires.
Proof of Theorem E.1. A selected element of contributes to the prophet algorithm's value only if , so the discarded value is at most , whose conditional expectation is . Every accepted element has value . The prophet guarantee therefore gives
where the second inequality retains the activated elements of Greedy(T). By Lemma E.2, . Choosing gives .
Eligibility requires one independence query per arrival against a prefix of Greedy(P), and the remaining bookkeeping is polynomial, so the reduction preserves polynomial running time. For Algorithm 2, every value presented to the prophet algorithm is either 0 or an observed value of an eligible element, and the algorithm only compares values. Treat every eligible element as larger than every artificial zero. For positive distinct values, the comparisons and the eligibility tests then depend only on the relative order of the observed values, so the secretary algorithm is ordinal; its guarantee extends to all nonnegative values, with ties resolved by labels, by taking limits of positive distinct value vectors with the same order. With , the ratio is 64.