Combined Data Structure for Previous- and Next-Smaller-Values
Johannes Fischer

TL;DR
This paper introduces a space-efficient data structure that supports constant-time previous and next smaller value queries, as well as range minimum queries, on static arrays, with applications to suffix tree storage.
Contribution
It presents an optimal-size data structure enabling constant-time queries for previous/next smaller values and range minima without array access.
Findings
Supports constant-time queries for previous/next smaller values
Uses at most n log_2(3+2√2)+o(n) bits of space
Facilitates space-efficient suffix tree storage
Abstract
Let be a static array storing elements from a totally ordered set. We present a data structure of optimal size at most bits that allows us to answer the following queries on in constant time, without accessing : (1) previous smaller value queries, where given an index , we wish to find the first index to the left of where is strictly smaller than at , and (2) next smaller value queries, which search to the right of . As an additional bonus, our data structure also allows to answer a third kind of query: given indices , find the position of the minimum in . Our data structure has direct consequences for the space-efficient storage of suffix trees.
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 · Cellular Automata and Applications · DNA and Biological Computing
