arXiv:2610.26497cs.DSOct 2026

Manuscript Offprint

arXiv:2610.26497

Capacitated Line Aggregation with Maximum Delay

Runtian Ren, Shengcai Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study capacitated line aggregation with per-batch maximum delay. Requests arrive over time at locations on a rooted half-line and are served in instantaneous batches of at most k requests. Each batch pays the distance to its farthest request plus the waiting time of its oldest request. The objective is to minimize the total cost.

We give a deterministic online algorithm with competitive ratio 36+12336 + 12\sqrt{3}. The algorithm uses a Next Fit idea along paths of nested time intervals: it assigns a new group to an existing batch when a path-load test permits, and opens a new batch otherwise. The path load controls both capacity and the cost of opening new batches. Randomizing the common scale improves the expected competitive ratio to (18+63)/ln⁡2(18 + 6\sqrt{3})/\ln 2 against an oblivious adversary. Both guarantees extend to arbitrary indivisible request sizes.

We also study capacitated LAD in the learning-augmented model. Advice revealed at its service times allows (1+ε)(1+\varepsilon)-consistency against every complete feasible advice schedule and O(ε−2)O(\varepsilon^{-2})-robustness. The analysis charges repeated switches to successive decreases in the remaining advice cost.

1 Introduction

Sending an acknowledgment, replenishing several types of goods, and serving requests along a common route all allow several requests to share one service cost. Waiting for more requests can reduce that cost, but also delays the requests already present. This tradeoff has been studied in TCP acknowledgment [12, 33, 18], joint replenishment (JRP) [1, 15, 16, 10, 5], and control-message aggregation [19, 8, 6]. Multi-level aggregation (MLA) extends these problems to rooted trees, with algorithms for additive waiting costs and deadlines [3, 4, 9, 2, 28, 22] and a stochastic-arrival variant [27].

Under per-batch maximum delay, each service pays its service cost plus the waiting time of its oldest request, and the objective sums these costs over all services. Lu et al. [26] study this objective for uncapacitated multi-level aggregation on rooted trees. They obtain optimal competitive ratios of 2 deterministically and e/(e−1)e/(e-1) against an oblivious adversary. We study what happens when a capacity constraint is added, focusing on line aggregation with delay (LAD).

In capacitated LAD, requests arrive at locations on a rooted half-line. Each service completes at most k pending requests and pays the distance to the farthest one, together with their maximum waiting time. Besides choosing when to serve, the algorithm must choose which requests to serve together. Even on a line, these decisions are closely coupled: a distant request can pay for serving nearby requests, but each nearby request occupies a place that a later request might use.

Under additive delay, every pending request contributes to the waiting cost. Under maximum delay, younger requests can join a batch without increasing its waiting cost. This sharing is useful only while the requests fit. If an uncapacitated service is split into several feasible batches, several of them may contain old requests, and each batch pays its own maximum waiting time. Conversely, serving each distance class independently avoids this splitting decision but loses opportunities to share waiting across classes. For LAD, this gives a logarithmic competitive ratio; see Section 3.1 for the algorithm and a matching lower-bound instance.

For LAD, we avoid this logarithmic loss by combining requests across distance classes and obtain a constant-competitive online algorithm. The algorithm assigns requests to future batches through nested time intervals. Its admission rule controls both the capacity of a batch and the cost of opening a new batch when admission fails. Thus capacity does not force the logarithmic loss incurred by independent distance classes.

Our contributions. We obtain the following main results in this paper.

  • For LAD, we give a deterministic online algorithm with competitive ratio 36+123<56.78536 + 12\sqrt{3} < 56.785 for capacity kk. For radii on a fixed scaled dyadic grid, the competitive ratio is 18+6318 + 6\sqrt{3}. A random common scale offset gives an expected competitive ratio of (18+63)/ln⁡2<40.962(18 + 6\sqrt{3})/\ln 2 < 40.962 against an oblivious adversary. Both guarantees extend to arbitrary indivisible request sizes, as described in Section 3.9.

  • We also study capacitated LAD in the learning-augmented model. An algorithm receives advice only when a proposed service is due. We combine this advice with any deterministic R-competitive baseline. For 0<ε≤10 < \varepsilon \leq 1, the resulting algorithm is (1+ε)(1 + \varepsilon)-consistent against every complete feasible advice stream and (32/ε2+72/ε+36)R(32/\varepsilon^2 + 72/\varepsilon + 36)R-robust. Our LAD baseline gives O(ε−2)O(\varepsilon^{-2})-robustness.

At a single location, LAD reduces to capacitated TCP acknowledgment, whose optimal deterministic competitive ratio is two. This special case also gives a randomized lower bound of e/(e−1)e/(e-1) on competitive ratios uniform in capacity. Appendix A gives the fixed-location algorithm and both lower-bound arguments.

Our techniques. Our algorithms address two difficulties: assigning requests to future batches and switching between schedules that have served different requests.

  • A constant-competitive algorithm. We use Next Fit along paths of nested time intervals. A path-load test accounts for group sizes and interval lengths, ensuring capacity and paying for new batches when admission fails. Next Fit prevents descendants from repeatedly charging the same ancestor. Section 3.2 develops the rule and its additive charges through a worked example.

  • Online advice. Switching schedules requires clearing requests that the new schedule may already have served. We separate the service and waiting costs of this clearance. Baseline budgets control service costs; successive decreases in the remaining advice cost pay waiting charges across switches without repeatedly charging an entire advice batch.

References (33)