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

Computer Science – Data Structures and Algorithms

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

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

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

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.

Rate now

     

Profile ID: LFWR-SCP-O-80895

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.