Abstract
In the classic selection problem the task is to find the kth smallest of N elements. We study the complexity of this problem on a space-bounded random-access machine: The input is given in a read-only array and the capacity of workspace is limited. We prove that the linear-time prune-and-search algorithm-presented in most textbooks on algorithms-can be adjusted to use O(N) bits instead of Θ(N) words of extra space. Prior to our work, the best known algorithm by Frederickson could perform the task with O(N) bits of extra space in O(N log N) time. In particular, our result separates the space-restricted random-access model and the multi-pass streaming model (since we can bypass the Ω(N log N) lower bound known for the latter model). We also generalize our algorithm for the case when the size of the workspace is O(S) bits,. The running time of our generalized algorithm is, slightly improving over the bound of Frederickson's algorithm. Of independent interest, the wavelet stack-a structure we used for repeated pruning-may also be useful in other applications.
Original language | English |
---|---|
Title of host publication | Computing and Combinatorics : 19th International Conference, COCOON 2013, Hangzhou, China, June 21-23, 2013. Proceedings |
Editors | Ding-Zhu Du, Guochuan Zhang |
Number of pages | 11 |
Publisher | Springer |
Publication date | 2013 |
Pages | 147-157 |
ISBN (Print) | 978-3-642-38767-8 |
ISBN (Electronic) | 978-3-642-38768-5 |
DOIs | |
Publication status | Published - 2013 |
Event | 19th International Conference on Computing and Combinatorics - Hangzhou, China Duration: 21 Jun 2013 → 23 Jun 2013 Conference number: 19 |
Conference
Conference | 19th International Conference on Computing and Combinatorics |
---|---|
Number | 19 |
Country/Territory | China |
City | Hangzhou |
Period | 21/06/2013 → 23/06/2013 |
Series | Lecture notes in computer science |
---|---|
Volume | 7936 |
ISSN | 0302-9743 |