Abstract 1 Introduction 2 Preliminaries 3 A simple universal OCRS via independent subsampling 4 An improved universal OCRS via correlated subsampling 5 An optimal universal OCRS via linear programming 6 From secretary algorithms to universal OCRSs (efficiently) References

Universal Online Contention Resolution with Preselected Order

Junyao Zhao ORCID IRIF, CNRS, Université Paris Cité, Paris, France
Abstract

Online contention resolution scheme (OCRS) is a powerful technique for online decision making, which – in the case of matroids – given a matroid and a prior distribution of active elements, selects a subset of active elements that satisfies the matroid constraint in an online fashion. OCRS has been studied mostly for product distributions in the literature. Recently, universal OCRS, that works even for correlated distributions, has gained interest, because it naturally generalizes the classic notion, and its existence in the random-order arrival model turns out to be equivalent to the matroid secretary conjecture. However, currently very little is known about how to design universal OCRSs for any arrival model. In this work, we consider a natural and relatively flexible arrival model, where the OCRS is allowed to preselect (i.e., non-adaptively select) the arrival order of the elements, and within this model, we design simple and optimal universal OCRSs that are computationally efficient. In the course of deriving our OCRSs, we also discover an efficient reduction from universal online contention resolution to the matroid secretary problem for any arrival model, answering a question posed in [8].

Keywords and phrases:
Matroids, online contention resolution schemes, secretary problems
Category:
Track A: Algorithms, Complexity and Games
Funding:
Junyao Zhao: Supported by a postdoctoral fellowship from the Fondation Sciences Mathématiques de Paris. Part of the work was done while the author was a Ph.D. student at Stanford University, where he was supported by NSF CCF-1954927.
Copyright and License:
[Uncaptioned image] © Junyao Zhao; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Design and analysis of algorithms
Related Version:
Full paper: https://arxiv.org/abs/2504.16327
Editors:
Keren Censor-Hillel, Fabrizio Grandoni, Joël Ouaknine, and Gabriele Puppis

1 Introduction

A contention resolution scheme (CRS) is an algorithm which given a set system 2[n] and a set of active elements A[n] sampled from a known prior distribution 𝒟A, selects a subset XA that satisfies the feasibility constraint X. The design goal of CRS is to guarantee that every element in [n] is selected with some constant probability α conditioned on it being active. Informally, when such CRS exists for set system and prior distribution 𝒟A, we call 𝒟A an α-uncontentious distribution for . CRS was introduced by [7] and has since been studied for various set systems. In this paper, we focus on a most studied set system in the literature – matroid (see Definition 4).

A particular class of CRSs, known as online contention resolution schemes (OCRSs), has found many applications in online decision making, such as prophet inequalities, stochastic probing, and sequential posted-price auctions (e.g., [15, 11, 1]). Specifically, an OCRS knows only and 𝒟A but not the set of active elements A at the beginning. Instead, elements in [n] arrive one by one (their order depends on the specific arrival model), and upon the arrival of each element i[n], it is revealed whether iA, and the OCRS must decide immediately and irrevocably whether to include i in its solution set X before the next element arrives.

Many elegant OCRSs with strong guarantees (in various arrival models) have been discovered (e.g., [7, 11, 1, 19, 12]), but most of them were established exclusively for product distribution 𝒟A (i.e., each element is active independently with some probability), except for [10] and [14], which studied OCRSs for pairwise independent distribution 𝒟A.

Recently, universal OCRSs [8], that work even for general correlated distribution 𝒟A, have started to gain interest. Informally, an OCRS is (α,β)-universal if it guarantees that every element is selected with some constant probability β conditioned on it being active, for any matroid and (arbitrarily correlated) α-uncontentious distribution 𝒟A for . Universal OCRSs naturally generalize classic OCRSs for product distributions. Moreover, Dughmi [8, 9] proved that the existence of universal OCRSs in the random-order arrival model is equivalent to the matroid secretary conjecture posed by [3].

Currently, very little is known about how to design universal OCRSs, except that Dughmi [8] showed that for any arrival model111To be precise, Dughmi’s result [8, Theorem 4.1] was stated for the random-order arrival model, but the proof of that result applies to any arrival model., a universal OCRS exists if there is a constant-competitive matroid secretary algorithm for that model. For the free-order arrival model, where the algorithm is allowed to adaptively choose the arrival order of the remaining elements after observing any number of elements, [18] designed a constant-competitive matroid secretary algorithm. This algorithm, together with Dughmi’s result, implies that there exists a universal OCRS in the free-order model. However, this approach is not known to be computationally efficient, making it difficult to understand the implied universal OCRS for specific problem instances. Indeed, Dughmi’s result is information-theoretic, and whether it can be made computationally efficient was left as an open question [8, Section 6].

In this work, we strive to design universal OCRSs that are efficiently computable and simple to understand. We focus on a natural and relatively flexible arrival model in which the OCRS is allowed to preselect the arrival order of the elements (i.e., non-adaptively choose the arrival order of the elements given and 𝒟A). We adopt the term preselected order to differentiate from the free-order model. The preselected-order model is a step toward the random-order model, and it has been studied for various online decision problems, including prophet inequalities [17, 2, 20, 21, 5], the multi-choice secretary problem [16], sequential posted-price auctions [6, 4], stochastic probing [15] and OCRSs for product distributions [7]. The main contribution of our work is the design and analysis of three different universal OCRSs in the preselected-order model.

1.1 Overview of our universal OCRSs

Now we give an overview of our universal OCRSs. All of our universal OCRSs are generalizations of ordered OCRSs for product distributions [7, 15] with necessary randomization. Briefly, an ordered OCRS [15, Definition 3.2] preselects the arrival order of the elements, and then upon the arrival of each element, it greedily adds the element to the solution set, provided that the element is selectable (i.e., if it is active and can be added to the solution set without violating the matroid constraint).

Our first two universal OCRSs (Algorithm 1 and Algorithm 3) generalize ordered OCRSs by subsampling selectable elements. Specifically, these two OCRSs first preselect the arrival order (based on their respective criteria) and sample a subset of elements T[n]. Then, upon the arrival of each element, they add the element to the solution set if it is selectable and belongs to T. Algorithm 1 and Algorithm 3 use different subsampling methods of independent interest – Algorithm 1 includes each element in T independently with a certain probability, while Algorithm 3 employs a correlated subsampling method and achieves a slightly stronger universality guarantee.

Theorem 1 (Restatement of Theorem 16 and Theorem 21).

For all α[0,1], Algorithm 1 is an (α,α24)-universal OCRS, and Algorithm 3 is an (α,α22)-universal OCRS. Both algorithms preselect the arrival order of the elements before any element arrives.

Instead of subsampling selectable elements, our third universal OCRS (presented in Section 5) samples the arrival order of the elements. Specifically, given matroid and prior distribution 𝒟A, this OCRS first computes a distribution over permutations by solving a linear program (LP), which is similar to the LP used by [7] to compute offline CRSs for product distributions. Then, it samples the arrival order from this distribution, and upon the arrival of each element, it includes the element in the solution set if the element is selectable. The universality guarantee of this OCRS is nearly optimal222We note that the ε loss is only due to computation – we will show that (α,α)-universal OCRSs exist..

Theorem 2 (Informal restatement of Theorem 25).

For any ε>0, there exists a computationally efficient OCRS with preselected order, which is (α,(1ε)α)-universal for all α[0,1].

For comparison, our first two OCRSs have weaker universality guarantees, but they are easier to reason about for specific problem instances. In contrast, our third OCRS provides the strongest universality guarantee, though it is less intuitive because of the use of the LP.

1.2 Universal OCRSs from secretary algorithms

In the course of deriving our third universal OCRS, we discovered an LP-based efficient reduction from universal online contention resolution to the matroid secretary problem for any arrival model (see Section 6 for the setup of the matroid secretary problem), thereby answering the aforementioned question from [8].

Theorem 3 (Informal restatement of Theorem 28).

For any c,ε>0, for any arrival model, if there is a computationally efficient c-competitive matroid secretary algorithm, then there exists a computationally efficient OCRS that is (α,(1ε)cα)-universal for all α[0,1].

Briefly, Dughmi’s information-theoretic reduction [8, Theorem 4.1] was based on the separating hyperplane theorem. Our reduction replaces that with an LP duality argument, and then applies a technique from [19] to solve the corresponding LPs efficiently.

2 Preliminaries

2.1 Matroids

We start by introducing essential definitions and properties of matroids, and we refer interested readers to [22] for a comprehensive treatment of matroid theory. Essentially, a matroid is a set system with some independence structure, which is defined as follows.

Definition 4 (matroid).

A set system 2[n] is a matroid if it satisfies the following properties:

  1. i.

    .

  2. ii.

    If X, then Y for all YX.

  3. iii.

    If X,Y and |Y|<|X|, then there exists iXY such that Y{i}.

Given a matroid, we can associate a (weighted) rank function with it.

Definition 5 (rank).

Given a matroid 2[n], the rank function r:2[n]0 associated with is r(X):=maxYX|Y| s.t. Y. For convenience, for any sets X,Y[n], we denote r(XY):=r(XY)r(Y).

More generally, for any weight vector w0n, the weighted rank function r,w:2[n]0 is r,w(X):=maxYXiYwi s.t. Y.

Moreover, we can define notions of span and basis for a matroid.

Definition 6 (span).

Given a matroid 2[n] and its rank function r:2[n]0, we say that an element i[n] is spanned by a set X[n] if r(X{i})=r(X), and we define the span of X as span(X):={i[n]i is spanned by X}.

Definition 7 (basis).

Given a matroid 2[n] and a set X[n], we say that a subset YX is a basis of X if Y and for all iXY,Y{i}.

Furthermore, we define the restriction of a matroid to a set of elements.

Definition 8 (restriction).

Given a matroid 2[n] and a set X[n], we define the restriction of to X as X:={YXY}.

In the following lemma, we state several well-known properties of matroids.

Lemma 9 (see e.g., [22]).

Any matroid 2[n] satisfies the following properties:

  1. i.

    For any X[n], r(X)|X|.

  2. ii.

    For any X,Y[n], r(XY)iXr({i}Y).

2.2 Contention resolution schemes

Now we introduce contention resolution schemes (CRSs) for matroids. Given a matroid 2[n] and a random set of active elements A[n] sampled from a prior distribution333Throughout the paper, we assume w.l.o.g. that 𝒟A satisfies that i[n],PrA𝒟A[iA]>0. This assumption will simplify the presentation, as it ensures that the probabilities conditioned on the event iA are well-defined. 𝒟AΔ(2[n]), a CRS selects a subset of active elements XA such that X. Formally, we first let Φ denote the family of maps that take an active set A[n] as input and output a subset XA such that X, i.e.,

Φ:={ϕ:2[n]for all A[n]ϕ(A)A}.

Then, a CRS for (,𝒟A) is a random map sampled from a distribution 𝒟ϕΔ(Φ) (since the choice of 𝒟ϕ fully determines the CRS, we also use the notation 𝒟ϕ to refer to the CRS itself). Moreover, for α[0,1], we say that a CRS 𝒟ϕ for (,𝒟A) is α-balanced if it satisfies

PrA𝒟A,ϕ𝒟ϕ[iϕ(A)iA]α for all i[n] s.t. PrA𝒟A[iA]>0,

and we say that 𝒟A is α-uncontentious for if there exists an α-balanced CRS for (,𝒟A).

Furthermore, we use the notation 𝒟AS to denote marginal distributions of 𝒟A. That is, for any S[n], 𝒟AS is defined as follows: ZS,PrA𝒟AS[A=Z]:=PrA𝒟A[AS=Z]. We note that if 𝒟A is α-uncontentious for matroid , then 𝒟AS is α-uncontentious for the restriction S.

Lemma 10.

Given any matroid 2[n] and any α-uncontentious distribution 𝒟A for , for any S[n], the marginal distribution 𝒟AS is α-uncontentious for the restriction S.

A self-contained proof of Lemma 10 is provided in the full paper.

Online contention resolution schemes with preselected order

In this paper, we mostly focus on online contention resolution schemes (OCRSs) that first preselect the arrival order of the elements and then select a subset of active elements in an online fashion. Specifically, an OCRS with preselected order is an algorithm ALG that works in three stages:

  1. (1)

    Given oracle access444We assume that matroid is given by a membership oracle that answers whether S for any input set S[n], and prior distribution 𝒟A is given by an oracle that outputs a fresh sample of 𝒟A upon each query. to a matroid 2[n] and a prior distribution 𝒟AΔ(2[n]), ALG first selects a (random) permutation π:[n][n] and initializes an empty solution set XALG.

  2. (2)

    A random set of active elements A[n] is sampled from 𝒟A and is unknown to ALG.

  3. (3)

    Then, ALG runs in n steps. At each step i[n], it is revealed to ALG whether π(i)A. If π(i) is selectable (i.e., π(i)A and XALG{π(i)}), ALG must decide immediately and irrevocably whether to add π(i) to XALG, and it can use randomness to make this decision.

Similar to general CRSs, for β[0,1], we say that ALG is β-balanced for (,𝒟A) if it satisfies

PrA𝒟A, randomness of ALG[iXALGiA]β for all i[n] s.t. PrA𝒟A[iA]>0.

Moreover, for 0βα1, we say that ALG is (α,β)-universal if for any matroid 2[n] and any α-uncontentious distribution 𝒟AΔ(2[n]) for , ALG is β-balanced for (,𝒟A). Intuitively, universality means that ALG is approximately as balanced as any CRS for any instance (,𝒟A). Furthermore, we say ALG is computationally efficient if it runs in O(poly(npmin)(t𝒟A+t)) time, where pmin:=mini[n]PrA𝒟A[iA], and t𝒟A,t are the time it takes to generate a sample from 𝒟A and to check whether a set of elements belongs to respectively. We note that the runtime must depend on 1pmin, if ALG is (α,β)-universal for arbitrary constants α,β(0,1).

Example 11.

We consider the 1-uniform matroid ={,{1},{2},,{n}}. For any constant α(0,1) and any δ(0,1n+1/α2], we consider a family of prior distributions {𝒟A(j)j[n]}, where each distribution 𝒟A(j) is defined as follows:

Pr[A=]=1δ (n+1α2),Pr[A=[n]]=δ(1α1),
Pr[A={i}]=δ for all ij.

Note that pmin=Pr[jA]=δ(1α1) for each prior distribution 𝒟A(j). Moreover, every prior distribution 𝒟A(j) is α-uncontentious for matroid , because the CRS, that selects element j if A=[n] and selects element i if A={i} for any ij, is α-balanced for (,𝒟A(j)).

However, given instance (,𝒟A(j)) for an unknown j chosen uniformly at random from [n], with only sample access to 𝒟A(j), if an algorithm ALG only draws o(1pmin)=o(1δ) samples, then with high probability, it cannot distinguish element j from most other elements. As a result, if the input set of active elements A is [n], which is the only case where jA, ALG will not be able to select element j with constant probability. We prove this formally in the full paper.

2.3 Other useful notion

Finally, we define a subsampling operator as follows.

Definition 12 (subsampling operator 𝒯ρ).

For any ρ[0,1], the random operator 𝒯ρ takes any set X[n] as input and outputs a random subset 𝒯ρ(X) of X such that each element in X appears in 𝒯ρ(X) independently with probability ρ.

3 A simple universal OCRS via independent subsampling

In this section, we design a simple universal OCRS with preselected order by subsampling selectable elements independently. Although this subsampling-based OCRS has a slightly weaker universality guarantee than the one in Section 4, its analysis is simpler and of independent interest.

3.1 Main structural lemma

Our universal OCRS is based on the following structural lemma, which says that given a matroid and an uncontentious distribution 𝒟A for , there exists an element i, such that if we sample a set of active elements A from 𝒟A and then independently remove each element in A with some constant probability, there is a decent chance that the remaining elements do not span element i conditioned on i being active. This type of lemma was also central to the previous ordered/greedy OCRSs [7, 11] for product distributions.

Lemma 13.

For any α[0,1] and ρ[0,α], given any matroid 2[n] and any α-uncontentious distribution 𝒟A for , there exists i[n] such that

PrA𝒟A[ispan(𝒯ρ(A))iA]αρ.

We note that using subsampling is necessary for the above lemma, in the sense that even if A is sampled from an α-uncontentious distribution 𝒟A for some strictly positive constant α, it is still possible that every element i is always spanned by A{i} conditioned on iA.

Example 14.

Consider a simple matroid ={,{1},{2}} with two elements and a distribution 𝒟A that is specified by Pr[A={1,2}]=12 and Pr[A=]=12. 𝒟A is 12-uncontentious because the CRS, that selects an element from 1 and 2 uniformly at random when A={1,2}, is 12-balanced. However, we notice that PrA𝒟A[ispan(A{i})iA]=1 for any i{1,2}.

Before proving Lemma 13, we state Lemma 15, which is implied by the characterization of uncontentious distributions [8, Theorem 2.1]. We provide the proof in the full paper.

Lemma 15.

For any α[0,1], for any matroid 2[n] and any α-uncontentious distribution 𝒟A for , for any weight vector w0n, it holds that 𝔼A𝒟A[r,w(A)]α𝔼A𝒟A[iAwi], which in particular, implies that 𝔼A𝒟A[r(A)]α𝔼A𝒟A[|A|].

Now we proceed to the proof of Lemma 13.

Proof of Lemma 13.

First, we upper bound 𝔼A𝒟A[r(A)] using basic matroid properties:

𝔼A𝒟A[r(A)] (1)
=𝔼A𝒟A[r(A𝒯ρ(A))]
=𝔼A𝒟A[r(A𝒯ρ(A))+r(𝒯ρ(A))]
=𝔼A𝒟A[r(A𝒯ρ(A))]+𝔼A𝒟A[r(𝒯ρ(A))]
𝔼A𝒟A[iAr({i}𝒯ρ(A))]+𝔼A𝒟A[r(𝒯ρ(A))] (By Lemma 9-ii)
𝔼A𝒟A[iAr({i}𝒯ρ(A))]+𝔼A𝒟A[|𝒯ρ(A)|] (By Lemma 9-i)
=𝔼A𝒟A[iAr({i}𝒯ρ(A))]+ρ𝔼A𝒟A[|A|] (By definition of 𝒯ρ). (2)

Since r({i}𝒯ρ(A)) equals 1 if ispan(𝒯ρ(A)) and 0 otherwise, it follows that

𝔼A𝒟A[iAr({i}𝒯ρ(A))] =𝔼A𝒟A[i[n]𝟙(iA,ispan(𝒯ρ(A)))]
=i[n]PrA𝒟A[iA,ispan(𝒯ρ(A))]. (3)

Combining Ineq. (1) and Ineq. (3.1), we have that

𝔼A𝒟A[r(A)]i[n]PrA𝒟A[iA,ispan(𝒯ρ(A))]+ρ𝔼A𝒟A[|A|].

By Lemma 15, this implies that

i[n]PrA𝒟A[iA,ispan(𝒯ρ(A))](αρ)𝔼A𝒟A[|A|]=(αρ)i[n]PrA𝒟A[iA].

Therefore, there exists i[n] such that

PrA𝒟A[ispan(𝒯ρ(A))iA]=PrA𝒟A[ispan(𝒯ρ(A)),iA]PrA𝒟A[iA]αρ.

3.2 Constructing our universal OCRS with independent subsampling

Our universal OCRS with independent subsampling (Algorithm 1) first samples a set T=𝒯α2([n]) and applies Lemma 13 iteratively to determine an order of the elements, and then following this order, it greedily selects each element that is selectable and belongs to T.

Algorithm 1 Universal-OCRS-with-Independent-Subsampling.

We state the universality guarantee of Algorithm 1 in Theorem 16 and defer the proof to the full paper, where we will also show that the universality guarantee in Theorem 16 is essentially tight for Algorithm 1.

Theorem 16.

Algorithm 1 is an (α,α24)-universal OCRS for any α[0,1].

Moreover, we note that Algorithm 1 does not specify how to find element π(i) at Line 4. In the full paper, we implement this step by estimating probabilities PrA𝒟ASi[jspan(𝒯α2(A))jA] for all i[n] and jSi using Monte-Carlo sampling, which results in the following corollary.

Corollary 17.

For any α,ε(0,1], there exists an (α,(1ε)α24)-universal OCRS with preselected order, which given input matroid 2[n] and α-uncontentious prior distribution 𝒟A for , runs in O(nlog(n/ε)α2ε2pmin(t𝒟A+tn)) time, where pmin:=mini[n]PrA𝒟A[iA], and t𝒟A,t are the time it takes to generate a sample from 𝒟A and to check whether a set of elements belongs to respectively.

Furthermore, as we mentioned in the introduction, Algorithm 1 (in fact, all of our universal OCRSs) generalizes ordered OCRSs for product distributions [7, 15]. For product distributions, it is known that ordered OCRSs can be strengthened to obtain greedy OCRSs, which work even for the worst-case arrival model [11, Theorem 2.1]. One might wonder whether we can also apply our techniques to make those greedy OCRSs universal. Unfortunately, the answer is no, because this would yield a universal OCRS for the worst-case arrival model, which does not exist even for 1-uniform matroids [8, Theorem 5.7]. However, this does not preclude the possibility that there might be meaningful relaxations of greedy OCRSs which can be made universal.

4 An improved universal OCRS via correlated subsampling

In this section, we design a universal OCRS with preselected order using correlated subsampling, which achieves a slightly stronger universality guarantee than Algorithm 1. We first introduce some notations which we will use in this section. We will use symbols π,σ,τ to represent permutations. Given any permutation σ:[n][n] and any element e[n], we let prefix(σ,e) denote the set of elements appearing before element e in permutation σ, namely, prefix(σ,e):={σ(j)j[σ1(e)1]}. Moreover, for any k[n], we let σk denote the set of the first k elements in permutation σ, namely, σk:={σ(j)j[k]}, and we let σ0:=. Furthermore, for any set of elements S, we let 𝒫(S) denote the uniform distribution over all permutations of elements in S.

4.1 Main structural lemma

The main idea of our improved universal OCRS is replacing the independent subsampling operator 𝒯ρ with a correlated subsampling method555The author thanks an anonymous reviewer for suggesting this method and raising valuable questions. that is inspired by Lemma 18. Essentially, Lemma 18 says that given a matroid and an uncontentious distribution 𝒟A for , there exists an element i, such that if we sample a set of active elements A from 𝒟A and a uniformly random permutation σ, and then remove all elements in A except those appearing before element i in permutation σ, there is a decent chance that the remaining elements do not span i conditioned on i being active. We provide the proof of Lemma 18 in the full paper.

Lemma 18.

For any α[0,1], given any matroid 2[n] and any α-uncontentious distribution 𝒟A for , there exists some i[n] such that

PrA𝒟A,σ𝒫([n])[ispan(Aprefix(σ,i))iA]α.

We can iteratively apply Lemma 18 to determine an order of elements, which will be the preselected order of our improved universal OCRS. We formally describe this procedure in Subroutine 2 and state its guarantee in Corollary 19. The proof of Corollary 19 is provided in the full paper.

Algorithm 2 Order-Preselecting.
Corollary 19.

For any α[0,1], given any matroid 2[n] and any α-uncontentious distribution 𝒟A for , Subroutine 2 outputs a permutation π:[n][n] such that for all i[n],

PrA𝒟A,σ𝒫(πi)[π(i)span(Aprefix(σ,π(i)))π(i)A]α. (4)

4.2 Correlated subsampling

In order to make use of Corollary 19, given a permutation π generated by Subroutine 2, we need to sample a set T[n] such that for each i[n], the subset πi1T follows the same distribution as the random set prefix(σ,π(i)), where σ𝒫(πi). In Lemma 20, we show that this can be achieved by first sampling a permutation σ𝒫([n+1]) and then setting T as prefix(σ,n+1).

Lemma 20.

Suppose that we are given a permutation π:[n][n], and we sample a permutation σ𝒫([n+1]) and let T=prefix(σ,n+1). Then, for all i[n], the subset Ti1:=πi1T follows the same distribution as the random set prefix(σ,π(i)), where σ𝒫(πi). Moreover, for all i[n] and Sπi1, we have that

Pr[π(i)TTi1=S]=|S|+1i+1. (5)

We defer the proof of Lemma 20 to the full paper.

4.3 Constructing our universal OCRS with correlated subsampling

We are ready to present our improved universal OCRS with correlated subsampling (Algorithm 3). Algorithm 3 first runs Subroutine 2 to preselect an order π, and then, it samples a set T according to Lemma 20. Finally, it iterates through all elements following order π, and for each i[n], it selects element π(i) if π(i) is selectable and belongs to T. We state its universality guarantee in Theorem 21, which, as we will show in the full paper, is essentially tight for this algorithm.

Algorithm 3 Universal-OCRS-with-Correlated-Subsampling.
Theorem 21.

Algorithm 3 is an (α,α22)-universal OCRS for any α[0,1].

We briefly note that unlike Algorithm 1, which is based on independent subsampling, Algorithm 3 employs a correlated subsampling method. Therefore, in Algorithm 3, the event that element π(i) is subsampled (i.e., π(i)T) is correlated with the event that element π(i) is spanned by the partial solution set Xi1 (which is a subset of T). Analyzing this correlation will be the main technicality of the proof of Theorem 21, which is provided in the full paper.

5 An optimal universal OCRS via linear programming

In this section, we present an LP that computes a universal OCRS with nearly optimal universality guarantee in the preselected-order model, and we solve this LP efficiently using the ellipsoid method. In fact, this approach was originally developed by [7] to compute optimal offline CRSs for product distributions. We show that it applies naturally to ordered OCRSs for (arbitrarily correlated) uncontentious distributions.

Algorithm 4 Deterministic ordered OCRS ϕπ.

We start by introducing some notations which we will use in this section. We let 𝒮n denote the set of all permutations of [n]. For each permutation π𝒮n, we let ϕπ denote the deterministic ordered OCRS with preselected order π (Algorithm 4). Moreover, we define a permutation πw for each weight vector w0n as follow:

Definition 22.

Given any weight vector w0n, we assign weight wi to each element i[n], and we permute elements of [n] in the decreasing order of their weights (with arbitrary tie-breaking for equal weights), and then we let πw denote this permutation.

In the following lemma, we state a key property of OCRS ϕπ, which follows from the well-known greedy algorithm for selecting the maximum-weight basis of a matroid [22, Chapter 19]. We defer the proof to the full paper.

Lemma 23.

For any matroid 2[n] and any prior distribution 𝒟AΔ(2[n]), for any weight vector w0n and any permutation π𝒮n, we have that

𝔼A𝒟A[iϕπ(A)wi]𝔼A𝒟A[iϕπw(A)wi]=𝔼A𝒟A[r,w(A)].

5.1 Formulating the LP

Now we formulate an LP that computes an α-balanced OCRS for any matroid and any α-uncontentious distribution 𝒟A for . The resulting OCRS will be a random mixture of OCRSs ϕπ for various permutations π𝒮n. Specifically, we let xi:=PrA𝒟A[iA] and qi,π:=PrA𝒟A[iϕπ(A)] for all i[n] and π𝒮n, and we consider the following LP (LP) and its dual (DP).

(LP)maxβ,λπ β
s.t. π𝒮nqi,πλπβxii[n]
π𝒮nλπ=1
λπ0π𝒮n.
(DP)minγ,μi γ
s.t. i[n]qi,πμiγπ𝒮n
i[n]xiμi=1
μi0i[n]. (6)

We note that every feasible solution (β,λπ) to (LP) corresponds to a β-balanced OCRS with preselected order for (,𝒟A). Indeed, because of the last two constraints in (LP), variables λπ for all π𝒮n together specify a distribution 𝒟π over 𝒮n. We observe that ϕπ with π𝒟π is a randomized OCRS with preselected order for (,𝒟A), and the first constraint in (LP) ensures that this OCRS is β-balanced.

The next lemma shows that if the prior distribution 𝒟A is α-uncontentious for matroid , then the optimal value of (DP) is at least α. By LP duality, the optimal value of (LP) is also at least α, and hence, the optimal solution to (LP) corresponds to an α-balanced OCRS with preselected order for (,𝒟A).

Lemma 24.

For any α[0,1], if the prior distribution 𝒟A is α-uncontentious for matroid , then any vector μn that satisfies the last two constraints in (DP) in Eq. (5.1) must also satisfy that i[n]qi,πμμiα, where permutation πμ is defined in Definition 22. This implies that the optimal value of (DP) is at least α.

Lemma 24 follows from Lemma 15 and Lemma 23. We provide the proof in the full paper.

5.2 Solving the LP efficiently

We have shown that for any matroid and any α-uncontentious distribution 𝒟A for , we can find an α-balanced OCRS for (,𝒟A) by solving (LP) in Eq. (5.1). Solving (LP) directly is not computationally efficient because there are super-exponentially many variables λπ. However, we can use the ellipsoid method [13] to solve (DP) in Eq. (5.1).

To apply the ellipsoid method to solve (DP), we need to construct a separation oracle, which given any γ and μ0n such that i[n]xiμi=1, checks whether there is a permutation π𝒮n such that i[n]qi,πμi>γ, and if so, outputs the constraint i[n]qi,πμiγ. We notice that by Lemma 23, 𝔼A𝒟A[iϕπ(A)μi]𝔼A𝒟A[iϕπμ(A)μi] for all permutations π𝒮n, which is equivalent to i[n]qi,πμii[n]qi,πμμi for all π𝒮n. Therefore, we can implement the separation oracle efficiently as follows: Given γ and μ0n such that i[n]xiμi=1, the oracle checks whether i[n]qi,πμμi>γ, and if so, outputs the constraint i[n]qi,πμμiγ.

Given this separation oracle, we can solve (DP) in Eq. (5.1) efficiently using the ellipsoid method, which identifies a polynomial number of dual constraints that certify the optimal value of (DP). Then, we can solve (LP) efficiently by restricting it to the variables that correspond to the dual constraints identified by the ellipsoid method. The only issue is that the coefficients xi and qi,π in the LP constraints are not necessarily known. However, this can be addressed by estimating the coefficients on demand using Monte-Carlo sampling (i.e., we estimate coefficients xi for all i[n] at the beginning, and we estimate coefficients qi,πμ for all i[n] only when the ellipsoid method queries the separation oracle with input μ0n and certain γ) and solving the approximate versions of the LPs. We defer the details to the full paper and state the guarantee of the resulting OCRS in Theorem 25.

Theorem 25.

For any α,ε(0,1], there exists an (α,(1ε)α)-universal OCRS with preselected order, which given matroid 2[n] and α-uncontentious prior distribution 𝒟A for , runs in O(poly(nαεpmin)(t𝒟A+t)) time, where pmin:=mini[n]PrA𝒟A[iA], and t𝒟A,t are the time it takes to generate a sample from 𝒟A and to check whether a set of elements belongs to respectively.

6 From secretary algorithms to universal OCRSs (efficiently)

In this section, we show how to use linear programming to efficiently compute a universal OCRS for any arrival model, given a constant-competitive matroid secretary algorithm for that model. Briefly, in the matroid secretary problem, we are given a matroid 2[n] and a weight vector w0n. At the beginning, a matroid secretary algorithm knows666We note that many matroid secretary algorithms in the literature do not require full knowledge of from the outset. Our result in this section also applies to these algorithms. only but not w. Then, elements in [n] arrive in a certain order according to the arrival model. Upon the arrival of each element i[n], its weight wi is revealed, and the algorithm must decide immediately and irrevocably whether to select the element. The goal of the algorithm is to select a set of elements X with maximum total weight. We say that the algorithm is c-competitive if for any input matroid 2[n] and weight vector w0n, it guarantees that 𝔼[iXwi]cr,w([n]), where the expectation is taken over the randomness of the algorithm (and possibly the arrival model).

Given a matroid secretary algorithm ALG in any arrival model (we assume w.l.o.g. that ALG only selects elements with strictly positive weights), for each weight vector w0n, we construct an OCRS 𝒟ϕ(ALG,w) in the same arrival model as ALG: Given input matroid 2[n] and a set of active elements A[n], OCRS 𝒟ϕ(ALG,w) provides as the input matroid to algorithm ALG. Suppose that elements in [n] arrive in an order π:[n][n] according to the arrival model of ALG (it is possible that π is chosen randomly and adaptively by ALG). For each i[n], when element π(i) arrives, OCRS 𝒟ϕ(ALG,w) checks whether π(i)A. If π(i)A, it presents element π(i) with weight wπ(i) to algorithm ALG; otherwise it presents π(i) with weight 0 to ALG. OCRS 𝒟ϕ(ALG,w) selects element π(i) if and only if algorithm ALG selects π(i).

This OCRS was originally constructed in the proof of [8, Theorem 4.1]. We state its key property in the following lemma.

Lemma 26 ([8, Lemma 4.3]).

For any α,c[0,1], if the matroid secretary algorithm ALG is c-competitive, then given any input matroid 2[n] and α-uncontentious prior distribution 𝒟A for , for any weight vector w0n, OCRS 𝒟ϕ(ALG,w) guarantees that

𝔼A𝒟A,ϕ𝒟ϕ(ALG,w)[iϕ(A)wi]cα𝔼A𝒟A[iAwi].

6.1 Formulating the LP

Now we formulate an LP that given a c-competitive matroid secretary algorithm ALG, computes a nearly (cα)-balanced OCRS for any matroid and any α-uncontentious distribution 𝒟A for . The resulting OCRS will be a random mixture of OCRSs 𝒟ϕ(ALG,w) for various weight vectors w0n. Specifically, we let xi:=PrA𝒟A[iA] and qi,w:=PrA𝒟A,ϕ𝒟ϕ(ALG,w)[iϕ(A)] for all i[n] and w0n, and we define Wε:={εin|i{0,,nεpmin}}, where ε>0 is a parameter which we can choose arbitrarily, and pmin:=mini[n]PrA𝒟A[iA] (we assume that pmin>0 as in the preliminary). We consider the following LP (LP1) and its dual (DP1).

(LP1)maxβ,λw β
s.t. wWεnqi,wλwβxii[n]
wWεnλw=1
λw0wWεn.
(DP1)minγ,μi γ
s.t. i[n]qi,wμiγwWεn
i[n]xiμi=1
μi0i[n]. (7)

We note that every feasible solution (β,λw) to (LP1) corresponds to a β-balanced OCRS for (,𝒟A) in the same arrival model as algorithm ALG. Indeed, because of the last two constraints in (LP1), variables λw for all wWεn together specify a distribution 𝒟w over Wεn. We observe that 𝒟ϕ(ALG,w) with w𝒟w is an OCRS for (,𝒟A) in the same arrival model as algorithm ALG, and the first constraint in (LP1) ensures that this OCRS is β-balanced.

The next lemma shows that if the matroid secretary algorithm ALG is c-competitive, and the prior distribution 𝒟A is α-uncontentious for matroid , then the optimal value of (DP1) is at least (1ε)cα. By LP duality, the optimal value of (LP1) is also at least (1ε)cα, and hence, the optimal solution to (LP1) corresponds to an ((1ε)cα)-balanced OCRS for (,𝒟A) in the same arrival model as algorithm ALG.

Lemma 27.

For any α,c,ε(0,1], if the matroid secretary algorithm ALG is c-competitive, then for any matroid 2[n] and α-uncontentious prior distribution 𝒟A for , any vector μn that satisfies the last two constraints in (DP1) must also satisfy that i[n]qi,μμi(1ε)cα, where μWεn is defined as follows:

μi=max{yWεyμi} for all i[n]. (8)

This implies that the optimal value of (DP1) is at least (1ε)cα.

Lemma 27 follows from Lemma 26. We provide the proof in the full paper.

6.2 Reducing the number of dual constraints

We will not directly solve (DP1) in Eq. (6.1) using the ellipsoid method (because here we do not have a straightforward implementation of the separation oracle). Instead, we will use the ellipsoid method to reduce the number of constraints in (DP1) such that its optimal value remains at least (12ε)cα (this technique was also used by [19] to compute optimal OCRSs for product distributions). Specifically, we consider the following polytope Qε:

Qε:={μ0ni[n]xiμi=1,i[n]qi,wμi(12ε)cα for all wWεn}.

If α,c,ε(0,1], then by Lemma 27, any vector μ0n such that i[n]xiμi=1 must satisfy that i[n]qi,μμi(1ε)cα, where μWεn is defined in Eq. (8). Therefore, polytope Qε is empty, and moreover, we can construct an efficient separation oracle for Qε as follows: Given any μ0n such that i[n]xiμi=1, the oracle outputs the violated constraint i[n]qi,μμi(12ε)cα for μWεn given by Eq. (8). Using this separation oracle, we can apply the ellipsoid method to identify a polynomial-size subset WWεn such that the following polytope Qε is empty:

Qε:={μ0ni[n]xiμi=1,i[n]qi,wμi(12ε)cα for all wW}.

Now we consider the following LP (LP2) and its dual (DP2), which are the reduced versions of (LP1) and (DP1) respectively:

(LP2)maxβ,λw β
s.t. wWqi,wλwβxii[n]
wWλw=1
λw0wW.
(DP2)minγ,μi γ
s.t. i[n]qi,wμiγwW
i[n]xiμi=1
μi0i[n]. (9)

Because polytope Qε is empty, the optimal value of (DP2) is greater than (12ε)cα, and by LP duality, the optimal value of (LP2) is also greater than (12ε)cα.

Furthermore, note that (LP2) has polynomially many variables and constraints, and hence, its optimal solution, which we denote by (β,λw), can be computed in polynomial time. By the last two constraints in (LP2), variables λw for all wW together specify a distribution 𝒟w over W. We observe that 𝒟ϕ(ALG,w) with w𝒟w is an OCRS for (,𝒟A) in the same arrival model as the matroid secretary algorithm ALG. This OCRS is β-balanced because of the first constraint in (LP2). Thus, it is ((12ε)cα)-balanced since β>(12ε)cα.

Finally, similar to Subsection 5.2, here we also need to estimate the coefficients xi and qi,w using Monte-Carlo sampling because they are not necessarily known. We defer the details to the full paper and summarize the result in Theorem 28.

Theorem 28.

For any α,c,ε(0,1], for any arrival model, if there is a c-competitive matroid secretary algorithm ALG, then there exists an (α,(1ε)cα)-universal OCRS, which given input matroid 2[n] and α-uncontentious distribution 𝒟A for , runs in O(poly(nαcεpmin)(tALG+t𝒟A)) time, where pmin:=mini[n]PrA𝒟A[iA], and tALG is the worst-case runtime of algorithm ALG on matroid secretary problem instances specified by matroid and weight vectors wWεn, and t𝒟A is the time it takes to generate a sample from 𝒟A.

References

  • [1] Marek Adamczyk and Michał Włodarczyk. Random order contention resolution schemes. In 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS), pages 790–801. IEEE, 2018.
  • [2] Shipra Agrawal, Jay Sethuraman, and Xingyu Zhang. On optimal ordering in the optimal stopping problem. In Proceedings of the 21st ACM Conference on Economics and Computation, pages 187–188, 2020. doi:10.1145/3391403.3399484.
  • [3] Moshe Babaioff, Nicole Immorlica, and Robert Kleinberg. Matroids, secretary problems, and online mechanisms. In Symposium on Discrete Algorithms (SODA’07), pages 434–443, 2007. URL: http://dl.acm.org/citation.cfm?id=1283383.1283429.
  • [4] Hedyeh Beyhaghi, Negin Golrezaei, Renato Paes Leme, Martin Pal, and Balasubramanian Sivan. Improved approximations for free-order prophets and second-price auctions. arXiv preprint arXiv:1807.03435, 2018. arXiv:1807.03435.
  • [5] Archit Bubna and Ashish Chiplunkar. Prophet inequality: Order selection beats random order. In Proceedings of the 24th ACM Conference on Economics and Computation, pages 302–336, 2023. doi:10.1145/3580507.3597687.
  • [6] Shuchi Chawla, Jason D Hartline, David L Malec, and Balasubramanian Sivan. Multi-parameter mechanism design and sequential posted pricing. In Proceedings of the forty-second ACM symposium on Theory of computing, pages 311–320, 2010. doi:10.1145/1806689.1806733.
  • [7] Chandra Chekuri, Jan Vondrák, and Rico Zenklusen. Submodular function maximization via the multilinear relaxation and contention resolution schemes. SIAM Journal on Computing, 43(6):1831–1879, 2014. doi:10.1137/110839655.
  • [8] Shaddin Dughmi. The outer limits of contention resolution on matroids and connections to the secretary problem. In 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020). Schloss-Dagstuhl-Leibniz Zentrum für Informatik, 2020.
  • [9] Shaddin Dughmi. Matroid secretary is equivalent to contention resolution. In 13th Innovations in Theoretical Computer Science Conference (ITCS 2022). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022.
  • [10] Shaddin Dughmi, Yusuf Hakan Kalayci, and Neel Patel. Limitations of stochastic selection problems with pairwise independent priors. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, pages 479–490, 2024. doi:10.1145/3618260.3649718.
  • [11] Moran Feldman, Ola Svensson, and Rico Zenklusen. Online contention resolution schemes with applications to bayesian selection problems. SIAM Journal on Computing, 50(2):255–300, 2021. doi:10.1137/18M1226130.
  • [12] 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, 2024.
  • [13] Martin Grötschel, László Lovász, and Alexander Schrijver. Geometric algorithms and combinatorial optimization, volume 2. Springer Science & Business Media, 2012.
  • [14] Anupam Gupta, Jinqiao Hu, Gregory Kehne, and Roie Levin. Pairwise-independent contention resolution. In International Conference on Integer Programming and Combinatorial Optimization, pages 196–209. Springer, 2024. doi:10.1007/978-3-031-59835-7_15.
  • [15] Anupam Gupta and Viswanath Nagarajan. A stochastic probing problem with applications. In Integer Programming and Combinatorial Optimization: 16th International Conference, IPCO 2013, Valparaíso, Chile, March 18-20, 2013. Proceedings 16, pages 205–216. Springer, 2013. doi:10.1007/978-3-642-36694-9_18.
  • [16] Mohammad Taghi Hajiaghayi, Dariusz R Kowalski, Piotr Krysta, and Jan Olkowski. Optimal algorithms for free order multiple-choice secretary. arXiv preprint arXiv:2207.10703, 2022. doi:10.48550/arXiv.2207.10703.
  • [17] TP Hill. Prophet inequalities and order selection in optimal stopping problems. Proceedings of the American Mathematical Society, 88(1):131–137, 1983.
  • [18] Patrick Jaillet, José A Soto, and Rico Zenklusen. Advances on matroid secretary problems: Free order model and laminar case. In International Conference on Integer Programming and Combinatorial Optimization, pages 254–265. Springer, 2013. doi:10.1007/978-3-642-36694-9_22.
  • [19] Euiwoong Lee and Sahil Singla. Optimal online contention resolution schemes via ex-ante prophet inequalities. In 26th Annual European Symposium on Algorithms (ESA 2018). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018.
  • [20] Allen Liu, Renato Paes Leme, Martin Pál, Jon Schneider, and Balasubramanian Sivan. Variable decomposition for prophet inequalities and optimal ordering. In Proceedings of the 22nd ACM Conference on Economics and Computation, pages 692–692, 2021.
  • [21] Bo Peng and Zhihao Gavin Tang. Order selection prophet inequality: From threshold optimization to arrival time design. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 171–178. IEEE, 2022. doi:10.1109/FOCS54457.2022.00023.
  • [22] Dominic JA Welsh. Matroid theory. Courier Corporation, 2010.