betaFeedback

WorksComputer Science

Improved Bounds for Online TSP on the Half-Line

Abstract

In the open online traveling salesperson problem, requests appear over time at different positions of a metric space. A single agent traveling at unit speed must serve all requests, by visiting their positions, with the objective of minimizing the completion time. We propose online algorithms for this problem for the case that the metric space is the half-line. First, we present a 22-competitive algorithm in which the server always either moves at unit speed or remains stationary, which improves on the previously best-known ratio of 2.042.04. We further observe that algorithms must sometimes move slower than unit speed to achieve competitive ratios below 22. We introduce a second algorithm that beats the barrier of 22 by carefully modulating its speed, and prove a tight bound of 1.751.75 on its competitive ratio. Finally, we slightly strengthen a known lower bound on the best-possible competitive ratio on the half-line from 1.6271.627 to 1.6461.646.

Introduction

We study the online traveling salesperson problem (TSP) on the half-line. In this problem, requests of the form r=(t,p)r=(t,p) are revealed over time, where t∈R≥0t \in\mathbb{R}_{\ge0} denotes the release time and p∈R≥0p \in\mathbb{R}_{\ge0} the position of the request. A single server, initially located at the origin and moving at speed at most 1, must serve every request by visiting position pp at some time not earlier than time tt. In the online setting, the algorithm only learns about a request at its release time, whereas an offline algorithm knows the entire request sequence from time 0. The objective is to minimize the makespan, i.e., the time when all requests are served. Note that the offline setting does not coincide with the classical TSP, as the offline algorithm is still restricted to serving a request after its release time. Furthermore, we consider the open version of the problem, where, in contrast to the closed version, the server does not need to return to the origin.

Online TSP models dynamic routing scenarios arising, for instance, in robotic maintenance, cleaning, or collection tasks where jobs appear over time. In many such settings, the depot lies at the boundary of a one-dimensional operating region, such as inspection along a track, pipeline, or corridor, so that the underlying metric space is the half-line, making it a natural case to study. While the online TSP has been extensively studied in many variants [3, 4, 5, 13, 19, 20, 21, 26], in particular for the underlying metric space being the real line R\mathbb{R} or higher-dimensional Euclidean spaces Rn\mathbb{R}^n, we focus here on algorithms tailored specifically to the half-line R≥0\mathbb{R}_{\ge0}. Although this setting appears simple at first glance, obtaining optimal strategies turns out to be surprisingly challenging. The half-line has fundamentally different structural properties due to the lack of symmetry around the origin, and it seems that optimal strategies cannot be obtained by simple adaptations of known algorithms. For instance, we will see that, unlike any algorithm previously proposed for online TSP, an optimal online strategy on the half-line must already start moving before the first request is revealed.

As usual in online optimization, we measure the quality of a (deterministic) algorithm in terms of competitive analysis. For an algorithm Alg and a request sequence σ\sigma, let Alg⁡(σ)\operatorname{Alg}(\sigma) denote the completion time of Alg on σ\sigma, and let Opt⁡(σ)\operatorname{Opt}(\sigma) denote the completion time of an optimal offline solution. We say that Alg is ρ\rho-competitive if Alg⁡(σ)≤ρOpt⁡(σ)\operatorname{Alg}(\sigma) \le\rho\operatorname{Opt}(\sigma) for every request sequence σ\sigma. The competitive ratio of Alg is the infimum over all such ρ\rho, and the competitive ratio of the problem is the best ratio achievable by any online algorithm.

Throughout the paper, we assume without loss of generality that every request r=(t,p)r = (t,p) satisfies t≥pt \ge p. Indeed, since the server moves at speed at most 1, even the offline optimum cannot reach position pp before time pp, and is therefore unaffected by this assumption. Moreover, an online algorithm could only benefit from learning about a request earlier. Hence, this assumption is justified when the request sequence is constructed adversarially and does not affect the competitive ratio of the problem.

Finally, we introduce the following notational conventions. Given an online algorithm Alg, we write pos⁡(t)∈R≥0\operatorname{pos}(t) \in\mathbb{R}_{\ge0} for the position of the server at time tt. For a request sequence σ\sigma, we sometimes abbreviate the completion times Alg⁡(σ)\operatorname{Alg}(\sigma) and Opt⁡(σ)\operatorname{Opt}(\sigma) by Alg and Opt when the sequence is clear from context. At any point in time, the server can move in (at most) two directions. We refer to the direction towards the origin as left and to the direction away from the origin as right.

Our results. We begin by introducing the algorithm LeftFirst (cf. Algorithm 1), which follows a very simple strategy: it prioritizes requests that lie to the server’s left over those to its right. We show that this algorithm achieves a competitive ratio of 2, improving on the previously best-known ratio of 2.04 [12]. We further observe that no algorithm restricted to moving either at full speed or not at all can achieve a better competitive ratio.

Theorem 1. The algorithm LeftFirst is 2-competitive for online TSP on the half-line. Moreover, this ratio is optimal among all algorithms in which the server is restricted to speeds 0 and 1.

In particular, the theorem shows that fundamentally new ideas are required to beat the barrier of 2. Our main contribution is to propose such an idea in the form of a parameterized algorithm LeftGuard(α\alpha) for α∈(0,1]\alpha\in(0,1] (cf. Algorithm 2). Its strategy can be summarized as follows. The algorithm maintains at all times that pos⁡(t)≤αt\operatorname{pos}(t) \le\alpha t, enabling the server to reach requests to its left in a timely manner. It assigns strict deadlines to such requests and prioritizes requests to its right if and only if these deadlines can still be met. Our main result is a careful analysis of this algorithm. We show that, for α=0.75\alpha= 0.75, it achieves a competitive ratio of 1.75. After identifying the most difficult instances for LeftGuard, a key ingredient of our proof is an LP-duality argument that yields sharp performance bounds. Moreover, we prove that this analysis is tight in the sense that LeftGuard(α\alpha) has competitive ratio at least 1.75 for every choice of α\alpha.

Theorem 2. LeftGuard(0.75) is 1.75-competitive for open online TSP on the half-line. Moreover, the choice α=0.75\alpha= 0.75 is optimal.

We complement our result with a general lower bound on the best-possible competitive ratio that slightly improves the known lower bound of 1.627 [27].

Theorem 3. Every algorithm for open online TSP on the half-line has competitive ratio at least 1.6463.

Related work While this is, to the best of our knowledge, the first work to specifically focus on open online TSP on the half-line, the problem has been studied before on other metric spaces. Most notably, Bjelde et al. tightly analyzed the problem on the line with a competitive ratio of 2.04 [12]. Their upper bound also applies to the special case of the half-line and, prior to our work, was the best-known upper bound in this setting. Their lower bound extends to general metric spaces and remains the best-known lower bound there. The best-known algorithm for general metric spaces, introduced by Bonifaci and Stougie, achieves a competitive ratio of 1+2≈2.411 + \sqrt{2} \approx2.41 [14].

By contrast, the closed version of the problem has been tightly analyzed in all three cases: It has a competitive ratio of 2 on general metric spaces [5], of 1.64 on the line [5, 12] and of 1.5 on the half-line [13]. The optimal algorithm for the closed version on the half-line follows a strategy that can be viewed as the “opposite” of our algorithm LeftFirst: That algorithm moves right whenever a request to the server’s right is available and otherwise moves left.

Online TSP has also been investigated in several related settings, for instance when the metric space is a circle [21], when distances are asymmetric [3], or when the request sequence satisfies additional structural assumptions [13, 26].

The online TSP can be viewed as a special case of the extensively studied online dial-a-ride problem [2, 8, 10, 11, 18, 25, 27], where each request is a transportation request consisting of a release time, a starting position, and a destination. In other words, the online TSP corresponds to the special case of online dial-a-ride in which starting position and destination always coincide. Classical online dial-a-ride strategies include Ignore, which repeatedly recomputes a schedule for the currently unserved requests [9, 24]; Replan, which greedily recomputes an optimal tour whenever a new request arrives [5, 9, 24]; and Lazy, which deliberately delays service to aggregate requests before executing a tour [8, 27].

Other online variants of the TSP focus on different types of uncertainty. In online graph exploration [6, 16, 17, 23], the metric space is initially unknown and all vertices must be visited. In universal TSP [15, 22], the goal is to find a fixed master tour that is competitive for any subset of active requests. Recently, Abrahamsen et al. [1] introduced a model where requests are revealed one by one and must be irrevocably sorted to minimize total travel distance, rather than minimizing the makespan for requests arriving over time.

Warm-up: moving at speed 1 or 0

Before considering the problem in full generality, we first consider the easier case where the server is only allowed to move at full speed or not move at all. We first observe a simple lower bound on the competitive ratio of this variant of the problem.

Lemma 4. If the server is only allowed to move at speed 1 or 0, the competitive ratio of open online TSP on the half-line is at least 2. The same lower bound applies when the server is not allowed to move before the first request is revealed.

Proof. Fix an algorithm Alg in which the server can move only at speed 0 or 1. Then there exists some time ε>0\varepsilon> 0 such that, before time ε\varepsilon, the server has not changed its speed. Hence pos⁡(ε)∈{0,ε}\operatorname{pos}(\varepsilon) \in\{0,\varepsilon\}. If pos⁡(ε)=0\operatorname{pos}(\varepsilon) = 0, we release the request r=(ε,ε)r = (\varepsilon,\varepsilon), and if pos⁡(ε)=ε\operatorname{pos}(\varepsilon) = \varepsilon, we release the request r′=(ε,0)r' = (\varepsilon,0). In both cases, we have OPT =ε= \varepsilon, but have Alg not complete the request before time 2ε2\varepsilon. Therefore, the competitive ratio is at least 2. Observe that even if the server is allowed to move at intermediate speeds, as long as it does not move before the first request is revealed, the same argument still applies.

Next, we give an algorithm whose competitive ratio matches this lower bound.

Algorithm 1: LeftFirst
if there is a left-request:
    MoveLeft
else
    if there is a right-request:
        MoveRight
    else
        Stay

A 2-competitive algorithm

When considering algorithms for online TSP on the half-line (or even on the line), observe that, at any point in time, the algorithm only needs to consider at most two requests: the request with the leftmost position among all unserved requests to the algorithm’s left (referred to as the left-request) and the request with the rightmost position among all unserved requests to the algorithm’s right (referred to as the right-request). At some times, there may be no left-request or no right-request. This is the case when all unserved requests lie on the same side of the server. If there are multiple requests at the same position, we select the one with the latest release time. By serving the left- and right-request, the algorithm necessarily also serves all other requests on the way. In our analysis, we therefore consider only left- and right-requests. The online algorithm is thus defined by a strategy that determines when to serve the left-request, when to serve the right-request, and when to wait.

The algorithm LeftFirst is formally defined in Algorithm 1 and follows a simple strategy: It prioritizes left-requests over right-requests. More precisely, whenever a left-request is available, the server executes command MoveLeft, i.e., travels towards the origin at full speed (note that MoveLeft is never invoked when the server is located at the origin). If no left-request is available but a right-request exists, the server executes command MoveRight, i.e., it moves away from the origin at full speed. If there are no unserved requests, the server follows command Stay, i.e., remains stationary.

Before turning to the analysis of the algorithm, we state a simple observation that will be useful throughout our paper. Since the offline optimum cannot serve requests before they are released, the following holds.

Observation 5. If tt is the release time of any request of the input sequence, then Opt≥t\mathrm{Opt} \ge t.

Now we have all the prerequisites at hand to analyze the algorithm LeftFirst.

Theorem 6. LeftFirst is 2-competitive.

Proof. Fix an arbitrary request sequence. Let r=(t,p)r = (t,p) denote the last request served by LeftFirst. First, observe that, if rr is a left-request, we have

LeftFirst≤t+(pos⁡(t)−p)≤t+pos⁡(t)≤2t≤Obs. 52Opt,\mathrm{LeftFirst} \le t + (\operatorname{pos}(t) - p) \le t + \operatorname{pos}(t) \le2t \overset{\text{Obs. 5}}{\le} 2\mathrm{Opt},

where we have made use of the fact that pos⁡(t)≤t\operatorname{pos}(t) \le t since the server cannot move at speed more than 1. Therefore, we can assume from now on that rr is a right-request.

Next, observe that, if the server does not move left after time tt, we have

LeftFirst≤t+(p−pos⁡(t))≤t+p≤2t≤Obs. 52Opt,\mathrm{LeftFirst} \le t + (p - \operatorname{pos}(t)) \le t + p \le2t \overset{\text{Obs. 5}}{\le} 2\mathrm{Opt},

where we have used the assumption that every request fulfills t≥pt \ge p. Therefore, we can assume from now on that there was an unserved left-request after time tt and let rL=(tL,pL)r_L=(t_L,p_L) denote the last left-request served by LeftFirst. Observe that we have

LeftFirst⁡≤tL+(pos⁡(tL)−pL)+(p−pL).(1)\operatorname{LeftFirst} \le t_L + (\operatorname{pos}(t_L)-p_L) + (p-p_L). \tag*{(1)}

We now distinguish the following two cases: (1) the offline optimum serves rLr_L before rr, or (2) the offline optimum serves rr before rLr_L. In the first case, we have

Opt⁡≥tL+(p−pL).(2)\operatorname{Opt} \ge t_L + (p-p_L). \tag*{(2)}

With (1) and (2), we obtain

LeftFirst⁡≤tL+(pos⁡(tL)−pL)+(p−pL)=tL+p−pL⏟≤Opt⁡+pos⁡(tL)⏟≤tL≤Opt⁡−pL⏟≥0≤2Opt⁡.\operatorname{LeftFirst} \le t_L + (\operatorname{pos}(t_L)-p_L) + (p-p_L) = \underbrace{t_L+p-p_L}_{\le\operatorname{Opt}} + \underbrace{\operatorname{pos}(t_L)}_{\le t_L\le\operatorname{Opt}} - \underbrace{p_L}_{\ge0} \le2\operatorname{Opt}.

In the second case, i.e., where Opt serves rr before rLr_L, we have

Opt⁡≥t+(p−pL).(3)\operatorname{Opt} \ge t + (p-p_L). \tag*{(3)}

Moreover, observe that we have pos⁡(tL)≤t\operatorname{pos}(t_L) \le t because either t≥tL≥pos⁡(tL)t \ge t_L \ge\operatorname{pos}(t_L) or tL≥tt_L \ge t and therefore r=(t,p)r=(t,p) was an unserved right-request at time tLt_L. With (1) and (3), we obtain

LeftFirst⁡≤tL+pos⁡(tL)⏟≤t−pL⏟≥0+p−pL≤tL⏟≤Opt⁡+t+p−pL≤2Opt⁡.\operatorname{LeftFirst} \le t_L + \underbrace{\operatorname{pos}(t_L)}_{\le t} - \underbrace{p_L}_{\ge0} + p-p_L \le\underbrace{t_L}_{\le\operatorname{Opt}} + t+p-p_L \le2\operatorname{Opt}.

To summarize, we have in either case that LeftFirst⁡≤2Opt⁡\operatorname{LeftFirst} \le2\operatorname{Opt}, which completes the proof of the theorem. □

Note that Theorem 6 and Lemma 4 together complete the proof of Theorem 1.

Improved algorithm for open online TSP on the half-line

In this section, we prove our main result (Theorem 2), i.e., we prove that the competitive ratio of open online TSP on the half-line is at most 1.75. For this, we begin by introducing the algorithm LeftGuard.

The algorithm LeftGuard

The algorithm LeftGuard is formally defined in Algorithm 2. It is parameterized by a value α∈(0,1]\alpha\in(0,1] and we let tt denote the current time. Its intuition can be summarized as follows: First, recall that no algorithm is better than 2-competitive if the server does not move while being idle (Lemma 4), so we let the server move at speed α\alpha before the first request is revealed. As before, we always consider at most two requests: the left-request and the right-request. The most important property of our algorithm is that every left-request rL=(tL,pL)r_L=(t_L,p_L) has a strict deadline, meaning that it must be served no later than at time (1+α)tL(1+\alpha)t_L. To make this possible, the server maintains at every time tt that pos⁡(t)≤αt\operatorname{pos}(t) \le\alpha t. Therefore, whenever a new left-request rL=(tL,pL)r_L=(t_L,p_L) appears, the server is located at pos⁡(tL)≤αtL\operatorname{pos}(t_L) \le\alpha t_L so that, by moving left immediately, position pL≥0p_L \ge0 can be reached by time (1+α)tL(1+\alpha)t_L. However, if the server can serve a right-request without violating the deadlines of left-requests, it proceeds to do so. Note that a right-request rR=(tR,pR)r_R=(t_R,p_R) can be reached by time max⁡{t+pR−pos⁡(t),pRα}\max\{t+p_R-\operatorname{pos}(t),\frac{p_R}{\alpha}\}, where the first term corresponds to moving from pos⁡(t)\operatorname{pos}(t) to pRp_R at unit speed, and the second term is the arrival time at pRp_R in case pos⁡(t)≤αt\operatorname{pos}(t) \le\alpha t becomes tight. Therefore, the server prioritizes a right-request over a left-request if and only if max⁡{t+pR−pos⁡(t),pRα}+pR−pL≤(1+α)tL\max\{t+p_R-\operatorname{pos}(t),\frac{p_R}{\alpha}\}+p_R-p_L \le(1+\alpha)t_L.

Algorithm 2: LeftGuard($\alpha$)
if there is a left-request $r_L=(t_L,p_L)$:
    if there is a right-request $r_R=(t_R,p_R)$ with
        $\max\{t+p_R-\operatorname{pos}(t),\frac{p_R}{\alpha}\}+p_R-p_L\le(1+\alpha)t_L$:
            MoveRight($\alpha$)
    else
        MoveLeft
else
    MoveRight($\alpha$)
Algorithm: MoveRight($\alpha$)
if $\operatorname{pos}(t)<\alpha t$:
    move right at speed 1
else
    move right at speed $\alpha$
Algorithm: MoveLeft
move left at speed 1

The algorithm definition contains the subroutines MoveLeft and MoveRight(α\alpha). When MoveLeft is invoked, it simply orders the server to move towards the origin at unit speed (observe that MoveLeft is never invoked when the server is located at the origin). MoveRight(α\alpha) depends on the parameter α\alpha and orders the server to move away from the origin at full speed while maintaining that pos⁡(t)≤αt\operatorname{pos}(t)\le\alpha t. In other words, the server moves at speed 1 as long as pos⁡(t)<αt\operatorname{pos}(t)<\alpha t and at speed α\alpha when pos⁡(t)=αt\operatorname{pos}(t)=\alpha t. In particular, the server always moves either at speed 1 or at speed α\alpha. When it moves at speed α\alpha, we say that it slows down.

Let us summarize the most important properties that immediately follow from the algorithm’s definition.

Observation 7. LeftGuard(α\alpha) fulfills the following properties.

i) At every time tt, the server position fulfills pos⁡(t)≤αt\operatorname{pos}(t)\le\alpha t.

ii) Every left-request rL=(tL,pL)r_L=(t_L,p_L) is served no later than at time (1+α)tL(1+\alpha)t_L, unless a new left-request appeared before time (1+α)tL(1+\alpha)t_L.

iii) Every right-request rR=(tR,pR)r_R=(t_R,p_R) is served no earlier than at time pR/αp_R/\alpha. Moreover, if the server is slowed down (i.e., moving at speed α\alpha) at the time of serving rRr_R, it is served precisely at time pR/αp_R/\alpha.

Upper bound for the competitive ratio of LeftGuard

We now turn to analyzing the algorithm LeftGuard. More precisely, we show the following.

Theorem 8. For α∈(0.3,1]\alpha\in(0.3,1], the competitive ratio of LeftGuard(α\alpha) is upper-bounded by

max⁡{1+α,1/α,2.5−α,1+1/(2α)}.\max\{1+\alpha,1/\alpha,2.5-\alpha,1+1/(2\alpha)\}.

Note that, by setting α=0.75\alpha=0.75, we obtain a competitive ratio of 1.75 (cf. Figure 1), i.e., the statement of the first part of Theorem 2 follows.

Bounds on the competitive ratio as a function of $\alpha$

Figure 1. Bounds on the competitive ratio from Theorem 8 as a function of α\alpha.

We now prove Theorem 8. To this end, for the remainder of this subsection, we fix an arbitrary input sequence of requests, and we show that LeftGuard(α\alpha) achieves the claimed ratio on this sequence. We denote by Opt an optimum offline solution, or its completion time, depending on context. We denote the last right-request served by LeftGuard(α\alpha) by rR=(tR,pR)r_R=(t_R,p_R), and the last left-request served by LeftGuard(α\alpha) by rL=(tL,pL)r_L=(t_L,p_L). In case there is no left-request, Observations 5 and 7 iii) immediately bound the competitive ratio by 1/α1/\alpha, and in case there is no right-request, Observations 5 and 7 ii) bound it by 1+α1+\alpha. Similarly, we immediately obtain the desired bounds in the following two cases.

Observation 9. If one of the following conditions holds, then LeftGuard(α\alpha) completes the request sequence by max⁡{1+α,1/α}Opt⁡\max\{1+\alpha,1/\alpha\}\operatorname{Opt}:

i) LeftGuard(α\alpha) serves rLr_L after rRr_R.

  • ii) LeftGuard(α\alpha) serves rRr_R while moving at speed α\alpha.

Therefore, we assume from now on that rLr_L and rRr_R both exist, and that the server first served rLr_L and then moved at full speed to rRr_R. Next, we identify two further simple cases within these assumptions.

Lemma 10. Assume that LeftGuard(α\alpha) serves rLr_L before rRr_R and always moves at unit speed after serving rLr_L. If one of the following two conditions holds, the request sequence is completed by time (1+α)Opt⁡(1+\alpha)\operatorname{Opt}.

i) Opt⁡\operatorname{Opt} serves rLr_L before rRr_R.

ii) tL≤tRt_L \le t_R.

Proof. In both cases, Opt⁡\operatorname{Opt} serves neither of rL,rRr_L,r_R earlier than at time tLt_L, and then travels to the other request, which takes pR−pLp_R-p_L time units. Therefore,

Opt⁡≥tL+pR−pL.(4)\operatorname{Opt} \ge t_L+p_R-p_L. \tag*{(4)}

By assumption, LeftGuard first serves rLr_L and then moves at full speed to pRp_R. By Observation 7 ii), rLr_L is reached no later than (1+α)tL(1+\alpha)t_L and then moving to rRr_R takes pR−pLp_R-p_L time units. It follows that the request sequence is completed by time

(1+α)tL+pR−pL=tL+pR−pL+αtL≤Opt⁡+αtL≤Obs. 5(1+α)Opt⁡.(1+\alpha)t_L+p_R-p_L=t_L+p_R-p_L+\alpha t_L \le\operatorname{Opt}+\alpha t_L \mathrel{\le}^{\text{Obs. 5}} (1+\alpha)\operatorname{Opt}.

The remaining case turns out to be the most difficult to analyze and constitutes the crux of our proof. While the two previous results hold for any α∈(0,1]\alpha\in(0,1], we need in the following lemma that α≥0.3\alpha\ge0.3. This is a reasonable assumption, since for α≤0.3\alpha\le0.3, the bound 1/α1/\alpha from Observation 9 is already significantly worse than the bound of 2 achieved by LeftFirst.

Lemma 11. Let α≥0.3\alpha\ge0.3. Assume that LeftGuard(α\alpha) serves rLr_L before rRr_R and always moves at unit speed after serving rLr_L. Additionally, assume that tL>tRt_L>t_R and Opt⁡\operatorname{Opt} serves rRr_R before rLr_L. Then LeftGuard(α\alpha) completes the request sequence by time max⁡(2.5−α,1+1/(2α))Opt⁡\max(2.5-\alpha,1+1/(2\alpha))\operatorname{Opt}.

Proof. First, observe that in the given setting, when rLr_L appeared at time tLt_L, the server decided not to detour to serve rRr_R before rLr_L. In other words, at time tLt_L, the condition in line 2 of Algorithm 2 was violated, i.e., we have

max⁡{tL+pR−pos⁡(tL),pRα}+(pR−pL)>(1+α)tL.(5)\max\left\{t_L+p_R-\operatorname{pos}(t_L),\frac{p_R}{\alpha}\right\}+(p_R-p_L)>(1+\alpha)t_L. \tag*{(5)}

Further, note that the completion time of LeftGuard(α)\mathrm{LeftGuard}(\alpha) is given by

LeftGuard(α)≤tL+(pos⁡(tL)−pL)+(pR−pL)=tL+pos⁡(tL)+pR−2pL(6)\mathrm{LeftGuard}(\alpha) \le t_L + \left(\operatorname{pos}(t_L)-p_L\right) + \left(p_R-p_L\right) = t_L + \operatorname{pos}(t_L) + p_R - 2p_L \tag*{(6)}

and the completion time of the offline optimum is bounded by

Opt≥tR+pR−pL.(7)\mathrm{Opt} \ge t_R + p_R - p_L. \tag*{(7)}

Next, we will make use of the following observation: The behavior of LeftGuard\mathrm{LeftGuard} is invariant under multiplying all release times and positions by the same factor x>0x>0. In particular, this allows us to assume w.l.o.g. that Opt=1\mathrm{Opt}=1 by rescaling by 1/Opt1/\mathrm{Opt} (if Opt=0\mathrm{Opt}=0, then Alg=0\mathrm{Alg}=0 is trivial). Summarizing our findings, it follows that the competitive ratio is bounded by the maximum value of the following optimization problem (here, Alg\mathrm{Alg}, Opt\mathrm{Opt}, tRt_R, tLt_L, pRp_R, pLp_L, pos⁡(tL)\operatorname{pos}(t_L) are interpreted as variables of the optimization problem):

max⁡Algs.t.Opt≥tL(xref‘Observation 5‘)Opt≥tR+pR−pL(xref‘(7)‘)Alg≤tL+pos⁡(tL)+pR−2pL(xref‘(6)‘)max⁡(tL+pR−pos⁡(tL),pR/α)+pR−pL≥(1+α)tL(xref‘(5)‘, relaxed)pos⁡(tL)≤pR(rR is a right-request)tR≥pR(by assumption)Opt=1(scaling)Alg,Opt,tR,tL,pR,pL,pos⁡(tL)≥0.\begin{aligned} \max\quad&\mathrm{Alg}\\ \text{s.t.}\quad&\mathrm{Opt}\ge t_L &&\text{({xref}`Observation 5`)}\\ &\mathrm{Opt}\ge t_R+p_R-p_L &&\text{({xref}`(7)`)}\\ &\mathrm{Alg}\le t_L+\operatorname{pos}(t_L)+p_R-2p_L &&\text{({xref}`(6)`)}\\ &\max\left(t_L+p_R-\operatorname{pos}(t_L),p_R/\alpha\right)+p_R-p_L\ge(1+\alpha)t_L &&\text{({xref}`(5)`, relaxed)}\\ &\operatorname{pos}(t_L)\le p_R &&(r_R\text{ is a right-request})\\ &t_R\ge p_R &&(\text{by assumption})\\ &\mathrm{Opt}=1 &&(\text{scaling})\\ &\mathrm{Alg},\mathrm{Opt},t_R,t_L,p_R,p_L,\operatorname{pos}(t_L)\ge0. \end{aligned}

Observe that the problem is not linear due to the maximum in (5). Therefore, we now distinguish the two cases tL+pR−pos⁡(tL)≥pR/αt_L+p_R-\operatorname{pos}(t_L)\ge p_R/\alpha and tL+pR−pos⁡(tL)<pR/αt_L+p_R-\operatorname{pos}(t_L)<p_R/\alpha. For each of the two cases, we obtain a linear program, which allows us to use duality. In the end, the competitive ratio will be bounded by the maximum of the two values of the optimization problems.

First, we consider the case tL+pR−pos⁡(tL)≥pR/αt_L+p_R-\operatorname{pos}(t_L)\ge p_R/\alpha. Here, we obtain the following LP, where it turns out that the condition pos⁡(tL)≤pR\operatorname{pos}(t_L)\le p_R can be dropped.

max⁡Algs.t.Opt≥tL(xref‘Observation 5‘)Opt≥tR+pR−pL(xref‘(7)‘)Alg≤tL+pos⁡(tL)+pR−2pL(xref‘(6)‘)tL+pR−pos⁡(tL)+pR−pL≥(1+α)tL(xref‘(5)‘, relaxed)tR≥pR(by assumption)Opt=1(scaling)Alg,Opt,tR,tL,pR,pL,pos⁡(tL)≥0.\begin{aligned} \max\quad&\mathrm{Alg}\\ \text{s.t.}\quad&\mathrm{Opt}\ge t_L &&\text{({xref}`Observation 5`)}\\ &\mathrm{Opt}\ge t_R+p_R-p_L &&\text{({xref}`(7)`)}\\ &\mathrm{Alg}\le t_L+\operatorname{pos}(t_L)+p_R-2p_L &&\text{({xref}`(6)`)}\\ &t_L+p_R-\operatorname{pos}(t_L)+p_R-p_L\ge(1+\alpha)t_L &&\text{({xref}`(5)`, relaxed)}\\ &t_R\ge p_R &&(\text{by assumption})\\ &\mathrm{Opt}=1 &&(\text{scaling})\\ &\mathrm{Alg},\mathrm{Opt},t_R,t_L,p_R,p_L,\operatorname{pos}(t_L)\ge0. \end{aligned}

Writing x=(Alg,Opt,tR,tL,pR,pL,pos⁡(tL))T\boldsymbol{x}=(\mathrm{Alg},\mathrm{Opt},t_R,t_L,p_R,p_L,\operatorname{pos}(t_L))^{\mathsf{T}}, a relaxation (P) of the LP and its dual (D) can equivalently be written as

max⁡ (1,0,0,0,0,0,0)Txs.t.(0−1010000−1101−10100−1−12−1000α−21100−101000100000)x≤(000001),x≥0\max\ (1,0,0,0,0,0,0)^{\mathsf{T}}\boldsymbol{x}\quad\text{s.t.}\quad \begin{pmatrix} 0 & -1 & 0 & 1 & 0 & 0 & 0\\ 0 & -1 & 1 & 0 & 1 & -1 & 0\\ 1 & 0 & 0 & -1 & -1 & 2 & -1\\ 0 & 0 & 0 & \alpha& -2 & 1 & 1\\ 0 & 0 & -1 & 0 & 1 & 0 & 0\\ 0 & 1 & 0 & 0 & 0 & 0 & 0 \end{pmatrix} \boldsymbol{x} \le \begin{pmatrix} 0\\ 0\\ 0\\ 0\\ 0\\ 1 \end{pmatrix}, \qquad \boldsymbol{x}\ge0

and

min⁡(0,0,0,0,0,1)Tys.t.\min\quad(0,0,0,0,0,1)^{\mathsf{T}}y\quad\text{s.t.}
(001000−1−100010100−1010−1α0001−1−2100−1210000−1100)y≥(1000000),y≥0.(8)\left( \begin{array}{rrrrrr} 0 & 0 & 1 & 0 & 0 & 0\\ -1 & -1 & 0 & 0 & 0 & 1\\ 0 & 1 & 0 & 0 & -1 & 0\\ 1 & 0 & -1 & \alpha& 0 & 0\\ 0 & 1 & -1 & -2 & 1 & 0\\ 0 & -1 & 2 & 1 & 0 & 0\\ 0 & 0 & -1 & 1 & 0 & 0 \end{array} \right)y\ge \left( \begin{array}{r} 1\\ 0\\ 0\\ 0\\ 0\\ 0\\ 0 \end{array} \right), \qquad y\ge0. \tag*{(8)}

By weak duality, any feasible solution to the dual provides an upper bound on the optimum value of the primal. The dual solution y=(1−α,1.5,1,1,1.5,2.5−α)Ty=(1-\alpha,1.5,1,1,1.5,2.5-\alpha)^{\mathsf{T}} is feasible for α∈(0,1]\alpha\in(0,1] and has objective value 2.5−α2.5-\alpha.

Next, we consider the case tL+pR−pos⁡(tL)<pR/αt_L+p_R-\operatorname{pos}(t_L)<p_R/\alpha. Here, we obtain the following LP, where it turns out that the condition OPT≥tL\mathrm{OPT}\ge t_L can be dropped.

max⁡ALGs.t.OPT≥tR+pR−pL(7)ALG≤tL+pos⁡(tL)+pR−2pL(6)1αpR+pR−pL≥(1+α)tL(5, relaxed)pos⁡(tL)≤pR(rR is a right-request)tR≥pR(by assumption)OPT=1(scaling)ALG,OPT,tR,tL,pR,pL,pos⁡(tL)≥0.\begin{aligned} \max\quad& \mathrm{ALG}\\ \text{s.t.}\quad& \mathrm{OPT}\ge t_R+p_R-p_L && (7)\\ & \mathrm{ALG}\le t_L+\operatorname{pos}(t_L)+p_R-2p_L && (6)\\ & \frac{1}{\alpha}p_R+p_R-p_L\ge(1+\alpha)t_L && (5,\ \text{relaxed})\\ & \operatorname{pos}(t_L)\le p_R && (r_R\text{ is a right-request})\\ & t_R\ge p_R && (\text{by assumption})\\ & \mathrm{OPT}=1 && (\text{scaling})\\ & \mathrm{ALG},\mathrm{OPT},t_R,t_L,p_R,p_L,\operatorname{pos}(t_L)\ge0. \end{aligned}

As before, we can write the dual (D) of the relaxed LP as

min⁡(0,0,0,0,0,1)Tys.t.\min\quad(0,0,0,0,0,1)^{\mathsf{T}}y\quad\text{s.t.}
(010000−1000011000−100−11+α0001−1−α+1α−110−1210000−10100)y≥(1000000),y≥0.(9)\left( \begin{array}{rrrrrr} 0 & 1 & 0 & 0 & 0 & 0\\ -1 & 0 & 0 & 0 & 0 & 1\\ 1 & 0 & 0 & 0 & -1 & 0\\ 0 & -1 & 1+\alpha& 0 & 0 & 0\\ 1 & -1 & -\frac{\alpha+1}{\alpha} & -1 & 1 & 0\\ -1 & 2 & 1 & 0 & 0 & 0\\ 0 & -1 & 0 & 1 & 0 & 0 \end{array} \right)y\ge \left( \begin{array}{r} 1\\ 0\\ 0\\ 0\\ 0\\ 0\\ 0 \end{array} \right), \qquad y\ge0. \tag*{(9)}

The dual solution y=(1+12α,1,11+α,1,1+12α,1+12α)Ty=(1+\frac{1}{2\alpha},1,\frac{1}{1+\alpha},1,1+\frac{1}{2\alpha},1+\frac{1}{2\alpha})^{\mathsf{T}} is feasible for α≥0.3\alpha\ge0.3 (more precisely, the second-to-last inequality holds for α≥(17−3)/4≈0.281\alpha\ge(\sqrt{17}-3)/4\approx0.281, and all other inequalities hold for all α>0\alpha>0). The corresponding objective value is 1+12α1+\frac{1}{2\alpha}.

Together, we obtain that the competitive ratio is bounded by max⁡(2.5−α,1+1/(2α))\max(2.5-\alpha,1+1/(2\alpha)). □

Let us summarize the different cases we considered to prove Theorem 8.

Proof of Theorem 8. First, we noted that, in case there is no left-request or no right-request, we easily obtain a bound of max⁡(1+α,1/α)\max(1+\alpha,1/\alpha) on the competitive ratio. Therefore, we can assume that a left- and right-request exist and let rLr_L denote the last-served left-request and rRr_R the last-served right-request. By Observation 9, we can assume that the server first served rLr_L and then moved at full speed to rRr_R (otherwise, we obtain a bound of max⁡(1+α,1/α)\max(1+\alpha,1/\alpha)). By Lemma 10, we can additionally assume that Opt serves rRr_R before rLr_L and that rRr_R was released before rLr_L (otherwise, we obtain a bound of 1+α1+\alpha). Finally, we showed in Lemma 11 that, under these assumptions, the competitive ratio is bounded by max⁡(2.5−α,1+1/(2α))\max(2.5-\alpha,1+1/(2\alpha)).

Lower bound for the competitive ratio of LeftGuard

In this subsection, we present two lower-bound constructions for LeftGuard, showing that the analysis in § 3.2 is tight in the sense that no choice of α\alpha yields a competitive ratio below 1.751.75 for LeftGuard(α)(\alpha) (i.e., we prove the second part of Theorem 2).

Lemma 12. The competitive ratio of LeftGuard(α)(\alpha) is at least max⁡(1+α,1/α)\max(1+\alpha,1/\alpha) for every α∈(0,1]\alpha\in(0,1].

Proof. First, consider the input sequence consisting of the single request (1,0)(1,0). Note that LeftGuard(α)(\alpha) executes MoveRight(α)(\alpha) before time 11 so that pos⁡(1)=α\operatorname{pos}(1)=\alpha. Therefore, the request is served by time 1+α1+\alpha. On the other hand, Opt serves the request immediately at time 11 by waiting at the origin. Therefore, the competitive ratio is at least 1+α1+\alpha.

Next, consider the input sequence consisting of the single request (1,1)(1,1). Since (1,1)(1,1) is a right-request, by Observation 7 iii), LeftGuard(α)(\alpha) completes it not earlier than at time 1/α1/\alpha, while we have Opt=1\mathrm{Opt}=1. Therefore, the competitive ratio is at least 1/α1/\alpha.

Lemma 13. The competitive ratio of LeftGuard(α)(\alpha) is at least 2.5−α2.5-\alpha for α∈[0.5,1]\alpha\in[0.5,1].

Proof. Consider the input sequence consisting of the three requests (α1+α,0)(\frac{\alpha}{1+\alpha},0), (0.5+ε,0.5+ε)(0.5+\varepsilon,0.5+\varepsilon) and (1,0)(1,0) where 0<ε<0.50<\varepsilon<0.5. Observe that α/(1+α)≤0.5\alpha/(1+\alpha)\le0.5 for α≤1\alpha\le1, so the requests indeed arrive in the order given above.

Opt can serve the requests by moving to position 0.5+ε0.5+\varepsilon at time 0.5+ε0.5+\varepsilon and then moving to position 00, i.e., we have

Opt=1+2ε.(10)\mathrm{Opt}=1+2\varepsilon. \tag*{(10)}

On the other hand, LeftGuard(α)(\alpha) moves away from the origin at speed α\alpha until time α/(1+α)\alpha/(1+\alpha) so that pos⁡(α/(1+α))=α2/(1+α)\operatorname{pos}(\alpha/(1+\alpha))=\alpha^2/(1+\alpha). By moving back to the origin at unit speed, LeftGuard(α)(\alpha) could serve the first request at time

α1+α+α21+α=α=(1+α)⋅α1+α,\frac{\alpha}{1+\alpha}+\frac{\alpha^2}{1+\alpha}=\alpha=(1+\alpha)\cdot\frac{\alpha}{1+\alpha},

which is the maximum time allowed to serve the first request according to the algorithm definition. Therefore, LeftGuard(α)(\alpha) cannot decide to serve another right-request before serving the left-request at position 00, or before another left-request is revealed. Hence, LeftGuard(α)(\alpha) serves the left-request at position 00 at time α≤1\alpha\le1, and then moves right at maximum speed while maintaining pos⁡(t)≤αt\operatorname{pos}(t)\le\alpha t to serve the right-request at position 0.5+ε0.5+\varepsilon. Since α≥0.5\alpha\ge0.5, we obtain pos⁡(1)=1−α<0.5+ε\operatorname{pos}(1)=1-\alpha<0.5+\varepsilon, i.e., the request (0.5+ε,0.5+ε)(0.5+\varepsilon,0.5+\varepsilon) is still unserved when the new left-request (1,0)(1,0) arrives.

If LeftGuard(α)(\alpha) served the right-request first, it would arrive at the left-request at time

1+(0.5+ε)−pos⁡(1)+0.5+ε=2+2ε−(1−α)=1+α+2ε>(1+α)⋅1,1+(0.5+\varepsilon)-\operatorname{pos}(1)+0.5+\varepsilon=2+2\varepsilon-(1-\alpha)=1+\alpha+2\varepsilon>(1+\alpha)\cdot1,

hence LeftGuard(α)(\alpha) has to move to the left-request first before serving the right-request. It follows that LeftGuard(α)(\alpha) finishes at time

1+pos⁡(1)+0.5+ε=1+(1−α)+0.5+ε=2.5−α+ε.1+\operatorname{pos}(1)+0.5+\varepsilon=1+(1-\alpha)+0.5+\varepsilon=2.5-\alpha+\varepsilon.

Together with (10) and letting ε→0\varepsilon\to0, we obtain that the competitive ratio is at least 2.5−α2.5-\alpha.

For α≤0.5\alpha\le0.5, Lemma 12 yields the lower bound 1/α≥21/\alpha\ge2 on the competitive ratio of LeftGuard(α)(\alpha). For α>0.5\alpha>0.5, the competitive ratio is at least max⁡(1+α,2.5−α)≥1.75\max(1+\alpha,2.5-\alpha)\ge1.75 by Lemmas 12 and 13. This completes the proof that LeftGuard(α)(\alpha) has competitive ratio at least 1.751.75 for any choice of α\alpha (i.e., the second part of Theorem 2).

General lower bound for online TSP on the half-line

In the following, we fix an arbitrary online algorithm ALG and prove a general lower bound for the competitive ratio of online TSP on the half-line.

Theorem 3. Every algorithm for open online TSP on the half-line has competitive ratio at least 1.64631.6463.

It is immediate to see that no online algorithm for the TSP on the half-line can achieve a competitive ratio strictly smaller than 3/23/2: At time 11, we reveal either a request at 00 if pos⁡(1)≥1/2\operatorname{pos}(1) \ge1/2, or a request at 11 otherwise. In both cases, we have ALG ≥3/2\ge3/2 and OPT =1= 1.

For the remainder of this section, we fix ρ∈(3/2,5/3]\rho\in(3/2,5/3] and assume that ALG has competitive ratio strictly less than ρ\rho. We progressively introduce requests that, based on the fact that it must be ρ\rho-competitive if no further requests appear, constrain ALG’s behavior more and more. Specifically, we present two fixed requests, followed by three requests that depend on ALG’s behavior. Based on the derived restrictions on ALG, we show that the resulting request sequence yields a lower bound of ρ≥1.6463\rho\ge1.6463. We denote by serve⁡(ri)\operatorname{serve}(r_i) the time when the request ri=(ti,pi)r_i=(t_i,p_i) is served by ALG and formally define the adversarial request sequence as follows.

Definition 14 (Adversarial request sequence). We present an adversarial request sequence (r1,r2,r3,r4,r5)(r_1,r_2,r_3,r_4,r_5) consisting of the requests

  1. r1:=(1/ρ,0)r_1 := (1/\rho,0) and r2:=(1,1)r_2 := (1,1),

  1. r3:=(t∗,0)r_3 := (t^*,0), where t∗:=min⁡{t≥1:pos⁡(t)=2ρ−1−t}t^* := \min\{t \ge1 : \operatorname{pos}(t)=2\rho-1-t\},

  1. r4:=(b,b)r_4 := (b,b) for some b≥t∗+1/2b \ge t^*+1/2 to be determined later,

  1. r5r_5 depending on ALG’s behavior: i. if pos⁡(2b)<b/2\operatorname{pos}(2b)<b/2 and serve⁡(r4)>2b\operatorname{serve}(r_4)>2b, then r5:=(tm,0)r_5 := (t_m,0) with tm:=min⁡{t≥2b:pos⁡(t)=b/2}t_m := \min\{t \ge2b : \operatorname{pos}(t)=b/2\}, ii. otherwise, r5:=(2b,0)r_5 := (2b,0).

We show in Lemmas 15 and 18 that this sequence is well-defined, in the sense that the time t∗t^* in the second step and, if needed, the time tmt_m in the fourth step exist.

The adversarial sequence is illustrated in Figure 2 for ρ=1.64\rho=1.64. The figure also shows the trajectory of the optimum offline solution for the entire request sequence, as well as the best possible trajectory of ALG.

Adversarial request sequence for the lower bound in Theorem 3

Figure 2. Adversarial request sequence for the lower bound in Theorem 3 for ρ=1.64\rho= 1.64, with the best possible trajectory of Alg in blue and the trajectory of the offline optimum in orange. Curved lines in Alg’s trajectory indicate that the online algorithm has degrees of freedom in its behavior, whereas straight lines indicate that any other behavior increases the lower bound on the competitive ratio. Dashed lines show that there are two possible trajectories. The trajectories marked (i) and (ii) correspond to the two cases in the definition of r5r_5.

By σ≤i:=(r1,r2,…,ri)\sigma_{\le i}:=(r_1,r_2,\ldots,r_i) we denote the sequence of requests revealed up to and including request rir_i, and we write ALG⁡(σ≤i)\operatorname{ALG}(\sigma_{\le i}) and OPT⁡(σ≤i)\operatorname{OPT}(\sigma_{\le i}) for the cost of ALG and the offline optimum, respectively, for serving the request sequence σ≤i\sigma_{\le i}. Moreover, we write ALG⁡[σ≤i]\operatorname{ALG}[\sigma_{\le i}] for the schedule ALG computes for the request sequence σ≤i\sigma_{\le i}, i.e., ALG’s behavior if only the requests r1,…,rir_1,\ldots,r_i were revealed. Note that the serving times serve⁡(ri)\operatorname{serve}(r_i) are always w.r.t. the full schedule ALG⁡[σ≤5]\operatorname{ALG}[\sigma_{\le5}].

The following lemma establishes that the time t∗t^* as described in the second step of Definition 14 exists and falls within certain bounds.

Lemma 15. After releasing the requests r1r_1 and r2r_2 of Definition 14, there exists a time t∗t^* with t∗∈[ρ+(3/(2ρ))−1,2]t^* \in[\rho+(3/(2\rho))-1,2] such that pos⁡(t∗)=2ρ−1−t∗\operatorname{pos}(t^*)=2\rho-1-t^*. Moreover, serve⁡(r2)>t∗\operatorname{serve}(r_2)>t^*.

Proof. Observe that, before the first request r1r_1 is revealed, the server needs to be able to handle the case where the first request is of the form (t,t)(t,t) with t≤1/ρt \le1/\rho. In this case, the offline optimum’s cost is tt and the server must be able to serve the request before time ρt\rho t. Note that pos⁡(t)≤t\operatorname{pos}(t) \le t since the server is restricted to unit speed. It follows that t+(t−pos⁡(t))≤ρtt+(t-\operatorname{pos}(t)) \le\rho t. Equivalently, we have

pos⁡(t)≥(2−ρ)tfor all t∈[0,1/ρ].\operatorname{pos}(t) \ge(2-\rho)t \quad\text{for all } t \in[0,1/\rho].

This implies that, when r1r_1 is revealed at time 1/ρ1/\rho, we have pos⁡(1/ρ)≥(2−ρ)/ρ\operatorname{pos}(1/\rho) \ge(2-\rho)/\rho, and it follows that

serve⁡(r1)≥t1+∣pos⁡(t1)−p1∣=1/ρ+pos⁡(1/ρ)≥(3−ρ)/ρ.(11)\operatorname{serve}(r_1) \ge t_1 + |\operatorname{pos}(t_1)-p_1| = 1/\rho+ \operatorname{pos}(1/\rho) \ge(3-\rho)/\rho. \tag*{(11)}

Moreover, serve⁡(r1)≤1\operatorname{serve}(r_1) \le1 because Alg is ρ\rho-competitive for the request sequence σ≤1\sigma_{\le1}, i.e., r1r_1 is already served when r2r_2 is revealed. From (9), it follows that

serve⁡(r2)≥serve⁡(r1)+∣p2−pos⁡(serve⁡(r1))∣=serve⁡(r1)+1≥(3−ρ)/ρ+1=3/ρ.\operatorname{serve}(r_2) \ge\operatorname{serve}(r_1) + |p_2-\operatorname{pos}(\operatorname{serve}(r_1))| = \operatorname{serve}(r_1) + 1 \ge(3-\rho)/\rho+ 1 = 3/\rho.

With this, we obtain that there is a time t∗t^* where pos⁡(t∗)=2ρ−1−t∗\operatorname{pos}(t^*) = 2\rho- 1 - t^*: Let ℓ(t):=2ρ−1−t\ell(t) := 2\rho- 1 - t. At time serve⁡(r1)\operatorname{serve}(r_1), we have pos⁡(serve⁡(r1))=0<ℓ(serve⁡(r1))\operatorname{pos}(\operatorname{serve}(r_1)) = 0 < \ell(\operatorname{serve}(r_1)). When request r2=(1,1)r_2 = (1,1) is served at time serve⁡(r2)≥3/ρ\operatorname{serve}(r_2) \ge3/\rho, we have pos⁡(serve⁡(r2))=1>2ρ−1−(3/ρ)≥ℓ(serve⁡(r2))\operatorname{pos}(\operatorname{serve}(r_2)) = 1 > 2\rho- 1 - (3/\rho) \ge\ell(\operatorname{serve}(r_2)), where the first inequality holds for ρ≤1.82\rho\le1.82. Therefore, by continuity of pos⁡\operatorname{pos} and ℓ\ell, there exists t∗∈(serve⁡(r1),serve⁡(r2))t^* \in(\operatorname{serve}(r_1),\operatorname{serve}(r_2)) such that pos⁡(t∗)=ℓ(t∗)=2ρ−1−t∗\operatorname{pos}(t^*) = \ell(t^*) = 2\rho- 1 - t^*. Since serve⁡(r1)≤1\operatorname{serve}(r_1) \le1 and, as we show below, every time t≥serve⁡(r1)t \ge\operatorname{serve}(r_1) with pos⁡(t)=ℓ(t)\operatorname{pos}(t) = \ell(t) satisfies t≥ρ+3/(2ρ)−1>1t \ge\rho+ 3/(2\rho) - 1 > 1, the minimum in the definition of t∗t^* exists and lies in (serve⁡(r1),serve⁡(r2))(\operatorname{serve}(r_1),\operatorname{serve}(r_2)).

It remains to prove the claimed upper and lower bounds on t∗t^*. To this end, note that r2r_2 is served no earlier than time t∗+(1−pos⁡(t∗))=t∗+1−(2ρ−1−t∗)=2t∗+2−2ρt^* + (1-\operatorname{pos}(t^*)) = t^* + 1 - (2\rho- 1 - t^*) = 2t^* + 2 - 2\rho. Moreover, Opt⁡(σ≤2)≤1+1/ρ\operatorname{Opt}(\sigma_{\le2}) \le1 + 1/\rho (wait at p1=0p_1 = 0 until time t1=1/ρt_1 = 1/\rho and then move up to p2=1p_2 = 1) so that 2t∗+2−2ρ≤ρOpt⁡(σ≤2)≤ρ+12t^* + 2 - 2\rho\le\rho\operatorname{Opt}(\sigma_{\le2}) \le\rho+ 1. Reformulating and using ρ≤5/3\rho\le5/3 yields

t∗≤3ρ−12≤2.t^* \le\frac{3\rho- 1}{2} \le2.

To bound t∗t^* from below, observe that, using (9) and pos⁡(serve⁡(r1))=p1=0\operatorname{pos}(\operatorname{serve}(r_1)) = p_1 = 0, we have for all t≥serve⁡(r1)t \ge\operatorname{serve}(r_1) that pos⁡(t)≤pos⁡(serve⁡(r1))+t−serve⁡(r1)≤t−(3−ρ)/ρ\operatorname{pos}(t) \le\operatorname{pos}(\operatorname{serve}(r_1)) + t - \operatorname{serve}(r_1) \le t - (3-\rho)/\rho. By definition of time t∗t^*, it therefore holds that

2ρ−1−t∗=pos⁡(t∗)≤t∗−(3−ρ)/ρ,2\rho- 1 - t^* = \operatorname{pos}(t^*) \le t^* - (3-\rho)/\rho,

or, equivalently, t∗≥ρ+3/(2ρ)−1t^* \ge\rho+ 3/(2\rho) - 1. The same argument applies to every time t≥serve⁡(r1)t \ge\operatorname{serve}(r_1) with pos⁡(t)=ℓ(t)\operatorname{pos}(t) = \ell(t).

To prove restrictions on Alg’s behavior, we use the fact that Alg’s competitive ratio is strictly less than ρ\rho for the request sequences σ≤3\sigma_{\le3} and σ≤4\sigma_{\le4}, whose optimum offline cost can be bounded.

Observation 16. It holds that

Opt⁡(σ≤3)≤2andOpt⁡(σ≤4)≤t∗+b.\operatorname{Opt}(\sigma_{\le3}) \le2 \quad\text{and}\quad\operatorname{Opt}(\sigma_{\le4}) \le t^* + b.

Proof. An offline algorithm can serve σ≤3\sigma_{\le3} by moving to p2=1p_2 = 1 at time t2=1t_2 = 1 and then moving back to p1=p3=0p_1 = p_3 = 0 to serve r1=(1/ρ,0)r_1 = (1/\rho, 0) and r3=(t∗,0)r_3 = (t^*, 0) at time 22, since t∗≤2t^* \le2, achieving completion time 22.

For σ≤4\sigma_{\le4}, the offline optimum can wait at 00 until time t∗t^* and then move to p4=b>1p_4 = b > 1, serving r2r_2 on the way.

The time t∗t^* is chosen precisely such that Alg⁡\operatorname{Alg} is forced to serve r2r_2 before r3r_3, as the alternative would not be competitive in case no more requests are released.

Observation 17 (Planned order of r2r_2 and r3r_3). Alg⁡[σ≤3]\operatorname{Alg}[\sigma_{\le3}] serves r2=(1,1)r_2 = (1,1) before r3=(t∗,0)r_3 = (t^*,0).

Proof. Otherwise, Alg⁡[σ≤3]\operatorname{Alg}[\sigma_{\le3}] would finish the request sequence no earlier than

t∗+(pos⁡(t∗)−0)+1=t∗+2ρ−1−t∗+1=2ρ≥Obs. 16ρOpt⁡(σ≤3),t^* + (\operatorname{pos}(t^*) - 0) + 1 = t^* + 2\rho- 1 - t^* + 1 = 2\rho\mathrel{\overset{\mathrm{Obs.\ 16}}{\ge}} \rho\operatorname{Opt}(\sigma_{\le3}),

contradicting that Alg⁡\operatorname{Alg} has competitive ratio strictly less than ρ\rho.

We can now prove lower bounds on the competitive ratio of Alg⁡\operatorname{Alg}, depending on which request r5r_5 is released.

Lemma 18. If pos⁡(2b)<b/2\operatorname{pos}(2b) < b/2 and serve⁡(r4)>2b\operatorname{serve}(r_4) > 2b, then the adversarial request sequence is well-defined in the sense that tmt_m as described in Definition 14 exists, and

ρ≥1+3b/2ρ(t∗+b)−b/2.\rho\ge1 + \frac{3b/2}{\rho(t^* + b) - b/2}.

Proof. Since pos⁡(2b)<b/2\operatorname{pos}(2b) < b/2 and r4=(b,b)r_4 = (b,b) is not yet served at time 2b2b, the server has to cross position b/2b/2 at some time tmt_m after 2b2b. Therefore, the request r5=(tm,0)r_5 = (t_m,0) is well-defined.

Between times bb and tmt_m, only requests up to r4r_4 are present, so the offline optimum cost is Opt⁡(σ≤4)≤t∗+b\operatorname{Opt}(\sigma_{\le4}) \le t^* + b by Observation 16. Since Alg⁡\operatorname{Alg} is ρ\rho-competitive, Alg⁡[σ≤4]\operatorname{Alg}[\sigma_{\le4}] must therefore serve r4=(b,b)r_4 = (b,b) before time ρ(t∗+b)\rho(t^* + b). This implies that

tm+b/2=tm+∣p4−pos⁡(tm)∣≤ρ(t∗+b).(12)t_m + b/2 = t_m + \lvert p_4 - \operatorname{pos}(t_m)\rvert\le\rho(t^* + b). \tag*{(12)}

Since pos⁡(tm)=b/2\operatorname{pos}(t_m) = b/2 and since r4=(b,b)r_4 = (b,b) and r5=(tm,0)r_5 = (t_m,0) are not yet served by Alg⁡\operatorname{Alg} at time tmt_m, we have Alg⁡(σ≤5)≥tm+3b/2\operatorname{Alg}(\sigma_{\le5}) \ge t_m + 3b/2. Moreover, Opt⁡(σ≤5)=tm\operatorname{Opt}(\sigma_{\le5}) = t_m. It follows that

ρ≥Alg⁡Opt⁡≥tm+3b/2tm=1+3b/2tm≥1+3b/2ρ(t∗+b)−b/2.\rho\ge\frac{\operatorname{Alg}}{\operatorname{Opt}} \ge\frac{t_m + 3b/2}{t_m} = 1 + \frac{3b/2}{t_m} \ge1 + \frac{3b/2}{\rho(t^* + b) - b/2}.

To prove a lower bound on the competitive ratio in the second case, we first establish that Alg⁡\operatorname{Alg} must plan to serve r3r_3 before r4r_4, and we derive a lower bound on the time r3r_3 is served. We prove the claimed serving order by contradiction: assuming the opposite, we can construct an additional request for which the resulting request sequence even yields a lower bound of 1.751.75.

Lemma 19 (Serving order of r3r_3 and r4r_4). Alg⁡[σ≤4]\operatorname{Alg}[\sigma_{\le4}] serves r3=(t∗,0)r_3 = (t^*,0) before r4=(b,b)r_4 = (b,b).

Proof. Assume, for the sake of contradiction, that Alg⁡[σ≤4]\operatorname{Alg}[\sigma_{\le4}] serves the request r4=(b,b)r_4 = (b,b) before r3=(t∗,0)r_3 = (t^*,0). We will derive a contradiction to the assumption that ρ≤5/3\rho\le5/3 by presenting a request that forces Alg⁡\operatorname{Alg} to have competitive ratio at least 1.751.75.

As a first step, we prove that pos⁡(t∗+b)≥b/2\operatorname{pos}(t^* + b) \ge b/2. Suppose for the sake of contradiction that pos⁡(t∗+b)<b/2\operatorname{pos}(t^* + b) < b/2. At time t∗+b<2bt^* + b < 2b, only requests r1r_1, r2r_2, r3r_3 and r4r_4 have been released,

and, by Observation 16, Opt⁡(σ≤4)≤t∗+b\operatorname{Opt}(\sigma_{\leq4}) \leq t^* + b. Observe that Alg⁡\operatorname{Alg} must have served r4=(b,b)r_4 = (b,b) before time t∗+bt^* + b (i.e., serve⁡(r4)≤t∗+b\operatorname{serve}(r_4) \leq t^* + b), as, otherwise,

Alg⁡(σ≤4)≥(t∗+b)+(p4−pos⁡(t∗+b))+(p4−p3)≥t∗+b+3b/2.\operatorname{Alg}(\sigma_{\leq4}) \geq(t^* + b) + (p_4 - \operatorname{pos}(t^* + b)) + (p_4 - p_3) \geq t^* + b + 3b/2.

implying that

ρ≥Alg⁡(σ≤4)Opt⁡(σ≤4)≥(t∗+b)+3b/2t∗+b=1+3b/2t∗+b>b>t∗1+3b/22b=1.75.\rho\geq\frac{\operatorname{Alg}(\sigma_{\leq4})}{\operatorname{Opt}(\sigma_{\leq4})} \geq\frac{(t^* + b) + 3b/2}{t^* + b} = 1 + \frac{3b/2}{t^* + b} \mathrel{\mathop{>}^{b>t^*}} 1 + \frac{3b/2}{2b} = 1.75.

This contradicts the assumption that ρ≤5/3\rho\leq5/3. Note that serve⁡(r4)≥t∗+(b−pos⁡(t∗))\operatorname{serve}(r_4) \geq t^* + (b - \operatorname{pos}(t^*)), as the server needs to reach r4=(b,b)r_4 = (b,b) after time t∗<bt^* < b. With this, we obtain that

pos⁡(t∗+b)≥pos⁡(serve⁡(r4))−∣(t∗+b)−serve⁡(r4)∣=b−(t∗+b−serve⁡(r4))≥b−pos⁡(t∗).\begin{aligned} \operatorname{pos}(t^* + b) \geq\operatorname{pos}(\operatorname{serve}(r_4)) - |(t^* + b) - \operatorname{serve}(r_4)| \\ &= b - (t^* + b - \operatorname{serve}(r_4)) \geq b - \operatorname{pos}(t^*). \end{aligned}

This yields

pos⁡(t∗+b)−b2≥b2−pos⁡(t∗)>b>t∗t∗2−pos⁡(t∗)=t∗2−2ρ+1+t∗=32t∗−2ρ+1≥32(ρ+32ρ−1)−2ρ+1=94ρ−ρ+12≥0,\begin{aligned} \operatorname{pos}(t^* + b) - \frac{b}{2} \geq\frac{b}{2} - \operatorname{pos}(t^*) \mathrel{\mathop{>}^{b>t^*}} \frac{t^*}{2} - \operatorname{pos}(t^*) = \frac{t^*}{2} - 2\rho+ 1 + t^* = \frac{3}{2}t^* - 2\rho+ 1 \\ &\geq\frac{3}{2}\left(\rho+ \frac{3}{2\rho} - 1\right) - 2\rho+ 1 = \frac{9}{4\rho} - \frac{\rho+ 1}{2} \geq0, \end{aligned}

where the last inequality holds for ρ≤(19−1)/2≈1.6794\rho\leq(\sqrt{19} - 1)/2 \approx1.6794. It follows that pos⁡(t∗+b)≥b/2\operatorname{pos}(t^* + b) \geq b/2, which completes the first step.

Define k(t):=(t−t∗)/2k(t) := (t - t^*)/2. It holds that pos⁡(t∗+b)≥b/2=k(t∗+b)\operatorname{pos}(t^* + b) \geq b/2 = k(t^* + b). Let s3s_3 denote the time when Alg⁡[σ≤4]\operatorname{Alg}_{[\sigma_{\leq4}]} serves r3r_3. Then pos⁡(s3)=p3=0<k(s3)\operatorname{pos}(s_3) = p_3 = 0 < k(s_3), where s3≥2b>t∗+bs_3 \geq2b > t^* + b, as it takes at least 2b2b time units to serve r4r_4 before r3r_3. Therefore, there exists a time t′∈[t∗+b,s3)t' \in[t^* + b, s_3) such that pos⁡(t′)=k(t′)=(t′−t∗)/2\operatorname{pos}(t') = k(t') = (t' - t^*)/2. Consider the potential request r′=(t′,t′−t∗)r' = (t', t' - t^*). Opt⁡\operatorname{Opt} could complete the sequence (r1,r2,r3,r4,r′)(r_1,r_2,r_3,r_4,r') by waiting at 00 until time t∗t^*, and then moving to t′−t∗≥bt' - t^* \geq b with total cost t′t'. Since Alg⁡\operatorname{Alg} is ρ\rho-competitive, it must be able to serve all requests of (r1,r2,r3,r4,r′)(r_1,r_2,r_3,r_4,r') before time ρt′\rho t'. On the other hand, since the server is located at pos⁡(t′)=(t′−t∗)/2\operatorname{pos}(t') = (t' - t^*)/2 and s3>t′s_3 > t' with p3=0p_3 = 0, we have that

Alg⁡((r1,r2,r3,r4,r′))≥t′+32(t′−t∗)≥t′≥t∗+b≥2t∗t′+32(t′−12t′)=1.75t′.\operatorname{Alg}((r_1,r_2,r_3,r_4,r')) \geq t' + \frac{3}{2}(t' - t^*) \mathrel{\mathop{\geq}^{t'\geq t^*+b\geq2t^*}} t' + \frac{3}{2}\left(t' - \frac{1}{2}t'\right) = 1.75t'.

This contradicts the assumption that ρ≤5/3\rho\leq5/3, which implies that the initial assumption that Alg⁡[σ≤4]\operatorname{Alg}_{[\sigma_{\leq4}]} serves r4=(b,b)r_4 = (b,b) before r3=(t∗,0)r_3 = (t^*,0) is false.

To establish a lower bound on the serving time of r3r_3, we make use of the fact that Alg⁡\operatorname{Alg} must plan to serve r2r_2 before r3r_3 (Observation 17).

Lemma 20 (Serving time of r3r_3). If b≥t∗+1/2b \geq t^* + 1/2, it holds that serve⁡(r3)≥3+2t∗−2ρ\operatorname{serve}(r_3) \geq3 + 2t^* - 2\rho.

Proof. Recall that, by Observation 17, Alg⁡[σ≤3]\operatorname{Alg}_{[\sigma_{\leq3}]} serves r2=(1,1)r_2 = (1,1) before r3=(t∗,0)r_3 = (t^*,0). Moreover, by Lemma 15, t∗<serve⁡(r2)t^* < \operatorname{serve}(r_2). It follows that either t∗<serve⁡(r2)<serve⁡(r3)t^* < \operatorname{serve}(r_2) < \operatorname{serve}(r_3) or both requests are served after r4r_4 appears, i.e., t4≤serve⁡(r2)t_4 \leq\operatorname{serve}(r_2) and t4≤serve⁡(r3)t_4 \leq\operatorname{serve}(r_3). If t∗<serve⁡(r2)<serve⁡(r3)t^* < \operatorname{serve}(r_2) < \operatorname{serve}(r_3), we obtain, by definition of t∗t^*,

serve⁡(r3)≥t∗+∣p2−pos⁡(t∗)∣+∣p3−p2∣≥t∗+(1−pos⁡(t∗))+1=3+2t∗−2ρ.\operatorname{serve}(r_3) \geq t^* + |p_2 - \operatorname{pos}(t^*)| + |p_3 - p_2| \geq t^* + (1 - \operatorname{pos}(t^*)) + 1 = 3 + 2t^* - 2\rho.

For the case that t4≤serve⁡(r2)t_4 \leq\operatorname{serve}(r_2) and t4≤serve⁡(r3)t_4 \leq\operatorname{serve}(r_3), we analyze the position of the server at time t4=bt_4 = b. Since Alg⁡[σ≤3]\operatorname{Alg}_{[\sigma_{\leq3}]} serves r2=(1,1)r_2 = (1,1) before r3=(t∗,0)r_3 = (t^*,0), we have that

t4+(1−pos⁡(t4))+1≤t4+∣p2−pos⁡(t4)∣+∣p2−p3∣≤Alg⁡(σ≤3)<ρOpt⁡(σ≤3)≤Obs. 162ρ,t_4 + (1 - \operatorname{pos}(t_4)) + 1 \leq t_4 + |p_2 - \operatorname{pos}(t_4)| + |p_2 - p_3| \leq\operatorname{Alg}(\sigma_{\leq3}) < \rho\operatorname{Opt}(\sigma_{\leq3}) \mathrel{\mathop{\leq}^{\text{Obs. 16}}} 2\rho,

or, equivalently, pos⁡(t4)>b+2−2ρ\operatorname{pos}(t_4) > b + 2 - 2\rho. Using b≥t∗+1/2b \geq t^* + 1/2, it follows that

serve⁡(r3)≥t4+∣pos⁡(t4)−p3∣=b+pos⁡(t4)>2b+2−2ρ≥3+2t∗−2ρ.\operatorname{serve}(r_3) \geq t_4 + |\operatorname{pos}(t_4) - p_3| = b + \operatorname{pos}(t_4) > 2b + 2 - 2\rho\geq3 + 2t^* - 2\rho.

:::

Combining the previous two lemmas, we can prove a lower bound on the competitive ratio for the second case. Here, the main observation is that it is always optimal for Alg to serve r3r_3, then r4r_4 and then r5r_5, which allows us to use the lower bound on serve⁡(r3)\operatorname{serve}(r_3) to obtain a lower bound on the competitive ratio for σ≤5\sigma_{\leq5}.

Lemma 21. Let b≥t∗+1/2b \geq t^* + 1/2. If pos⁡(2b)≥b/2\operatorname{pos}(2b) \geq b/2 or serve⁡(r4)≤2b\operatorname{serve}(r_4) \leq2b, then

ρ≥1+3+2t∗−2ρ2b.\rho\geq1 + \frac{3 + 2t^* - 2\rho}{2b}.

Proof. The adversarial sequence concludes by releasing r5=(2b,0)r_5 = (2b, 0) at time 2b2b. The optimum cost for the entire sequence is Opt⁡(σ≤5)=2b\operatorname{Opt}(\sigma_{\leq5}) = 2b (immediately move to bb and back to the origin by time 2b2b). By Lemma 19, Alg⁡[σ≤4]\operatorname{Alg}[\sigma_{\leq4}] serves r3=(t∗,0)r_3 = (t^*, 0) before r4=(b,b)r_4 = (b, b). If serve⁡(r4)≤2b=t5\operatorname{serve}(r_4) \leq2b = t_5, i.e., r4r_4 has already been served when r5r_5 appears, then we have serve⁡(r3)<serve⁡(r4)<serve⁡(r5)\operatorname{serve}(r_3) < \operatorname{serve}(r_4) < \operatorname{serve}(r_5). It follows that Alg⁡(σ≤5)≥serve⁡(r3)+∣p4−p3∣+∣p5−p4∣=serve⁡(r3)+2b\operatorname{Alg}(\sigma_{\leq5}) \geq\operatorname{serve}(r_3) + |p_4 - p_3| + |p_5 - p_4| = \operatorname{serve}(r_3) + 2b. In the other case (i.e., serve⁡(r4)>2b\operatorname{serve}(r_4) > 2b), we have pos⁡(2b)≥b/2\operatorname{pos}(2b) \geq b/2 and serve⁡(r4)>2b\operatorname{serve}(r_4) > 2b by assumption. Moreover, we can show that serve⁡(r3)<2b\operatorname{serve}(r_3) < 2b, i.e., r3r_3 is served before r4r_4 and r5r_5: Otherwise, since Alg⁡[σ≤4]\operatorname{Alg}[\sigma_{\leq4}] serves r3r_3 before r4r_4 (Lemma 19), it holds that

2ρb≥b≥t∗ρ(t∗+b)≥Obs. 16ρOpt⁡(σ≤4)≥Alg⁡(σ≤4)≥2b+∣pos⁡(2b)−p3∣+∣p4−p3∣≥7b2,2\rho b \mathrel{\overset{b\geq t^*}{\geq}} \rho(t^* + b) \mathrel{\overset{\text{Obs. 16}}{\geq}} \rho\operatorname{Opt}(\sigma_{\leq4}) \geq\operatorname{Alg}(\sigma_{\leq4}) \geq2b + |\operatorname{pos}(2b) - p_3| + |p_4 - p_3| \geq\frac{7b}{2},

contradicting ρ≤5/3\rho\leq5/3. Since pos⁡(2b)≥b/2\operatorname{pos}(2b) \geq b/2 and serve⁡(r4)>2b\operatorname{serve}(r_4) > 2b, the fastest way for Alg⁡\operatorname{Alg} to complete the sequence σ≤5\sigma_{\leq5} is to serve r4=(b,b)r_4 = (b, b) before r5=(2b,0)r_5 = (2b, 0). As before, we obtain Alg⁡(σ≤5)≥serve⁡(r3)+2b\operatorname{Alg}(\sigma_{\leq5}) \geq\operatorname{serve}(r_3) + 2b. It follows that

ρ≥Alg⁡(σ≤5)Opt⁡(σ≤5)≥serve⁡(r3)+2b2b=1+serve⁡(r3)2b≥Lem. 201+3+2t∗−2ρ2b.\rho\geq\frac{\operatorname{Alg}(\sigma_{\leq5})}{\operatorname{Opt}(\sigma_{\leq5})} \geq\frac{\operatorname{serve}(r_3) + 2b}{2b} = 1 + \frac{\operatorname{serve}(r_3)}{2b} \mathrel{\overset{\text{Lem. 20}}{\geq}} 1 + \frac{3 + 2t^* - 2\rho}{2b}.

To prove Theorem 3, we combine the bounds of Lemma 18 and Lemma 21 and choose bb such that both bounds are equal. To ensure that the lower bounds still apply, we first verify that this choice of bb is valid in the sense that b≥t∗+1/2b \geq t^* + 1/2.

Lemma 22. Let ρ∈[3/2,5/3]\rho\in[3/2, 5/3] and t∗≥75t^* \geq\frac{7}{5}. If bb satisfies

3+2t∗−2ρ2b=3b/2ρ(t∗+b)−b/2.(13)\frac{3 + 2t^* - 2\rho}{2b} = \frac{3b/2}{\rho(t^* + b) - b/2}. \tag*{(13)}

then b≥t∗+1/2b \geq t^* + 1/2.

Proof. Notice that the left side of (11) is decreasing in bb and the right side of (11) is increasing in bb, as

3b/2ρ(t∗+b)−b/2=32ρ−1+2ρt∗b\frac{3b/2}{\rho(t^* + b) - b/2} = \frac{3}{2\rho- 1 + \frac{2\rho t^*}{b}}

and ρt∗>0\rho t^* > 0. For b=t∗+12b = t^* + \frac{1}{2}, the left-hand side becomes

L:=3+2t∗−2ρ2b=3+2t∗−2ρ2t∗+1=1+2−2ρ2t∗+1L := \frac{3 + 2t^* - 2\rho}{2b} = \frac{3 + 2t^* - 2\rho}{2t^* + 1} = 1 + \frac{2 - 2\rho}{2t^* + 1}

and the right-hand side becomes

R:=3b2ρ(t∗+b)−b=3(t∗+1/2)(4ρ−1)(t∗+1/2)−ρ=34ρ−1−ρt∗+1/2.R := \frac{3b}{2\rho(t^* + b) - b} = \frac{3(t^* + 1/2)}{(4\rho- 1)(t^* + 1/2) - \rho} = \frac{3}{4\rho- 1 - \frac{\rho}{t^* + 1/2}}.

We want to show that L>RL > R, as this implies that both sides can become equal only for some b>t∗+12b > t^* + \frac{1}{2}. Notice that, as 2−2ρ<02 - 2\rho< 0 and ρ>0\rho> 0, LL is increasing in t∗t^* and RR is decreasing in t∗t^*. Therefore, it suffices to show L>RL > R for t∗=7/5t^* = 7/5, which is the smallest possible value of t∗t^*. For this choice of t∗t^*, we have

L=29−10ρ19R=5766ρ−19,L = \frac{29 - 10\rho}{19} \qquad R = \frac{57}{66\rho- 19},

so L>RL > R reduces to

0<(29−10ρ)(66ρ−19)−57⋅19=−660ρ2+2104ρ−16340 < (29 - 10\rho)(66\rho- 19) - 57 \cdot19 = -660\rho^2 + 2104\rho- 1634

where the right-hand side has roots ρ≈1.339\rho\approx1.339 and ρ≈1.849\rho\approx1.849 and negative leading coefficient. Therefore, it is positive for ρ∈[1.34,1.84]⊃[3/2,5/3]\rho\in[1.34,1.84] \supset[3/2,5/3].

The resulting lower bound on the competitive ratio depends on the value t∗t^* chosen by the algorithm. To find an unconditional lower bound, we prove that it is increasing in t∗t^*, and determine its value for the smallest possible t∗t^*. To this end, we use the following intermediate lemma, stating that our choice of bb to make the bounds of Lemma 18 and Lemma 21 equal is increasing in t∗t^*.

Lemma 23. Assume that ρ∈(3/2,5/3]\rho\in(3/2,5/3] is fixed and b(t)b(t) is maximal such that

3+2t−2ρ2b(t)=3b(t)2ρ(t+b(t))−b(t).(14)\frac{3 + 2t - 2\rho}{2b(t)} = \frac{3b(t)}{2\rho(t + b(t)) - b(t)}. \tag*{(14)}

Then b(t)b(t) is increasing and differentiable in tt for all t≥7/5t \ge7/5.

Proof. The function b(t)b(t) can be determined by reformulating (12), where we note that the denominators are non-zero, as b(t)≥t+1/2>0b(t) \ge t + 1/2 > 0 by Lemma 22:

3+2t−2ρ2b(t)=3b(t)2ρ(t+b(t))−b(t)\frac{3 + 2t - 2\rho}{2b(t)} = \frac{3b(t)}{2\rho(t + b(t)) - b(t)}
⟺(3+2t−2ρ)(2ρ(t+b(t))−b(t))=6b(t)2\Longleftrightarrow(3 + 2t - 2\rho)(2\rho(t + b(t)) - b(t)) = 6b(t)^2
⟺(−4ρ2+4ρt+8ρ−2t−3)b(t)−4ρ2t+4ρt2+6ρt=6b(t)2,\Longleftrightarrow(-4\rho^2 + 4\rho t + 8\rho- 2t - 3)b(t) - 4\rho^2t + 4\rho t^2 + 6\rho t = 6b(t)^2,

Note that 3+2t−2ρ>03 + 2t - 2\rho> 0, as t≥7/5t \ge7/5 and ρ≤5/3\rho\le5/3. Hence, the two roots of this quadratic equation in b(t)b(t) have product −2ρt(3+2t−2ρ)/6<0-2\rho t(3 + 2t - 2\rho)/6 < 0, so b(t)b(t) is a simple root and therefore differentiable in tt.

To show that b(t)b(t) is increasing, we consider the two sides of (12) as functions of tt and bb, i.e.,

L(t,b):=3+2t−2ρ2bandR(t,b):=3b2ρ(t+b)−b=32ρ−1+2ρtb.L(t,b) := \frac{3 + 2t - 2\rho}{2b} \qquad\text{and}\qquad R(t,b) := \frac{3b}{2\rho(t + b) - b} = \frac{3}{2\rho- 1 + \frac{2\rho t}{b}}.

For fixed b>0b > 0, LL is increasing in tt and RR is decreasing in tt. Hence, for t′>tt' > t, we have

L(t′,b(t))>L(t,b(t))=R(t,b(t))>R(t′,b(t)).L(t',b(t)) > L(t,b(t)) = R(t,b(t)) > R(t',b(t)).

Moreover, as in the proof of Lemma 22, for fixed t′t', LL is decreasing in bb and RR is increasing in bb. Thus, L(t′,b)−R(t′,b)L(t',b) - R(t',b) is decreasing in bb, positive for b=b(t)b = b(t) and zero for b=b(t′)b = b(t'), which implies b(t′)>b(t)b(t') > b(t).

Using this lemma, we can now show that the lower bound itself increases in t∗t^*.

Lemma 24. Assume that ρ∈(3/2,5/3]\rho\in(3/2,5/3] is fixed and b(t)b(t) is maximal such that

3+2t−2ρ2b(t)=3b(t)2ρ(t+b(t))−b(t)=:LB⁡(t).\frac{3 + 2t - 2\rho}{2b(t)} = \frac{3b(t)}{2\rho(t + b(t)) - b(t)} =: \operatorname{LB}(t).

Then LB⁡(t)\operatorname{LB}(t) is increasing in tt for t≥7/5t \ge7/5.

Proof. Computing the derivative of LB⁡(t)\operatorname{LB}(t) using the left side yields

ddtLB⁡(t)=4b(t)−2b′(t)(3+2t−2ρ)(2b(t))2=4(b(t)−tb′(t))+2b′(t)(2ρ−3)(2b(t))2,\frac{\mathrm{d}}{\mathrm{d}t}\operatorname{LB}(t)=\frac{4b(t)-2b'(t)(3+2t-2\rho)}{(2b(t))^2}=\frac{4(b(t)-tb'(t))+2b'(t)(2\rho-3)}{(2b(t))^2},

while the right side yields

LB⁡′(t)=3b′(t)(2ρ(t+b(t))−b(t))−3b(t)(2ρ(1+b′(t))−b′(t))(2ρ(t+b(t))−b(t))2=6b′(t)ρt+6b′(t)ρb(t)−3b′(t)b(t)−6ρb(t)−6ρb′(t)b(t)+3b′(t)b(t)(2ρ(t+b(t))−b(t))2=6ρ(tb′(t)−b(t))(2ρ(t+b(t))−b(t))2.\begin{aligned} \operatorname{LB}'(t)=\frac{3b'(t)(2\rho(t+b(t))-b(t))-3b(t)(2\rho(1+b'(t))-b'(t))}{(2\rho(t+b(t))-b(t))^2} \\ &=\frac{6b'(t)\rho t+6b'(t)\rho b(t)-3b'(t)b(t)-6\rho b(t)-6\rho b'(t)b(t)+3b'(t)b(t)}{(2\rho(t+b(t))-b(t))^2} \\ &=\frac{6\rho(tb'(t)-b(t))}{(2\rho(t+b(t))-b(t))^2}. \end{aligned}

It follows that

sgn⁡(LB⁡′(t))=sgn⁡(tb′(t)−b(t))=sgn⁡(2(b(t)−tb′(t))+(2ρ−3)b′(t)).\operatorname{sgn}(\operatorname{LB}'(t))=\operatorname{sgn}(tb'(t)-b(t))=\operatorname{sgn}\left(2(b(t)-tb'(t))+(2\rho-3)b'(t)\right).

If tb′(t)−b(t)>0tb'(t)-b(t)>0, then LB⁡′(t)>0\operatorname{LB}'(t)>0 by the first equality. Otherwise, we have b(t)−tb′(t)≥0b(t)-tb'(t)\ge0. Using ρ>3/2\rho>3/2 and b′(t)≥0b'(t)\ge0 (Lemma 23), we obtain that (2ρ−3)b′(t)≥0(2\rho-3)b'(t)\ge0, hence LB⁡′(t)≥0\operatorname{LB}'(t)\ge0 by the second equality. □

Combining the previous lemmas, we can now prove Theorem 3.

Proof of Theorem 3. Lemmas 18 and 21 combined yield that, for every ρ∈(3/2,5/3]\rho\in(3/2,5/3] and every b≥t∗+1/2b\ge t^*+1/2, we have

ρ≥1+min⁡(3b/2ρ(t∗+b)−b/2,3+2t∗−2ρ2b)=:LB⁡(t∗,ρ,b).(15)\rho\ge1+\min\left(\frac{3b/2}{\rho(t^*+b)-b/2},\frac{3+2t^*-2\rho}{2b}\right)=:\operatorname{LB}(t^*,\rho,b). \tag*{(15)}

The remainder of the proof is purely analytical and dedicated to showing that, for every ρ∈(3/2,1.6463]\rho\in(3/2,1.6463] and t∗≥ρ+3/(2ρ)−1t^*\ge\rho+3/(2\rho)-1, there exists b≥t∗+1/2b\ge t^*+1/2 such that LB⁡(t∗,ρ,b)>ρ\operatorname{LB}(t^*,\rho,b)>\rho, contradicting (15).

To this end, we choose the maximal b(t∗,ρ)b(t^*,\rho) such that the two values in the minimum coincide. By Lemma 15, we have that t∗≥ρ+32ρ−1≥32+32⋅35−1=7/5t^*\ge\rho+\frac{3}{2\rho}-1\ge\frac{3}{2}+\frac{3}{2}\cdot\frac{3}{5}-1=7/5, and therefore, Lemma 22 gives b(t∗,ρ)≥t∗+1/2b(t^*,\rho)\ge t^*+1/2, so that the lower bound still applies. Moreover, it follows from Lemma 24 that the resulting lower bound LB⁡(t∗,ρ,b(t∗,ρ))\operatorname{LB}(t^*,\rho,b(t^*,\rho)) is increasing in t∗t^*. Therefore, we obtain a general lower bound by setting t∗=ρ+3/(2ρ)−1t^*=\rho+3/(2\rho)-1 (since we have proven in Lemma 15 that t∗t^* is lower bounded by this value). Plugging this in, we obtain

ρ≥1+min⁡(3b2ρ2−2ρ+2ρb+3−b,3+ρ2ρb)\rho\ge1+\min\left(\frac{3b}{2\rho^2-2\rho+2\rho b+3-b},\frac{3+\rho}{2\rho b}\right)

resulting in

b=2ρ2+5ρ−3+52ρ4+116ρ3−59ρ2+186ρ+912ρb=\frac{2\rho^2+5\rho-3+\sqrt{52\rho^4+116\rho^3-59\rho^2+186\rho+9}}{12\rho}

and a lower bound on the competitive ratio of

1+6(ρ+3)2ρ2+5ρ−3+52ρ4+116ρ3−59ρ2+186ρ+9,1+\frac{6(\rho+3)}{2\rho^2+5\rho-3+\sqrt{52\rho^4+116\rho^3-59\rho^2+186\rho+9}},

which decreases in ρ>0\rho>0 and equals ρ\rho for some ρ>1.6463\rho>1.6463. Hence, for every ρ∈(3/2,1.6463]\rho\in(3/2,1.6463], this lower bound is strictly larger than ρ\rho, a contradiction. Therefore, no algorithm has competitive ratio less than 1.6463. □

Disclosure of AI usage

The results presented in this paper and its preliminary version [7] were obtained without any AI assistance. In preparing the present paper, the authors used Claude Opus 5.5 for minor language edits.

References

  1. [1]Mikkel Abrahamsen, Ioana O. Bercea, Lorenzo Beretta, Jonas Klausen, and László Kozma. Online sorting and online TSP: randomized, stochastic, and high-dimensional. In Proceedings of the 32nd Annual European Symposium on Algorithms (ESA), pages 5:1–5:15, 2024. doi:10.4230/LIPIcs.ESA.2024.5.DOI
  2. [2]Norbert Ascheuer, Sven Oliver Krumke, and Jörg Rambau. Online dial-a-ride problems: Minimizing the completion time. In Proceedings of the 17th Annual Symposium on Theoretical Aspects of Computer Science (STACS), pages 639–650, 2000. doi: 10.1007/3-540-46541-3_53.DOI
  3. [3]Giorgio Ausiello, Vincenzo Bonifaci, and Luigi Laura. The on-line asymmetric traveling salesman problem. Journal of Discrete Algorithms, 6(2):290–298, 2008. doi:10.1016/J.JDA.2007.03.002.
  4. [4]Giorgio Ausiello, Marc Demange, Luigi Laura, and Vangelis Th. Paschos. Algorithms for the on-line quota traveling salesman problem. Information Processing Letters, 92(2):89–94, 2004. doi:10.1016/J.IPL.2004.06.013.
  5. [5]Giorgio Ausiello, Esteban Feuerstein, Stefano Leonardi, Leen Stougie, and Maurizio Talamo. Algorithms for the on-line travelling salesman. Algorithmica, 29(4):560–581, 2001. doi: 10.1007/S004530010071.
  6. [6]Júlia Baligács, Yann Disser, Irene Heinrich, and Pascal Schweitzer. Exploration of graphs with excluded minors. Journal of Computer and System Sciences, 156:103725, 2026. doi: 10.1016/J.JCSS.2025.103725.DOI
  7. [7]Júlia Baligács, Yann Disser, and Linda Thelen. Improved bounds for online TSP on the half-line. In Proceedings of the 20th Scandinavian Symposium on Algorithm Theory (SWAT), pages 4:1–4:17, 2026. doi:10.4230/LIPIcs.SWAT.2026.4.DOI
  8. [8]Júlia Baligács, Yann Disser, Farehe Soheil, and David Weckbecker. Tight analysis of the lazy algorithm for open online dial-a-ride. In Proceedings of the 18th International Algorithms and Data Structures Symposium (WADS), pages 43–64, 2023. doi:10.1007/978-3-031-38906-1_4.DOI
  9. [9]Alexander Birx. Competitive analysis of the online dial-a-ride problem. PhD thesis, TU Darmstadt, 2020.DOI
  10. [10]Alexander Birx and Yann Disser. Tight analysis of the smartstart algorithm for online dial-a-ride on the line. SIAM Journal on Discrete Mathematics, 34(2):1409–1443, 2020. doi:10.1137/19M1268513.DOI
  11. [11]Alexander Birx, Yann Disser, and Kevin Schwiecker. Improved bounds for open online dial-a-ride on the line. Algorithmica, 85(5):1372–1414, 2023. doi: 10.1007/S00453-022-01061-4.DOI
  12. [12]Antje Bjelde, Jan Hackfeld, Yann Disser, Christoph Hansknecht, Maarten Lipmann, Julie Meißner, Miriam Schlöter, Kevin Schwieor, and Leen Stougie. Tight bounds for online TSP on the line. ACM Transactions on Algorithms, 17(1):3:1–3:58, 2021. doi:10.1145/3422362.DOI
  13. [13]Michiel Blom, Sven O. Krumke, Willem E. de Paepe, and Leen Stougie. The online TSP against fair adversaries. INFORMS Journal on Computing, 13(2):138–148, 2001. doi: 10.1287/IJOC.13.2.138.10517.DOI
  14. [14]Vincenzo Bonifaci and Leen Stougie. Online k-server routing problems. Theory of Computing Systems, 45(3):470–485, 2008. doi:10.1007/S00224-008-9103-4.DOI
  15. [15]George Christodoulou and Alkmini Sgouritsa. An improved upper bound for the universal TSP on the grid. SIAM J. Comput., 53(5):1476–1523, 2024. doi:10.1137/17M1154849.
  16. [16]Romain Cosson. Breaking the k/log k barrier in collective tree exploration via tree-mining. In Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4264–4282, 2024. doi:10.1137/1.9781611977912.148.DOI
  17. [17]Yann Disser, Jan Hackfeld, and Max Klimm. Tight bounds for undirected graph exploration with pebbles and multiple agents. Journal of the ACM, 66(6):40:1–40:41, 2019. doi: 10.1145/3356883.DOI
  18. [18]Esteban Feuerstein and Leen Stougie. On-line single-server dial-a-ride problems. Theoretical Computer Science, 268(1):91–105, 2001. doi:10.1016/S0304-3975(00)00261–9.
  19. [19]Patrick Jaillet and Xin Lu. Online traveling salesman problems with service flexibility. Networks, 58(2):137–146, 2011. doi:10.1002/NET.20454.DOI
  20. [20]Patrick Jaillet and Xin Lu. Online traveling salesman problems with rejection options. Networks, 64(2):84–95, 2014. doi:10.1002/NET.21559.DOI
  21. [21]Vinay A. Jawgal, V. N. Muralidhara, and P. S. Srinivasan. Online travelling salesman problem on a circle. In Proceedings of the 15th International Conference on Theory and Applications of Models of Computation (TAMC), pages 325–336, 2019. doi: 10.1007/978–3–030–14812–6_20.DOI
  22. [22]Lujun Jia, Guolong Lin, Guevara Noubir, Rajmohan Rajaraman, and Ravi Sundaram. Universal approximations for TSP, Steiner tree, and set cover. In Proceedings of the 37th Annual ACM Symposium on Theory of Computing (STOC), pages 386–395, 2005. doi: 10.1145/1060590.1060649.DOI
  23. [23]Bala Kalyanasundaram and Kirk R. Pruhs. Constructing competitive tours from local information. Theoretical Computer Science, 130(1):125–138, 1994. doi: 10.1016/0304–3975(94)90155–4.
  24. [24]Sven O. Krumke. Online optimization: competitive analysis and beyond. Habilitation thesis, Zuse Institute Berlin, 2001.
  25. [25]Sven O. Krumke, Willem E. de Paepe, Diana Poensgen, Maarten Lipmann, Alberto Marchetti-Spaccamela, and Leen Stougie. On minimizing the maximum flow time in the online dial-a-ride problem. In Proceedings of the 3rd International Conference on Approximation and Online Algorithms (WAOA), pages 258–269, 2006. doi:10.1007/11671411_20.DOI
  26. [26]Sven Oliver Krumke, Luigi Laura, Maarten Lipmann, Alberto Marchetti-Spaccamela, Willem de Paepe, Diana Poensgen, and Leen Stougie. Non-abusiveness helps: An O(1)-competitive algorithm for minimizing the maximum flow time in the online traveling salesman problem. In Proceedings of the 5th International Workshop on Approximation Algorithms for Combinatorial Optimization (APPROX), pages 200–214, 2002. doi:10.1007/3–540–45753–4_18.DOI
  27. [27]Maarten Lipmann. On-line routing. PhD thesis, Technische Universiteit Eindhoven, 2003.

Paper details

vlnc:W_4fchjy9a
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 1

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents