Selection from read-only memory with limited workspace
Amr Elmasry, Daniel Dahl Juhl, Jyrki Katajainen, Srinivasa, Rao Satti

TL;DR
This paper presents a space-efficient algorithm for the selection problem that operates in a read-only memory model with limited workspace, improving upon previous algorithms and introducing a new data structure called the wavelet stack.
Contribution
The authors adapt the classic prune-and-search selection algorithm to use linear bits of extra space, surpassing prior space bounds and generalizing to various workspace sizes.
Findings
Achieved linear-bit space complexity for selection in read-only memory.
Improved time complexity over previous algorithms in space-restricted models.
Introduced the wavelet stack data structure for efficient repeated pruning.
Abstract
Given an unordered array of elements drawn from a totally ordered set and an integer in the range from to , in the classic selection problem the task is to find the -th smallest element in the array. We study the complexity of this problem in the space-restricted random-access model: The input array is stored on read-only memory, and the algorithm has access to a limited amount of workspace. We prove that the linear-time prune-and-search algorithm---presented in most textbooks on algorithms---can be modified to use bits instead of words of extra space. Prior to our work, the best known algorithm by Frederickson could perform the task with bits of extra space in time. Our result separates the space-restricted random-access model and the multi-pass streaming model, since we can surpass the lower…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Machine Learning and Algorithms · DNA and Biological Computing
