Title :
All nearest smaller values on the hypercube
Author :
Kravets, Dina ; Plaxton, C. Greg
Author_Institution :
Dept. of Comput. Sci., New Jersey Inst. of Technol., Newark, NJ, USA
fDate :
5/1/1996 12:00:00 AM
Abstract :
Given a sequence of n elements, the All Nearest Smaller Values (ANSV) problem is to find, for each element in the sequence, the nearest element to the left (right) that is smaller, or to report that no such element exists. Time and work optimal algorithms for this problem are known on all the PRAM models but the running time of the best previous hypercube algorithm is optimal only when the number of processors p satisfies 1⩽p⩽n/((lg3 n)(lg lg n)2). In this paper, we prove that any normal hypercube algorithm requires Ω(M) processors to solve the ANSV problem in O(lg n) time, and we present the first normal hypercube ANSV algorithm that is optimal for all values of n and p. We use our ANSV algorithm to give the first O(lg n)-time n-processor normal hypercube algorithms for triangulating a monotone polygon and for constructing a Cartesian tree
Keywords :
computational complexity; computational geometry; hypercube networks; parallel algorithms; trees (mathematics); All Nearest Smaller Values; Cartesian tree; hypercube; hypercube algorithm; monotone polygon; monotone polygon triangulation; normal hypercube algorithm; optimal algorithms; Hypercubes; Routing;
Journal_Title :
Parallel and Distributed Systems, IEEE Transactions on