Approximation Algorithms for Scheduling with Class Constraints

Klaus Jansen, Alexandra Lassota, Marten Maack · DOI

Abstract

Assigning jobs onto identical machines to minimize the maximal load (makespan) is a fundamental problem in combinatorial optimization. This paper investigates Class Constrained Scheduling (CCS), a natural extension motivated by product planning and data placement. In CCS, each job belongs to a class, and each machine is restricted to scheduling jobs from at most $c$ different classes. Despite its relevance and known NP-hardness, CCS has historically lacked robust approximation algorithms. We fill this gap by introducing the first Polynomial Time Approximation Schemes (PTAS) for three variants: the splittable case, the preemptive case, and the non-preemptive case. Our approach leverages new structural insights into optimal solutions, allowing for the construction of configuration Integer Linear Programs (ILP) with an N-fold structure that can be solved efficiently. Additionally, we provide the first simple constant-factor approximation algorithms with strongly polynomial running times.

Introduction

In standard parallel machine scheduling, the objective is to distribute $n$ jobs across $m$ machines to minimize the makespan. However, real-world applications often impose constraints on the diversity of jobs a single machine can handle. For instance, in data placement, a server may only have the storage capacity to host $c$ distinct databases; in manufacturing, a machine may only accommodate a limited number of specialized toolsets.

This paper addresses the Class Constrained Scheduling (CCS) problem, where each job $j$ has a processing time $p_j$ and a class $g(j)$. Each machine can process jobs from at most $c$ distinct classes. We explore three fundamental models of job flexibility:

  1. Splittable: Jobs can be split into arbitrary sizes and distributed across machines.
  2. Preemptive: Jobs can be split, but different pieces of the same job cannot be processed simultaneously.
  3. Non-preemptive: Jobs are atomic and must be processed entirely on a single machine.

Constant-Factor Approximations

Before developing the more complex PTAS, we establish fast, strongly polynomial-time algorithms that provide guaranteed performance bounds. These algorithms utilize a Round Robin framework. By estimating the optimal makespan $T$ and distributing job classes in a cyclic fashion, we achieve the following approximation ratios:

  • Splittable and Preemptive: A 2-approximation in $O(n^2 \log n)$ time.
  • Non-Preemptive: A 7/3-approximation in $O(n^2 \log^2 n)$ time.

These results provide a practical baseline for scenarios where computational speed is prioritized over near-perfect optimality.

The PTAS Framework and N-fold ILP

The core contribution of this work is the first PTAS for CCS where neither the capacity $c$ nor the total number of classes is required to be a constant. Achieving a $(1+\epsilon)$ approximation requires a sophisticated algorithmic pipeline.

Preprocessing and Structural Simplification

To make the problem tractable, we first apply rounding and grouping techniques. We categorize jobs as "large" or "small" relative to the makespan and round processing times to a limited set of values. A critical insight of this paper is the existence of well-structured schedules. We prove that for any optimal schedule, there exists a near-optimal version where job pieces start only at specific time intervals (multiples of $\delta^2 T$). This structural restriction significantly reduces the search space without sacrificing much accuracy.

N-fold Integer Linear Programming

The complexity of class constraints typically causes Integer Linear Programs (ILPs) to become unsolvable in polynomial time. We overcome this by modeling the scheduling requirements as an N-fold ILP. N-fold ILPs possess a specific block-diagonal constraint matrix. By carefully grouping variables into these blocks, we ensure that the "width" of the blocks remains small. This allows us to utilize specialized solvers that can handle the ILP efficiently, even when the number of classes is large.

Key Results and Complexity

The following table summarizes the performance of our proposed PTAS for each variant:

Case Approximation Ratio Running Time
Splittable $1+\epsilon$ $n^{O(1/\epsilon^4 \log(1/\epsilon))}$
Preemptive $1+\epsilon$ $n^{O(1/\epsilon^4 \log(1/\epsilon))}$
Non-Preemptive $1+\epsilon$ $n^{O(1/\epsilon^8 \log(1/\epsilon))}$

Notably, these results remain valid even if the number of machines $m$ is exponential relative to the number of jobs $n$. We achieve this by employing a swapping argument that ensures the algorithm's complexity depends primarily on the number of jobs and classes rather than the machine count.

Conclusion and Future Work

This research provides a theoretical foundation for Class Constrained Scheduling by offering the first $(1+\epsilon)$ approximation guarantees. While the current PTAS demonstrates that the problem is solvable in polynomial time for any fixed $\epsilon$, the high exponents in the running time suggest that these are primarily theoretical proofs of feasibility.

Future research should investigate the existence of an Efficient PTAS (EPTAS), where the exponent of $n$ is independent of $1/\epsilon$. Additionally, extending these models to unrelated machines—where processing times depend on both the job and the machine—remains an open and challenging direction for the field.

Summary updated

BibTeX
@inproceedings{jansen2019approximation,
  author = {Klaus Jansen and Alexandra Lassota and Marten Maack},
  title = {{Approximation Algorithms for Scheduling with Class Constraints}},
  booktitle = {SPAA},
  year = {2019},
  doi = {10.1145/3350755.3400247},
}
Figure