Parallel Processing Letters C World Scientiic Publishing Company Parallel Algorithms for Maximum Subsequence and Maximum Subarray
暂无分享,去创建一个
Given a sequence Q of n numbers (positive and negative), the maximum subsequence of Q is the contiguous subsequence that has the maximum sum among all contiguous subsequences of Q. Given a two-dimensional array A of n × n numbers (positive and negative), the maximum subarray of A is the contiguous subarray that has the maximum sum among all contiguous subarrays of A. We present two O(log n)-time parallel algorithms — one for finding the maximum subsequence sum of a given sequence, and the other for finding the maximum subarray sum of a given array. The former is optimal on an EREW PRAM. The latter is optimal on a CREW PRAM, in the sense that the time-processor product matches the current sequential upperbound of O(n3).
[1] Douglas R. Smith. Applications of a Strategy for Designing Divide-and-Conquer Algorithms , 1987, Sci. Comput. Program..
[2] Johan Jeuring. The derivation of hierarchies of algorithms on matrices , 1991 .
[3] Jon Louis Bentley,et al. Programming pearls , 1987, CACM.