Computer Science – Data Structures and Algorithms
Scientific paper
2011-02-02
Computer Science
Data Structures and Algorithms
to appear in Theoretical Computer Science
Scientific paper
Let $A$ be a static array storing $n$ elements from a totally ordered set. We present a data structure of optimal size at most $n\log_2(3+2\sqrt{2})+o(n)$ bits that allows us to answer the following queries on $A$ in constant time, without accessing $A$: (1) previous smaller value queries, where given an index $i$, we wish to find the first index to the left of $i$ where $A$ is strictly smaller than at $i$, and (2) next smaller value queries, which search to the right of $i$. As an additional bonus, our data structure also allows to answer a third kind of query: given indices $i
No associations
LandOfFree
Combined Data Structure for Previous- and Next-Smaller-Values does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.
If you have personal experience with Combined Data Structure for Previous- and Next-Smaller-Values, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Combined Data Structure for Previous- and Next-Smaller-Values will most certainly appreciate the feedback.
Profile ID: LFWR-SCP-O-80895