Abstract
This paper addresses the online scheduling problem on a single machine where jobs have bounded processing times. The objective is to maximize the total weight of completed jobs (throughput) under preemption with resume. We establish tight bounds for deterministic algorithms, proving a competitive ratio of $\Theta(k / \log k)$ for jobs with maximum length $k$. Furthermore, we present a 5-competitive algorithm for the special case of identical job lengths and an $O(\log k)$-competitive randomized algorithm for the general bounded length case.
Introduction
The problem of online scheduling to maximize throughput is central to many real-time systems and network protocols. A prominent application is found in the integration of ATM and TCP/IP networks, where variable-length IP packets are fragmented into fixed-size ATM cells. If a packet is not fully transmitted by its deadline, it becomes useless, necessitating a scheduling strategy that maximizes the weight of fully completed packets.
In this model, jobs arrive online with specific weights $w_j$, processing times $p_j$, and deadlines $d_j$. We consider the setting where preemption with resume is permitted. While the general version of this problem has an unbounded competitive ratio, we focus on the scenario where job lengths are bounded by a constant $k$ ($p_j \le k$).
The General Charging Scheme
A core contribution of this work is a novel charging scheme used to bound the performance of online algorithms against an optimal offline adversary. The weight of every job completed by the adversary is "charged" to jobs completed by the online algorithm (ALG). These charges are categorized into three types based on the relationship between the adversary's job and the algorithm's state:
- Type 1 Charge: The adversary completes a job $j$ that was also completed by ALG.
- Type 2 Charge: The adversary completes a job $j$ that ALG did not complete, but ALG was busy with another job $i$ that had sufficient "capacity" relative to $j$.
- Type 3 Charge: The adversary completes a job $j$ that ALG dropped or never started because it was busy with other jobs during $j$'s critical time interval.
By analyzing the total weight accumulated through these charges, we can derive upper bounds for a broad class of monotone and valid algorithms.
Key Algorithms and Results
Deterministic Bounded Length
For jobs with $p_j \le k$, we prove that the optimal deterministic competitive ratio is $\Theta(k / \log k)$. We introduce the Exponential Capacity Algorithm, which prioritizes jobs based on an exponential function of their remaining processing time. This approach outperforms standard heuristics like the Smith Ratio (weight/length) in this context.
Identical Processing Times
When all jobs have the same length ($p_j = k$), we provide a 5-competitive deterministic algorithm. We also improve the lower bound for any deterministic algorithm in this setting to 2.598, narrowing the gap from previous results.
Randomized and Unit Weight Cases
We develop an $O(\log k)$-competitive randomized algorithm using a "classify and randomly select" paradigm. This significantly improves upon the deterministic lower bound. For the unit weight case ($w_j = 1$), we provide a concise proof that the Shortest Remaining Processing Time First (SRPT) algorithm is $2H_k$-competitive, where $H_k$ is the $k$-th harmonic number.
Conclusion and Future Work
This research settles the deterministic competitive ratio for bounded length online scheduling and provides strong results for identical lengths and randomized settings. Future work includes closing the gap between the 2.598 lower bound and 5-competitive upper bound for identical lengths, and further refining randomized lower bounds, which currently stand at $\Omega(\sqrt{\log k / \log \log k})$.
Summary updated