Practical Entropy-Bounded Schemes for O(1)-Range Minimum Queries

  • Authors:
  • Johannes Fischer;Volker Heun;Horst Martin Stühler

  • Affiliations:
  • -;-;-

  • Venue:
  • DCC '08 Proceedings of the Data Compression Conference
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

The Range Minimum Query (RMQ) Problem is to preprocess an array A of length n in O(n) time such that subsequent on-line queries asking for the position of a minimal element between two specified indices can be obtained in constant time. Several solutions to this problem have been proposed, starting with Berkman and Vishkin's linear-space solution, and leading to a succinct solution using only 2n+o(n) bits in addition to the input array by Fischer and Heun. The theoretical contribution of this article is to push this latter approach one step further and show that for compressible input arrays the RMQ-information can be compressed as well. In particular, we show that information for O(1)-RMQs can be stored within the same entropy bounds that are achieved by the currently best schemes for storing A itself in compressed form, while still being able to access O(log n) contiguous bits in O(1) time. Two such entropy-bounded schemes for O(1)-RMQs are developed, each with its own practical advantage. We test these two methods extensively and compare them to three other schemes for RMQs: the currently best non-succinct solution from Alstrup at al., and two succinct approaches: Sadakane's 4n+o(n)-bit solution, and our own 2n+o(n)-bit solution. The results of this practical evaluation are (1) the practical space consumptions of the non-compressed schemes scale surprisingly well with their theoretical guarantees, and (2) for compressible input arrays our new compressed schemes can indeed reduce the space, with little or no slowdown in query time.