最小化相邻子序列最大和的数列插入与排序
Insertion and Sorting in a Sequence of Numbers Minimizing the Maximum Sum of a Contiguous Subsequence
摘要:
令$A$是$n \geq 0$实数序列。$A$的子序列是$A$的连续元素的序列。$A$的一个\emph{maximum scoring subsequence}是它的元素之和最大的子序列,它可以用Kadane的动态规划算法在O(n)时间内找到。本文考虑两个涉及序列的最大得分连续性的问题。这两个问题都出现在计算机网络中缓冲存储器最小化的上下文中。第一种称为{ \sc在具有得分的序列中的插入(ISS)},包括以使所得序列的最大得分子序列之和最小化的方式在$A$中插入给定实数$x$,这可以在$O(n^2)$时间内通过连续地应用Kadane算法来计算对应于每个可能的序列的结果序列的最大得分子序列而容易地完成$x$插入位置。我们表明,在本文中,ISS问题可以解决在线性时间和空间的更专门的算法。本文考虑的第二个问题是{ \sc Sorting a Sequence by Scores(SSS)}问题,如下所述:找到$A$的置换$A'$,使最大得分子序列的和最小化。我们证明了SSS问题是强NP-困难的,并给出了它的一个2-近似算法。
英文摘要:
Let $A$ be a sequence of $n \geq 0$ real numbers. A subsequence of $A$ is a sequence of contiguous elements of $A$. A \emph{maximum scoring subsequence} of $A$ is a subsequence with largest sum of its elements, which can be found in O(n) time by Kadane's dynamic programming algorithm. We consider in this paper two problems involving maximal scoring subsequences of a sequence. Both of these problems arise in the context of buffer memory minimization in computer networks. The first one, which is called {\sc Insertion in a Sequence with Scores (ISS)}, consists in inserting a given real number $x$ in $A$ in such a way to minimize the sum of a maximum scoring subsequence of the resulting sequence, which can be easily done in $O(n^2)$ time by successively applying Kadane's algorithm to compute the maximum scoring subsequence of the resulting sequence corresponding to each possible insertion position for $x$. We show in this paper that the ISS problem can be solved in linear time and space with a more specialized algorithm. The second problem we consider in this paper is the {\sc Sorting a Sequence by Scores (SSS)} one, stated as follows: find a permutation $A'$ of $A$ that minimizes the sum of a maximum scoring subsequence. We show that the SSS problem is strongly NP-Hard and give a 2-approximation algorithm for it.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。