Abstract
In the classic secretary problem, an observer must make immediate and irrevocable hiring decisions for a sequence of candidates to maximize the probability of selecting the best individual. This paper extends this model to the "Temp Secretary Problem," where hires are temporary rather than permanent. In this setting, a resource (or "slot") becomes available again after a fixed duration $\gamma$. We present two algorithmic frameworks—the Time-Slice algorithm and the Charter algorithm—that provide provable competitive ratios for maximizing total value under both capacity and budget constraints.
Introduction
The classic secretary problem serves as a foundational model for online decision-making under uncertainty. However, its assumption that a single hire fills a position permanently fails to capture the dynamics of modern gig-economy platforms and resource-sharing markets. On platforms like Airbnb or Upwork, a "hire" or "rental" is a temporary commitment; the resource is occupied for a specific duration and then returns to the pool of available capacity.
This paper formalizes the Temp Secretary Problem to bridge this gap. We consider a scenario where items arrive stochastically over a time interval $[0, 1)$, but their values are adversarial. Unlike the permanent version, the temporary nature of the contracts introduces a temporal packing challenge: the decision to accept a candidate now affects capacity only for a window of time $\gamma$, after which the slot can be reused.
Problem Formulation
The Temp Secretary Problem is defined by the following parameters:
- Stochastic Arrivals: Items arrive at times $t \in [0, 1)$ according to a known distribution (typically uniform).
- Adversarial Values: The values of the items are unknown and potentially chosen by an adversary to minimize the algorithm's performance.
- Temporary Contracts: Accepting an item occupies a capacity slot for a fixed duration $\gamma$.
- Constraints: The system has a simultaneous capacity $d$ (maximum concurrent hires) and a total budget $k$ (maximum total hires over the interval).
The objective is to design an online algorithm that maximizes the total expected value of selected items relative to an offline optimal solution that possesses full knowledge of all arrival times and values.
Algorithmic Frameworks
The Time-Slice Algorithm
The Time-Slice algorithm is a reduction-based approach that simplifies the temporal complexity of the problem. The algorithm partitions the time interval $[0, 1)$ into discrete slices of length $\gamma$. By randomly choosing to operate only within either even-numbered or odd-numbered slices, the algorithm ensures that any item hired in one active slice will complete its contract before the next active slice begins. This effectively eliminates capacity conflicts between slices, allowing the use of standard secretary algorithms within each slice. While simple, this method demonstrates that the temporary nature of the problem can be managed at the cost of a constant factor in the competitive ratio.
The Charter Algorithm
For a more refined approach, the authors propose the Charter algorithm, a recursive thresholding strategy. This algorithm uses the first half of the available time $[0, 1/2)$ as a sampling period to observe the distribution of candidate values. Based on this sample, it establishes a value threshold $T$. In the subsequent period $[1/2, 1)$, the algorithm greedily accepts any candidate whose value exceeds $T$, provided that the capacity $d$ and budget $k$ constraints are not violated. This approach is inspired by Kleinberg’s $k$-secretary algorithm and is designed to optimize the trade-off between exploration and exploitation.
Theoretical Insights
A significant contribution of this work is the connection between online selection and graph theory. The authors relate the Temp Secretary Problem to finding a maximum weight independent set (MWIS) in a random unit interval graph. By proving bounds on the expected size of an MWIS in these graphs, the researchers provide a robust theoretical foundation for the performance of their online algorithms.
Key Results
The performance of these algorithms is measured by their competitive ratio against an offline optimum:
- Time-Slice Performance: For a single capacity slot ($d=1$), the algorithm achieves a competitive ratio of $1/2e$.
- Charter Algorithm Performance: For $d=1$, the Charter algorithm achieves a competitive ratio approaching $1/2$ as the contract duration $\gamma$ becomes small. This matches the best-known results for the permanent $k$-secretary problem.
- Optimality: The authors establish an upper bound showing that for uniform arrivals without budget restrictions, no online algorithm can exceed a competitive ratio of $1/2 + \gamma/2$. This indicates that the proposed algorithms are near-optimal.
- Generalization: The frameworks extend beyond simple capacity to handle Matroid and Knapsack constraints, providing a versatile toolkit for various online resource allocation problems.
Conclusion and Future Work
The Temp Secretary Problem provides a more realistic model for modern online marketplaces. By demonstrating that threshold-based and reduction-based strategies remain effective even when resources are reused, this research opens new avenues for online optimization. Future research may focus on scenarios where arrival distributions are unknown, or where strategic agents might manipulate their arrival times to gain an advantage, requiring the integration of incentive-compatible mechanism design.
Summary updated