Instruct: Identify the main and secondary category of Arxiv papers based on the titles and abstracts
Query: The Sorting Buffer Problem is NP-hard   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.

24
The categories of this paper are: dg-ga
13
The categories of this paper are: quant-ph
4
The categories of this paper are: cond-mat
9
The categories of this paper are: nlin
10
The categories of this paper are: q-bio
3
The categories of this paper are: physics
37
The categories of this paper are: supr-con
23
The categories of this paper are: solv-int
31
The categories of this paper are: ao-sci
36
The categories of this paper are: cmp-lg
16
The categories of this paper are: stat
25
The categories of this paper are: patt-sol
15
The categories of this paper are: nucl-ex
6
The categories of this paper are: astro-ph
5
The categories of this paper are: gr-qc
11
The categories of this paper are: hep-lat