,
Wei Zhang
Creative Commons Attribution 4.0 International license
We study memory-bounded algorithms for the k-secretary problem. The algorithm of Kleinberg (SODA 2005) achieves an optimal competitive ratio of 1 - O(1/√k), yet a straightforward implementation requires Ω(k) memory. Our main result is a k-secretary algorithm that matches the optimal competitive ratio using O(log k) words of memory. We prove this result by establishing a general reduction from k-secretary to (random-order) quantile estimation, the problem of finding the k-th largest element in a stream. We show that a quantile estimation algorithm with an O(k^{α}) expected error (in terms of the rank) gives a (1 - O(1/k^{1-α}))-competitive k-secretary algorithm with O(1) extra words. We then introduce a new quantile estimation algorithm that achieves an O(√k) expected error bound using O(log k) memory. Of independent interest, we give a different algorithm that uses O(√k) words and finds the k-th largest element exactly with high probability, generalizing a result of Munro and Paterson (1980).
@InProceedings{qiao_et_al:LIPIcs.ICALP.2026.150,
author = {Qiao, Mingda and Zhang, Wei},
title = {{Optimal k-Secretary with Logarithmic Memory}},
booktitle = {53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026)},
pages = {150:1--150:17},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-428-4},
ISSN = {1868-8969},
year = {2026},
volume = {374},
editor = {Bhattacharya, Sayan and Nanongkai, Danupon and Benedikt, Michael and Puppis, Gabriele},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICALP.2026.150},
URN = {urn:nbn:de:0030-drops-265394},
doi = {10.4230/LIPIcs.ICALP.2026.150},
annote = {Keywords: Streaming algorithms, online algorithms, secretary problem}
}