arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1009.4355cs.DS
收藏

排序缓冲区问题是NP难的

The Sorting Buffer Problem is NP-hard

Ho-Leung Chan, Nicole Megow, Rob van Stee, Rene Sitters

摘要:

我们考虑离线排序缓冲区问题。输入是一系列不同类型的项。所有项目必须由服务器逐个处理。服务器配备了一个容量有限的随机访问缓冲区,可用于重新排列项目。问题是设计一个调度策略,决定从缓冲区中的项目发送到服务器的顺序。每一个类型的变化会产生单位成本,因此,成本最小化的目标是最小化服务于整个序列的类型变化的总数。这个问题是由制造过程和计算机科学中的各种应用所激发的,并且在过去几年中引起了极大的关注。主要的焦点是在线竞争算法。令人惊讶的是,人们对基本的离线问题知之甚少。在本文中,我们证明了具有均匀成本的排序缓冲区问题是NP-困难的,从而关闭了离线问题的最基本的问题之一。在积极的一面,我们给出了一个O(1)-近似算法时,调度程序的缓冲区仅略大于原来的两倍大小。我们还给出了一个动态规划算法的特殊情况下的缓冲区大小为2,解决了问题的线性时间,改进的标准DP,在立方时间运行。

英文摘要:

We consider the offline sorting buffer problem. The input is a sequence of items of different types. All items must be processed one by one by a server. The server is equipped with a random-access buffer of limited capacity which can be used to rearrange items. The problem is to design a scheduling strategy that decides upon the order in which items from the buffer are sent to the server. Each type change incurs unit cost, and thus, the cost minimizing objective is to minimize the total number of type changes for serving the entire sequence. This problem is motivated by various applications in manufacturing processes and computer science, and it has attracted significant attention in the last few years. The main focus has been on online competitive algorithms. Surprisingly little is known on the basic offline problem. In this paper, we show that the sorting buffer problem with uniform cost is NP-hard and, thus, close one of the most fundamental questions for the offline problem. On the positive side, we give an O(1)-approximation algorithm when the scheduler is given a buffer only slightly larger than double the original size. We also give a dynamic programming algorithm for the special case of buffer size two that solves the problem exactly in linear time, improving on the standard DP which runs in cubic time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑