Skip to main content
Article
Near-Optimal Online Multiselection in Internal and External Memory
Journal of Discrete Algorithms
  • Jonathan P Sorenson, Butler University
  • Jérémy Barbay, Universidad de Chile
  • Ankur Gupta, Butler University
  • S. Srinivasa Rao, Seoul National University
Document Type
Article
Publication Date
1-1-2015
DOI
http://dx.doi.org/10.1016/j.jda.2015.11.001
Abstract

We introduce an online version of the multiselection problem, in which q selection queries are requested on an unsorted array of n elements. We provide the first online algorithm that is 1-competitive with online algorithm proposed by Kaligosi et al.[ICALP 2005] in terms of comparison complexity. Our algorithm also supports online search queries efficiently.

We then extend our algorithm to the dynamic setting, while retaining online functionality, by supporting arbitrary insertions and deletions on the array. Assuming that the insertion of an element is immediately preceded by a search for that element, we show that our dynamic online algorithm performs an optimal number of comparisons, up to lower order terms and an additive O(n) term.

For the external memory model, we describe the first online multiselection algorithm that is O(1)-competitive. This result improves upon the work of Sibeyn [Journal of Algorithms 2006] when q > m, where m is the number of blocks that can be stored in main memory. We also extend it to support searches, insertions, and deletions of elements efficiently.

Rights

This is a post-print version of an article originally published in Journal of Discrete Algorithms, 2016, Volume 36.

The version of record is available through: The Journal of Discrete Algorithms.

Citation Information
Jonathan P Sorenson, Jérémy Barbay, Ankur Gupta and S. Srinivasa Rao. "Near-Optimal Online Multiselection in Internal and External Memory" Journal of Discrete Algorithms Vol. 36 (2015) p. 3 - 17
Available at: http://works.bepress.com/ankur_gupta/11/