Abstract
Motivated by the cloud computing paradigm, and by key optimization problems in all-optical networks, we study two variants of the classic job interval scheduling problem, where a reusable resource is allocated to competing job intervals in a flexible manner. Each job, $J_i$, requires the use of up to $r_{max}(i)$ units of the resource, with a profit of $p_i \geq 1$ accrued for each allocated unit. The goal is to feasibly schedule a subset of the jobs so as to maximize the total profit. The resource can be allocated either in contiguous or non-contiguous blocks. These problems can be viewed as flexible variants of the well known storage allocation and bandwidth allocation problems. We show that the contiguous version is strongly NP-hard, already for instances where all jobs have the same profit and the same maximum resource requirement. For such instances, we derive the best possible positive result, namely, a polynomial time approximation scheme. We further show that the contiguous variant admits a $(\frac{5}{4} + \varepsilon)$-approximation algorithm, for any fixed $\varepsilon > 0$, on instances whose job intervals form a proper interval graph. At the heart of the algorithm lies a non-standard parameterization of the approximation ratio itself, which is of independent interest. For the non-contiguous case, we uncover an interesting relation to the paging problem that leads to a simple $O(n \log n)$ algorithm for uniform profit instances of n jobs. The algorithm is easy to implement and is thus practical.
Introduction
In traditional job interval scheduling, a job $J_i$ typically demands a fixed amount of a resource for a specific duration. If the resource is unavailable, the job is rejected entirely. However, modern infrastructure—specifically cloud computing environments and flexgrid all-optical networks—allows for more nuanced resource management. In these settings, a Virtual Machine (VM) might scale its CPU or RAM usage, or a network connection might adjust its bandwidth based on availability.
This paper formalizes these scenarios as "flexible" interval scheduling problems. In this model, each job $J_i$ has a maximum requirement $r_{max}(i)$, but can accept any allocation $r_i \in [0, r_{max}(i)]$. The profit earned is proportional to the allocation: $p_i \times r_i$. The objective is to maximize the total profit across all scheduled jobs within a total resource capacity $W$.
Problem Variants: FBAP vs. FSAP
The authors distinguish between two primary resource allocation constraints:
- Flexible Bandwidth Allocation Problem (FBAP): The resource can be allocated in non-contiguous "chunks." This is common in packet-switched networks or distributed computing where data or tasks can be fragmented.
- Flexible Storage Allocation Problem (FSAP): The resource must be allocated as a single contiguous block. This mirrors memory allocation in computer systems (the Storage Allocation Problem) or contiguous frequency slots in optical networking.
The Paging Analogy for FBAP
One of the paper's most elegant contributions is the discovery of a mathematical link between non-contiguous bandwidth allocation and the classic offline paging problem.
In the paging problem, one must manage a cache of size $k$ to minimize page faults. The authors demonstrate that if we treat available resource units as "slots" in a cache and job intervals as requests for specific pages, the scheduling problem can be solved optimally using an adaptation of Belady’s Algorithm. Belady’s rule—evicting the page requested furthest in the future—is transformed into a rule for selecting which jobs to "evict" from the resource allocation to make room for new intervals. This reduction results in a highly efficient $O(n \log n)$ algorithm for uniform profit instances, providing a practical and optimal solution for FBAP.
The Complexity of Contiguity (FSAP)
While FBAP yields to efficient algorithms, the requirement for contiguity in FSAP introduces significant complexity. The authors prove that FSAP is strongly NP-hard, even under highly restrictive conditions: when all jobs have identical profits and identical maximum resource requirements ($r_{max}$). This hardness is established via a reduction from the 3-Exact-Cover problem.
To address this hardness, the authors develop several approximation strategies:
- Polynomial Time Approximation Scheme (PTAS): For uniform instances (where all $r_{max}$ and $p_i$ are equal), the authors use a dynamic programming approach. By partitioning the resource capacity into discrete "strips," they can find a near-optimal packing in polynomial time.
- Proper Interval Graphs: On proper interval graphs—where no job interval is entirely contained within another—the authors achieve a $(\frac{5}{4} + \varepsilon)$-approximation. This is achieved through a non-standard parameterization of the Linear Programming (LP) relaxation. By "guessing" the contribution of "wide" jobs (those requiring a large portion of $W$), the algorithm can more effectively round the LP solution.
- Practical Bounds: For general cases, the paper presents a $\frac{2k}{2k-1}$-approximation, where $k$ represents the ratio of total capacity to the maximum job requirement ($W/r_{max}$).
Key Insights and Results
- Algorithmic Efficiency: The $O(n \log n)$ result for FBAP significantly improves upon previous techniques that relied on more cumbersome flow-based models.
- Structural Hardness: The proof that FSAP is hard even for $r_{max} = 3$ clarifies the boundary between tractable and intractable scheduling problems.
- Flexible Profit Models: By allowing partial allocations, the model provides a more realistic framework for cloud providers who wish to maximize utilization rather than just job counts.
Conclusion and Future Work
This research bridges the gap between theoretical interval scheduling and the practical needs of modern cloud and optical network providers. While the non-contiguous case is now well-understood through the paging analogy, the contiguous case (FSAP) remains a fertile ground for research. Specifically, improving the approximation ratios for general (non-proper) interval graphs and extending the model to handle time-varying resource capacities are identified as key areas for future exploration.
Summary updated