Abstract: We discuss one of the most fundamental scheduling problem of processing jobs on a single machine to minimize the weighted flow time (weighted response time). Our main result is a $O(\log P)$-competitive algorithm, where $P$ is the maximum-to-minimum processing time ratio, improving upon the $O(\log^{2}P)$-competitive algorithm of Chekuri, Khanna and Zhu (STOC 2001). We also design a $O(\log D)$-competitive algorithm, where $D$ is the maximum-to-minimum density ratio of jobs. Finally, we show how to combine these results with the result of Bansal and Dhamdhere (SODA 2003) to achieve a $O(\log(\min(P,D,W)))$-competitive algorithm (where $W$ is the maximum-to-minimum weight ratio), without knowing $P,D,W$ in advance. As shown by Bansal and Chan (SODA 2009), no constant-competitive algorithm is achievable for this problem.
Introduction
In online scheduling, a single processor receives a stream of tasks (jobs) over time, each with a specific weight (priority) and processing time. The objective is to minimize the weighted flow time: the sum of each job's weight multiplied by the duration it remains in the system. Because future job arrivals are unknown, performance is measured by the "competitive ratio"—the performance gap between the online algorithm and an optimal offline scheduler that possesses full future knowledge.
For nearly two decades, the best-known competitive ratio for this problem was $O(\log^2 P)$. This paper presents a significant theoretical breakthrough, tightening the bound to $O(\log P)$ and introducing a unified algorithm that adapts to various job parameters without prior knowledge.
Methods
The authors achieve this improvement through a refined "binning and scoring" strategy combined with a novel geometric analysis.
Binning and Scoring
Jobs are assigned to bins based on their initial processing times (using powers of 2). Within each bin, jobs are prioritized by weight and then by density (weight divided by processing time).
Previous algorithms typically scored bins based on total weight. Azar and Touitou introduce a dynamic score: the top job in a bin contributes its full weight only if it has significant work remaining. If it is nearly finished, its contribution is halved. This leads to "self-preemption," where a job might be paused simply because its progress has lowered its bin's score, a counter-intuitive behavior that is essential for the $O(\log P)$ bound.
Geometric Analysis
The proof utilizes a geometric interpretation of job volume, treating jobs as rectangular containers of liquid. By analyzing a "horizontal bar" at a specific height $x$, the authors track the "dark gray" volume representing processed work.
As shown in the visualization of Lemma 4.5, the arrival of a new job $J_0$ is managed such that the algorithm maintains at least as much processed volume as the optimal offline scheduler, ensuring the competitive ratio remains bounded.
Key Insights and Results
- Breaking the $O(\log^2 P)$ Barrier: Refining the bin scoring function removed a logarithmic factor that had persisted since 2001.
- Density and Parameter Agnosticism: The paper introduces the first $O(\log D)$ algorithm (where $D$ is the density ratio) and a combined algorithm that achieves $O(\log(\min(P, D, W)))$ competitiveness. This combined approach is "parameter agnostic," meaning it adapts to the workload on the fly without knowing the range of weights or processing times in advance.
- Theoretical Optimality: Since constant competitiveness is mathematically impossible for this problem, these logarithmic results represent the near-theoretical limit for online performance.
Limitations and Future Work
While this work marks a major advancement for single-machine scheduling, several challenges remain. The problem becomes significantly more complex in multi-machine environments, where lower bounds are polynomial rather than logarithmic. Additionally, this algorithm is "clairvoyant," requiring knowledge of a job's processing time upon arrival. Developing similarly tight bounds for non-clairvoyant systems remains an open area for research.
Summary updated