Scheduling partially ordered jobs faster than 2^n

Marek Cygan, Marcin Pilipczuk, Michal Pilipczuk, Jakub Onufry WojtaszczykarXiv 2011

Introduction

In the field of combinatorial optimization, breaking the "$2^n$ barrier" for NP-hard problems is often considered a "holy grail." This paper achieves such a breakthrough for a fundamental scheduling problem known as $1|\text{prec}|\sum C_i$. By identifying "exchangeable" sets of jobs that can never be part of an optimal solution, the authors provide the first algorithm that runs in $O((2-\epsilon)^n)$ time, answering an open question that has stood since 2004.

The $1|\text{prec}|\sum C_i$ Problem

The problem involves scheduling $n$ jobs on a single machine. Each job has a specific processing time, and certain jobs must be completed before others can begin, as defined by a set of precedence constraints. The goal is to find an ordering of all jobs that minimizes the total completion time—the sum of the times at which each job finishes.

While seemingly simple, this problem is NP-hard. For decades, the best exact algorithm used dynamic programming (DP) to check subsets of jobs, resulting in a time complexity of $O^*(2^n)$. The challenge lies in the exponential number of possible job subsets that could form a valid prefix of a schedule.

Precedence constraints between a set of jobs $I_1$ and a module $M$, illustrating the complexity of job dependencies.

The Core Lemma: Exchangeability

The paper's primary innovation is the "Core Lemma," which introduces the concept of exchangeable sets. A subset of jobs is considered "exchangeable" if it can be rearranged to reduce the total completion time without violating any precedence constraints. The authors prove that an optimal schedule will never use an exchangeable set as a prefix.

By identifying these sets, the algorithm can prune the DP state space significantly. If a subset is exchangeable, it is "bad" and can be ignored, reducing the number of states the algorithm must explore.

Analysis of an optimal schedule $\sigma_{opt}$ to identify exchangeable prefixes and improve completion time.

Algorithmic Strategy and Compression

The algorithm builds upon standard DP but introduces a sophisticated pruning strategy. It handles two main cases:

  1. Dense Constraints: If there are many precedence constraints, the number of valid "downward-closed" subsets is naturally much less than $2^n$.
  2. Sparse Constraints: In cases with fewer constraints, the exchangeability logic becomes extremely powerful. The authors use a clever encoding argument to show that any non-exchangeable set can be uniquely represented by a small "fingerprint." Since these sets can be "compressed," there must be fewer than $2^n$ of them in existence.

To apply these insights, the algorithm divides the $n$ available time slots into four quarters and branches based on which jobs fall into which quarter, allowing for more effective pruning.

Results and Theoretical Impact

As a theoretical breakthrough, the paper proves that $1|\text{prec}|\sum C_i$ can be solved in $O((2-\epsilon)^n)$ time. While the numerical value of $\epsilon$ is tiny (approximately $10^{-10}$), the result is a proof-of-concept that the $2^n$ barrier is not an inherent limit for this class of problems. The algorithm is a "win-win": if the problem has many constraints, the state space is small; if it has few constraints, the exchangeability pruning is highly effective.

Limitations and Future Work

The most significant limitation is the size of the constant $\epsilon$, which makes the current algorithm more of a theoretical victory than a practical tool for engineers. Future work may focus on improving this constant to something more substantial, like $1.9^n$, or generalizing the technique to more complex problems like the Traveling Salesperson Problem (TSP).

Summary updated

BibTeX
@misc{cygan2011scheduling,
  author = {Marek Cygan and Marcin Pilipczuk and Michal Pilipczuk and Jakub Onufry Wojtaszczyk},
  title = {{Scheduling partially ordered jobs faster than 2^n}},
  year = {2011},
  eprint = {1108.0810},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1108.0810},
}
Figure