Faster batched range minimum queries
Szymon Grabowski, Tomasz Kowalski

TL;DR
This paper improves the efficiency of batch range minimum queries by adapting sparse table techniques and proposing a new variant that trades space for speed, especially effective for small query batches.
Contribution
It introduces a faster method for small batch RMQ by adapting sparse tables to blocks and proposes a space-intensive variant without array contraction.
Findings
Speedup of 3.8--7.8 times over previous methods
Effective for small, known query batches
New block-based sparse table adaptation
Abstract
Range Minimum Query (RMQ) is an important building brick of many compressed data structures and string matching algorithms. Although this problem is essentially solved in theory, with sophisticated data structures allowing for constant time queries, there are scenarios in which the number of queries, , is rather small and given beforehand, which encourages to use a simpler approach. A recent work by Alzamel et al. starts with contracting the input array to a much shorter one, with its size proportional to . In this work, we build upon their solution, speeding up handling small batches of queries by a factor of 3.8--7.8 (the gap grows with ). The key idea that helped us achieve this advantage is adapting the well-known Sparse Table technique to work on blocks, with speculative block minima comparisons. We also propose an even much faster (but possibly using more space) variant…
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 · Error Correcting Code Techniques · Advanced Data Storage Technologies
