Constant-time RMESH algorithms for the range minima and co-minima problems

被引:0
|
作者
Kim, SK [1 ]
机构
[1] Chung Ang Univ, Dept Comp Engn & Sci, Seoul 156756, South Korea
关键词
range minima problem; range co-minima problem; RMESH;
D O I
10.1016/S0167-8191(98)00030-1
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present efficient solutions on an RMESH for the following two problems: (i) The range minima problem: Given an array of real numbers, A = (a(1),...,a(n)), preprocess A so that, after preprocessing, for any two query indices 1 less than or equal to i less than or equal to j less than or equal to n, min {a(i),...,a(j)} can be found efficiently. (ii) The range co-minima problem: Given an array of positive integers, B = (b(1),...,b(n)) with b(i) less than or equal to n for all i, preprocess B so that, after preprocessing, for any two query indices 1 less than or equal to i less than or equal to j less than or equal to n, the minimum positive integer not in (b(i),...,b(j)) can be found efficiently. In other words, min {{1,2,...,n + 1} - {b(i),...,b(j)}} is to be found. Our preprocessing algorithms for both problems take constant time on an n x n RMESH, and a query can be answered in constant time using a single processor. (C) 1998 Elsevier Science B.V. All rights reserved.
引用
收藏
页码:965 / 977
页数:13
相关论文
共 34 条