Polynomial Time Algorithms for Minimum Energy Scheduling

Philippe Baptiste, Marek Chrobak, Christoph Dürr

TL;DR

This paper tackles the problem of minimizing energy consumption in a single-processor system by intelligently scheduling jobs with release times and deadlines. The authors present polynomial-time algorithms that solve this previously open problem, offering an O(n⁵) solution for general jobs and an O(n⁴) solution for unit-length jobs. This work is significant because it provides a theoretical foundation for energy-efficient scheduling, a crucial aspect of modern computing.

What Problem Does This Paper Address?

Modern computing systems are increasingly concerned with energy efficiency. A common strategy to save energy is to put the processor into a low-power "suspend" mode during idle periods. However, waking the processor up from this mode incurs a fixed energy cost, denoted by $L$. This means that suspending the system is only beneficial if the idle time is sufficiently long to offset this wake-up energy.

The paper focuses on a specific scheduling problem: given a set of jobs, each with a release time (when it becomes available), a deadline (when it must be completed), and a processing time, find a schedule that minimizes the total energy consumed. The system has a single processor, and jobs can be preempted (interrupted and resumed later). The processor consumes energy at a rate of 1 unit per time unit when active, and $L$ units to wake up. This problem, denoted as $1|r_j; pmtn|E$, was a long-standing open question in the field, with researchers suspecting a polynomial-time solution might exist but lacking a concrete algorithm.

Methods

The core of the paper's contribution lies in developing novel dynamic programming algorithms. The authors employ an "inversion trick" to speed up their dynamic programming approach. Instead of directly computing a function that represents the maximum completion time for a given number of gaps, they compute its inverse. This allows them to use binary search to find the desired value more efficiently.

The algorithms are built in stages:

  • Unit-Length Jobs: For the simpler case where all jobs have unit processing times ($p_j=1$), the authors first develop an algorithm to minimize the number of gaps. This algorithm, ALGA, uses dynamic programming to compute a table $U_{s,k,g}$, representing the maximum completion time of an $(s,k)$-schedule with at most $g$ gaps. This leads to an $O(n^4)$ algorithm for this specific case.
  • Arbitrary-Length Jobs: To handle jobs of arbitrary lengths, the authors extend their approach. They introduce a new table $P_{s,k,g,l}$ and a more complex recurrence relation for $U_{s,k,g}$. This more general algorithm, ALGB, achieves an $O(n^5)$ time complexity.
  • General Energy Cost ($L$): Finally, the paper presents an algorithm, ALGC, that handles the arbitrary energy cost $L$ for waking up the processor. This algorithm leverages the previously computed $U_{s,k,g}$ tables and involves an $O(n^2 \log n)$ post-processing step, leading to an overall $O(n^5)$ solution for arbitrary jobs and $L$, and $O(n^4)$ for unit jobs and $L=1$.

Key algorithmic concepts include:

  • Dynamic Programming: Building solutions from smaller subproblems.
  • Inversion Trick: Reversing the dependency in a dynamic programming function to enable faster computation.
  • Schedule Compression: Techniques (Truncate, ShiftBack) to reduce completion time without increasing gaps, crucial for proving optimality.
  • Frugal Schedules: A specific type of schedule that simplifies analysis and proof of correctness.

Datasets

Not discussed in the paper. The paper focuses on theoretical algorithm design and analysis for a general scheduling problem, rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • The "Inversion Trick" is Powerful: The paper demonstrates how inverting a dynamic programming function can significantly improve algorithmic efficiency, transforming a potentially slower computation into a faster one, especially when the range of one variable is much larger than the other.
  • Minimizing Gaps is Key to Minimizing Energy: The authors show that for $L=1$, minimizing energy is equivalent to minimizing the number of gaps. For general $L$, the problem decomposes into minimizing the cost of large gaps (which is $L$ per gap) and the total length of small gaps.
  • Structure of Optimal Schedules: The paper meticulously analyzes the properties of optimal schedules, introducing concepts like "frugal schedules" and "fixed segments." This structural understanding is crucial for developing the dynamic programming recurrences and proving their correctness.
  • Polynomial Solvability: The paper definitively answers the open question by providing polynomial-time algorithms, demonstrating that this complex energy minimization problem is computationally tractable.

Key Results

  • $O(n^5)$ Algorithm for $1|r_j; pmtn|E$: The paper presents a polynomial-time algorithm for the general minimum energy scheduling problem with arbitrary job lengths and wake-up cost $L$.
  • $O(n^4)$ Algorithm for Unit Jobs: For the special case where all jobs have unit length ($p_j=1$) and $L=1$, an improved $O(n^4)$ algorithm is provided.
  • Theoretical Foundation: The work provides a rigorous theoretical framework for energy-efficient scheduling, solving a problem that had remained open for some time.

Limitations and Future Work

  • Running Time Improvements: While polynomial, the $O(n^5)$ and $O(n^4)$ complexities are high. The authors suggest that faster algorithms, possibly with $O(n \log n)$ running times, might exist.
  • Multiprocessor Scheduling: The paper focuses on a single processor. Extending these results to multiprocessor systems, especially for arbitrary $L$, is a significant open problem.
  • Multiple Power-Down States and Speed Scaling: The paper mentions more complex power management scenarios, such as systems with multiple power-down states or dynamic speed scaling. These are identified as challenging areas for future research.
  • Online Algorithms: The current algorithms are offline (all job information is known in advance). The paper notes that online algorithms for energy minimization are also of significant interest.

Summary updated

BibTeX
@inproceedings{baptiste2007polynomial,
  author = {Philippe Baptiste and Marek Chrobak and Christoph Dürr},
  title = {{Polynomial Time Algorithms for Minimum Energy Scheduling}},
  booktitle = {ESA},
  year = {2007},
  doi = {10.1007/978-3-540-75520-3\_14},
}
Figure