Space-Efficient Preprocessing Schemes for Range Minimum Queries on Static Arrays
نویسندگان
چکیده
Given a static array of n totally ordered object, the range minimum query problem is to build an additional data structure that allows to answer subsequent on-line queries of the form “what is the position of a minimum element in the sub-array ranging from i to j?” efficiently. We focus on two settings, where (1) the input array is available at query time, and (2) the input array is only available at construction time. In setting (1), we show new data structures (a) of size n c(n) (2 + o(1)) bits and query time O(c(n)), or (b) with O(nHk) + o(n) bits and O(1) query time, where Hk denotes the empirical entropy of k’th order of the input array. In setting (2), we give a data structure of optimal size 2n+ o(n) bits and query time O(1). All data structures can be constructed in linear time and almost in-place.
منابع مشابه
Lecture 15 — April 12 , 2012
In this lecture, we look at various data structures to solve problems about static trees: given a static tree, we perform some preprocessing to construct our data structure, then use the data structure to answer queries about the tree. The three problems we look at in this lecture are range minimum queries (RMQ), lowest common ancestors (LCA), and level ancestor (LA); we will support all these ...
متن کاملFinding Range Minima in the Middle: Approximations and Applications
A Range Minimum Query asks for the position of a minimal element between two specified array-indices. We consider a natural extension of this, where our further constraint is that if the minimum in a query interval is not unique, then the query should return an approximation of the median position among all positions that attain this minimum. We present a succinct preprocessing scheme using Dn+...
متن کاملRange Minimum Queries: Simple and Optimal, At Last!
For an array A of n objects from a totally ordered universe, a range minimum query rmqA(i, j) asks for the position of the minimum element in the sub-array A[i, j]. This fundamental algorithmic problem has applications in string processing, text indexing, text compression, document retrieval, and graphor tree-navigation, just to name a few. We focus on the setting where the array A is static an...
متن کاملOptimal Succinctness for Range Minimum Queries
For a static array A of n totally ordered objects, a range minimum query asks for the position of the minimum between two specified array indices. We show how to preprocess A into a scheme of size 2n + o(n) bits that allows to answer range minimum queries on A in constant time. This space is asymptotically optimal in the important setting where access to A is not permitted after the preprocessi...
متن کاملTwo-Dimensional Range Minimum Queries
We consider the two-dimensional Range Minimum Query problem: for a static (m × n)-matrix of size N = mn which may be preprocessed, answer on-line queries of the form “where is the position of a minimum element in an axis-parallel rectangle?”. Unlike the onedimensional version of this problem which can be solved in provably optimal time and space, the higher-dimensional case has received much le...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- SIAM J. Comput.
دوره 40 شماره
صفحات -
تاریخ انتشار 2011