Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
4652044 | Electronic Notes in Discrete Mathematics | 2013 | 6 Pages |
Abstract
Let the maximal sum of a sequence A be the greatest sum of a contiguous and possibly empty subsequence S of A. Given sequences A and X of n and n+1 numbers respectively, let A(i) be the sequence which results from the insertion of element X[i] between elements A[i−1] and A[i] of A. It is known that computing the maximal sum of A(i) can be done in linear time. We show that the simultaneous computation of the maximal sums of A(0),A(1),…,A(n) can also be done in linear time. Such an algorithm has applications to buffer minimization in radio networks.
Related Topics
Physical Sciences and Engineering
Mathematics
Discrete Mathematics and Combinatorics