کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
438593 690296 2007 9 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Ranking k maximum sums
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Ranking k maximum sums
چکیده انگلیسی

Given a sequence of n real numbers and an integer parameter k, the problem studied in this paper is to compute k subsequences of consecutive elements with the sums of their elements being the largest, the second largest, …, and the kth largest among all possible range sums of the input sequence.For any value of k, 1≤k≤n(n+1)/2, we design a fast algorithm that takes O(n+klogn) time in the worst case to compute and rank all such subsequences. We also prove that our algorithm is optimal for k=O(n) by providing a matching lower bound.Moreover, our algorithm is an improvement over the previous results on the maximum sum subsequences problem (where only the subsequences are requested and no ordering with respect to their relative sums will be determined).Furthermore, given the fact that we have computed the ℓth largest sums, our algorithm retrieves the (ℓ+1)th largest sum in O(logn) time, after O(n) time of preprocessing.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Theoretical Computer Science - Volume 377, Issues 1–3, 31 May 2007, Pages 229-237