Secretary Problems: Weights and Discounts 3: An O(log n)-Competitive Algorithm for the Discounted Secretary ProblemResearch Paper
Motivation
In the secretary problem, candidates with arbitrary values arrive one at a time in a uniformly random order, and an online decision maker must accept or reject each candidate on arrival, irrevocably, keeping at most one. The rule that observes the first candidates and then accepts the first one better than everything seen so far selects the best candidate with probability about (Dynkin, 1963). The problem is a basic model of online selection and, read economically, of posted-price mechanisms for agents who arrive in random order: a rule that compares each agent only against a threshold set by earlier agents is truthful.
Babaioff, Dinitz, Gupta, Immorlica and Talwar (SODA 2009) study a variant in which time costs value. Selecting the candidate who arrives at time earns that candidate's value multiplied by a discount , for an arbitrary non-negative discount function known in advance. Earlier work treated only specific discount shapes, such as geometric discounting (Rasmussen and Pliska, 1976). For a general the classical rule can fail badly: if all the discount mass sits in the first few time steps, a rule that waits through a sample of size earns nothing. The paper shows that the best competitive ratio for arbitrary discounts lies between (its Theorem 4.3) and (its Theorem 4.4). This mission formalizes the upper bound.
Setting
There are elements, indexed , with values , and times with discounts . A uniformly random permutation fixes the order of arrivals: element arrives at time . An algorithm knows but not ; it sees each value on arrival and may select the current element, irrevocably, earning . Expectations over are exact averages over the orders.
The offline optimum on order is ; it is a random variable, and the benchmark is its expectation (p. 4 of the paper).
Let and . For the -th discount class is the set of times
The quantity is the part of earned when the optimal time (the smallest time attaining the maximum) lies in .
The classical secretary rule on arrivals observes the first and then selects the first arrival that ranks above every earlier arrival. Ranks use a fixed tie-break order: larger value first, and smaller element index among equal values.
The algorithm sets , draws uniformly, and runs the classical rule on the subsequence of arrivals at the times of , ignoring all other arrivals.
Formalization targets
Goal: Theorem 4.4 with its explicit constant
The paper states ; the constant is the one its proof yields.
Milestones
- The classical secretary rule selects the top-ranked of elements with probability at least (§2, p. 4).
- (proof of Theorem 4.4, p. 7).
- for every (p. 7).
- (p. 7).
- for every , where is the classical rule on (p. 7).
Significance
The theorem shows that a general discount function costs only a logarithmic factor against the offline benchmark, and that one algorithm achieves this without any knowledge of the values. Together with the lower bound of Theorem 4.3 it pins the competitive ratio of the discounted secretary problem between and . The same scale-splitting idea, stated in the paper as Theorem 4.5 without full proof, extends the bound to the weighted discounted problem.
The result is proved in the paper; to our knowledge it has not been formalized. A complete development would also produce a machine-checked proof of the classical secretary guarantee for the rule with sample size exactly at every finite , with an explicit tie-break, which is reusable by every secretary-type mission. Milestone 1 is that statement. Sharper constants or a smaller class range are welcome as additional statements but do not replace the goal, which is about this algorithm with this .
Difficulty
The obvious argument, running the classical rule on all arrivals, fails because the discounts can be concentrated at times the rule spends sampling. Splitting by discount scale fixes this but creates two problems. First, there are unboundedly many scales, and one has to show that the offline optimum's mass outside the top of them is negligible against , a random quantity rather than a fixed maximum. Second, the classical rule on a class sees only a random subset of the elements, in random order, and the guarantee must be transferred to this subsequence, conditioning on which elements land in . Neither step is deep, but both require careful bookkeeping of permutations, and the classical bound at finite with a floor in the sample size is itself a nontrivial estimate.
Formalization scope
Elements and times are Fin n, an order is π : Equiv.Perm (Fin n) read as time element, and the paper's time is index . Values and discounts are Fin n → ℝ with non-negativity hypotheses. Every expectation is the finite average ; the algorithm's random class is the explicit average . Maxima are suprema over the finite index set. The logarithm is base 2, is Nat.clog 2 n, and the sample size is Nat.floor (m / Real.exp 1). Ties are broken by the order on Lex (ℝ × (Fin n)ᵒᵈ) (larger value, then smaller index); distinct values are not assumed. The optimal time is the smallest maximizing time, so that the add up to . Competitiveness is stated multiplicatively, never as a quotient, so is not a loophole.
The goal is a statement about the specific algorithm , not "there exists an algorithm": an existential over unrestricted algorithms is witnessed by a clairvoyant rule that reads the values in advance. sees the values only through comparisons among arrivals that have already occurred, and is the expected offline maximum over the same random order, not .
Needed infrastructure: averages over permutations and the fact that the elements landing at a fixed set of times form a uniformly random subset in uniformly random order; the finite- analysis of the classical rule; and elementary estimates on geometric sums. Contributions of general lemmas about uniform permutations are welcome and reusable.
Selected references
- M. Babaioff, M. Dinitz, A. Gupta, N. Immorlica, K. Talwar, Secretary Problems: Weights and Discounts, Proc. 20th ACM-SIAM Symposium on Discrete Algorithms (SODA), 2009. https://doi.org/10.1137/1.9781611973068.139
- E. B. Dynkin, The optimum choice of the instant for stopping a Markov process, Soviet Math. Doklady 4, 1963.
- T. S. Ferguson, Who solved the secretary problem?, Statistical Science 4(3), 1989. https://doi.org/10.1214/ss/1177012493
- L. T. Rasmussen, S. R. Pliska, Choosing the maximum from a sequence with a discount function, Applied Mathematics and Optimization 2, 1976. https://doi.org/10.1007/BF01458209
- M. Babaioff, N. Immorlica, R. Kleinberg, Matroids, secretary problems, and online mechanisms, SODA 2007. https://dl.acm.org/doi/10.5555/1283383.1283429