On (dynamic) range minimum queries in external memory

  • Authors:
  • Lars Arge;Johannes Fischer;Peter Sanders;Nodari Sitchinava

  • Affiliations:
  • MADALGO, Aarhus University, Aarhus, Denmark;Karlsruhe Institute of Technology, Karlsruhe, Germany;Karlsruhe Institute of Technology, Karlsruhe, Germany;Karlsruhe Institute of Technology, Karlsruhe, Germany

  • Venue:
  • WADS'13 Proceedings of the 13th international conference on Algorithms and Data Structures
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

We study the one-dimensional range minimum query (RMQ) problem in the external memory model. We provide the first space-optimal solution to the batched static version of the problem. On an instance with N elements and Q queries, our solution takes Θ(sort(N+Q)) = Θ($N+Q \over B$ logM /B$N+Q \over B$) I/O complexity and O(N+Q) space, where M is the size of the main memory and B is the block size. This is a factor of O(logM /BN) improvement in space complexity over the previous solutions. We also show that an instance of the batched dynamic RMQ problem with N updates and Q queries can be solved in O ($N+Q \over B$ $\log^{2}_{M /B}$$N+Q \over B$) I/O complexity and O(N+Q) space.