Papers
Topics
Authors
Recent
Search
2000 character limit reached

Online Traveling Salesman Problem (OLTSP)

Updated 6 July 2026
  • OLTSP is an online routing problem where requests in a metric space are revealed over time and must be served no earlier than their release, aiming to minimize makespan.
  • Key insights include competitive analysis bounds, specialized models like known locations, and the incorporation of learning-augmented predictions to improve routing decisions.
  • Research also highlights strategic waiting, the design of domination oracles, and the impact of structured metrics (line, ring, star) on algorithmic performance.

The Online Traveling Salesman Problem (OLTSP) is an online routing problem in which requests are revealed over time in a metric space, a server starts at a distinguished origin, moves with unit speed, and must serve each request no earlier than its release time while minimizing completion time or makespan. Two canonical variants are standard: in the closed variant the server must return to the origin after serving all requests, whereas in the open variant it need not return. Across the literature, the term also touches adjacent dynamic models in which the geometry itself changes over time, including time-dependent TSPs with moving or reallocated sites; those models are not OLTSP in the algorithmic sense, but they bear directly on robustness and replanning under nonstationarity (Hu et al., 2022, Bampis et al., 2022, Bampis et al., 2023, Sánchez et al., 2017).

1. Formal models and objective functions

In the standard metric formulation, an input is a sequence of requests x=(x1,,xn)x=(x_1,\dots,x_n) or Q={q1,,qn}Q=\{q_1,\dots,q_n\}, with each request written either as xi=(ti,pi)x_i=(t_i,p_i) or qi=(ti,pi)q_i=(t_i,p_i), where tit_i is its arrival or release time and pip_i is its position in a metric space MM. The server starts at the origin oo or OO at time $0$, moves at speed at most Q={q1,,qn}Q=\{q_1,\dots,q_n\}0, and may serve a request only after its release time. The objective is to minimize the completion time of the route, denoted Q={q1,,qn}Q=\{q_1,\dots,q_n\}1, Q={q1,,qn}Q=\{q_1,\dots,q_n\}2, or makespan, depending on the paper’s notation (Hu et al., 2022, Bampis et al., 2022).

Competitive analysis remains the dominant framework. In its basic form, an online algorithm is Q={q1,,qn}Q=\{q_1,\dots,q_n\}3-competitive if Q={q1,,qn}Q=\{q_1,\dots,q_n\}4 for all instances; in the randomized line setting, the expected-cost formulation is used, Q={q1,,qn}Q=\{q_1,\dots,q_n\}5, for some constant Q={q1,,qn}Q=\{q_1,\dots,q_n\}6 (Bampis et al., 2022, Chen et al., 2019).

A substantial refinement is OLTSP with known locations. In that model, the locations of all requests are known in advance at time Q={q1,,qn}Q=\{q_1,\dots,q_n\}7, but their release times are unknown and revealed online. This changes the information pattern without changing the requirement that requests be served no earlier than release (Bampis et al., 2022).

A second refinement is the learning-augmented setting. Here the algorithm receives predictions, such as an entire predicted request sequence, per-request predicted times and positions, only the last arrival time, or predicted locations Q={q1,,qn}Q=\{q_1,\dots,q_n\}8 for requests whose true locations Q={q1,,qn}Q=\{q_1,\dots,q_n\}9 and release times xi=(ti,pi)x_i=(t_i,p_i)0 are revealed online. These models support the now-standard notions of consistency, robustness, and smoothness (Hu et al., 2022, Bampis et al., 2023).

2. Classical baselines, lower bounds, and the role of waiting

A central classical baseline for metric OLTSP is Plan-At-Home (PAH). When at the origin, PAH computes an optimal route for all currently released unserved requests and returns home; while on a route, if a new request arrives that is farther from the origin than the server currently is, it abandons the route and goes back home, otherwise it continues. With an offline-optimal TSP subroutine, PAH is 2-competitive, and with Christofides’ heuristic it is 3-competitive in polynomial time. The same literature recalls the lower bound that no xi=(ti,pi)x_i=(t_i,p_i)1-competitive algorithm exists for xi=(ti,pi)x_i=(t_i,p_i)2 in the metric closed model (Hu et al., 2022).

On the real line, the structure is sharper. The online traveling salesman problem on the line (OLTSPL) has been studied for more than two decades, and the best known deterministic competitive ratio is reported as xi=(ti,pi)x_i=(t_i,p_i)3. The randomized literature distinguishes zealous algorithms, which never intentionally wait while unserved requests exist, from non-zealous algorithms, which may wait strategically. This distinction is substantive rather than cosmetic: the line results show that waiting can improve competitiveness, and that randomization improves over the best deterministic algorithm (Chen et al., 2019).

For OLTSPL, the randomized zealous algorithm RZ achieves ratio xi=(ti,pi)x_i=(t_i,p_i)4 against both fair and general adversaries. The randomized non-zealous algorithm RNZ achieves xi=(ti,pi)x_i=(t_i,p_i)5 against the general adversary, matching the corresponding lower bound, and xi=(ti,pi)x_i=(t_i,p_i)6 against the fair adversary. The lower bounds proved in the same work are xi=(ti,pi)x_i=(t_i,p_i)7 for randomized zealous algorithms against a fair adversary, xi=(ti,pi)x_i=(t_i,p_i)8 for randomized non-zealous algorithms against a fair adversary, and xi=(ti,pi)x_i=(t_i,p_i)9 for both zealous and non-zealous randomized algorithms against a general adversary (Chen et al., 2019).

These results establish two recurrent themes in OLTSP research. First, the adversarial model matters: fair-adversary restrictions can change both upper and lower bounds. Second, deliberate waiting is often algorithmically valuable, even though earlier formulations sometimes privileged “always moving” policies. In that sense, the line serves as a controlled setting in which the informational value of waiting can be proved rather than merely intuited (Chen et al., 2019).

3. OLTSP with known locations

The known-locations model, sometimes denoted OLTSP-L, assumes that the points at which requests may appear are known from the start, but their release times are not. In this setting, the server starts at qi=(ti,pi)q_i=(t_i,p_i)0 at time qi=(ti,pi)q_i=(t_i,p_i)1, moves at unit speed in a metric space qi=(ti,pi)q_i=(t_i,p_i)2, and must serve every request qi=(ti,pi)q_i=(t_i,p_i)3 no earlier than its release time. Both open and closed variants are studied (Bampis et al., 2022).

The main general result is tight: there is a qi=(ti,pi)q_i=(t_i,p_i)4-competitive algorithm for both open and closed OLTSP-L in general metric spaces, and no algorithm can do better than qi=(ti,pi)q_i=(t_i,p_i)5 for the open variant as well, matching the known lower bound for the closed variant. The algorithm waits at the origin until the first time qi=(ti,pi)q_i=(t_i,p_i)6 such that there exists an order qi=(ti,pi)q_i=(t_i,p_i)7 with

qi=(ti,pi)q_i=(t_i,p_i)8

where qi=(ti,pi)q_i=(t_i,p_i)9 is the length of the corresponding tour or path and tit_i0 is the fraction of that order that is fully released by time tit_i1. At time tit_i2, it selects an order tit_i3 minimizing

tit_i4

and then follows that order, waiting at request locations if necessary. The key inequalities in the proof are

tit_i5

and

tit_i6

The same paper notes that the algorithm also works for the online asymmetric TSP with known locations, again giving ratio tit_i7 (Bampis et al., 2022).

The significance of this model is explicit in the literature: knowing all locations in advance collapses the competitive ratio for general metric spaces to the optimal value tit_i8, and this holds for both open and closed variants. Equally important is the negative comparison: knowing only the number of requests does not confer the same benefit in several metric spaces. This sharply separates “where requests may appear” from weaker side information about instance size (Bampis et al., 2022).

4. Learning-augmented models based on predicted requests

A distinct line of work initiates OLTSP with predictions in the broader learning-augmented framework. Three prediction models are studied. In sequence prediction without identity, the predictor outputs a whole predicted sequence tit_i9, possibly of a different size, with no one-to-one correspondence to actual requests. In sequence prediction with identity, the number of requests is known and each predicted request corresponds to an actual request; the error is quantified by

pip_i0

In prediction of the last arrival time, the algorithm receives only pip_i1, with error pip_i2 (Hu et al., 2022).

These models produce different algorithmic tradeoffs. For sequence prediction without identity, LAR-NID is pip_i3-consistent and pip_i4-robust, for pip_i5, but it is not smooth. For sequence prediction with identity, the naive trust-based algorithm LAR-Trust satisfies

pip_i6

hence it is pip_i7-consistent and smooth but not robust. The robust variant LAR-ID has competitive ratio

pip_i8

so it is pip_i9-consistent, MM0-robust, and MM1-smooth. Using Christofides’ heuristic, the paper also gives the polynomial-time guarantee

MM2

For the weakest prediction model, LAR-Last achieves

MM3

so it is MM4-consistent, MM5-robust, and MM6-smooth (Hu et al., 2022).

The lower bounds are as important as the algorithms. In sequence prediction without identity, any MM7-consistent algorithm has robustness at least MM8 for any MM9. In sequence prediction with identity, any oo0-consistent algorithm has robustness at least oo1. And even with perfect prediction of the last arrival time, no oo2-competitive algorithm with oo3 exists. These results delimit the informational content of different prediction types: exact request matching is far more useful than knowing only a single scalar summary, but even exact matching does not remove adversarial lower bounds (Hu et al., 2022).

5. Location predictions, SWAG, and domination oracles

A more specialized learning-augmented framework studies OLTSP when the predictions correspond only to request locations. In this model, for each request oo4 the algorithm is given a predicted location oo5; the release times oo6 and true locations oo7 are revealed online; and the algorithm knows oo8 in advance. Prediction error is measured by

oo9

where OO0 is the length of an optimal offline TSP path or tour for the request locations alone, depending on whether the variant is open or closed (Bampis et al., 2023).

The central framework is Strategically Wait And Go (SWAG) and its learning-augmented version LA-SWAG. For an order OO1, OO2 denotes the total route length and OO3 the fraction of the route that is fully released by time OO4. A permutation OO5 dominates OO6 at time OO7 if

OO8

An oracle is valid if it outputs a nested set OO9 such that, for every time $0$0, some $0$1 dominates the optimal offline permutation. SWAG waits until some time $0$2, chooses from $0$3 the permutation minimizing

$0$4

and then follows that route, waiting at unreleased requests if necessary (Bampis et al., 2023).

The framework yields a structural guarantee: if the oracle is a domination oracle, then SWAG is $0$5-competitive when predictions are perfect. LA-SWAG extends this to imperfect predictions and proves

$0$6

for both closed and open LA-OLTSP. The same work gives robustness guarantees of $0$7 for the closed variant and $0$8 for the open variant in general metrics, with improved guarantees for some special metrics: $0$9-robust for the closed variant in trees and Euclidean spaces, and Q={q1,,qn}Q=\{q_1,\dots,q_n\}00-robust for the open variant in trees. It also proves that linear dependence on prediction error is necessary in the open case, via the lower bound that no algorithm can beat

Q={q1,,qn}Q=\{q_1,\dots,q_n\}01

A further tradeoff lower bound states that if an algorithm is Q={q1,,qn}Q=\{q_1,\dots,q_n\}02-consistent, then it cannot be Q={q1,,qn}Q=\{q_1,\dots,q_n\}03-robust for any Q={q1,,qn}Q=\{q_1,\dots,q_n\}04 in the open variant (Bampis et al., 2023).

The main conceptual contribution is the reduction from online routing to the design of compact domination oracles. This shifts the technical burden away from reasoning over all Q={q1,,qn}Q=\{q_1,\dots,q_n\}05 permutations and toward identifying metric-specific structural dominators. The result is a framework in which improved consistency, graceful degradation, and nontrivial worst-case robustness are obtained simultaneously (Bampis et al., 2023).

6. Structured metrics and tractability

Several metric spaces admit stronger or more explicit results than the general metric case. In the known-locations model, the ring is a circle of circumference Q={q1,,qn}Q=\{q_1,\dots,q_n\}06. For open OLTSP-L on the ring, there is no Q={q1,,qn}Q=\{q_1,\dots,q_n\}07-competitive algorithm for any Q={q1,,qn}Q=\{q_1,\dots,q_n\}08; the lower-bound instance uses two requests placed so that each is at distance Q={q1,,qn}Q=\{q_1,\dots,q_n\}09 from the origin and from each other, with releases at Q={q1,,qn}Q=\{q_1,\dots,q_n\}10 and Q={q1,,qn}Q=\{q_1,\dots,q_n\}11. For the closed variant on the ring, there is a polynomial-time algorithm with competitive ratio Q={q1,,qn}Q=\{q_1,\dots,q_n\}12 (Bampis et al., 2022).

For the star, the known-locations results are asymmetric. If only the number of requests is known but not their locations, there is no Q={q1,,qn}Q=\{q_1,\dots,q_n\}13-competitive algorithm for both closed and open OLTSP on the star, even if the number of requests is known. For closed OLTSP-L on the star, the paper gives a Q={q1,,qn}Q=\{q_1,\dots,q_n\}14-competitive algorithm, and by using a knapsack-FPTAS for the relevant ray-selection subproblem, obtains a polynomial-time Q={q1,,qn}Q=\{q_1,\dots,q_n\}15-competitive algorithm for any constant Q={q1,,qn}Q=\{q_1,\dots,q_n\}16 (Bampis et al., 2022).

For the semi-line, the contrast is even sharper. If locations are unknown, there is no Q={q1,,qn}Q=\{q_1,\dots,q_n\}17-competitive algorithm for the closed variant and no Q={q1,,qn}Q=\{q_1,\dots,q_n\}18-competitive algorithm for the open variant, even if the number of requests is known. With known locations, open OLTSP-L has lower bound Q={q1,,qn}Q=\{q_1,\dots,q_n\}19 and admits a polynomial-time Q={q1,,qn}Q=\{q_1,\dots,q_n\}20-competitive algorithm, while closed OLTSP-L has competitive ratio Q={q1,,qn}Q=\{q_1,\dots,q_n\}21: the optimal strategy is to go to the furthest request, wait until it is released, serve it, and return to the origin while serving all remaining requests (Bampis et al., 2022).

The line remains the most intensively analyzed one-dimensional case for randomization and waiting. As noted earlier, RZ achieves Q={q1,,qn}Q=\{q_1,\dots,q_n\}22, and RNZ achieves Q={q1,,qn}Q=\{q_1,\dots,q_n\}23 against the general adversary, with stronger fair-adversary performance for RNZ. These results show that the one-dimensional geometry supports exact adversarial constructions and tight waiting-based analysis that are not yet available in comparable generality for arbitrary metrics (Chen et al., 2019).

In the learning-augmented location-prediction setting, tractability depends strongly on the metric. For arbitrary metrics, the domination-oracle construction yields a single-exponential Q={q1,,qn}Q=\{q_1,\dots,q_n\}24 algorithm. For trees, the resulting algorithms run in Q={q1,,qn}Q=\{q_1,\dots,q_n\}25 for the closed variant and Q={q1,,qn}Q=\{q_1,\dots,q_n\}26 for the open variant, making the problem fixed-parameter tractable in the number of leaves Q={q1,,qn}Q=\{q_1,\dots,q_n\}27. For rings, polynomial-time domination oracles give Q={q1,,qn}Q=\{q_1,\dots,q_n\}28 time in the closed case and Q={q1,,qn}Q=\{q_1,\dots,q_n\}29 time in the open case. For flowers, the algorithms are fixed-parameter tractable in the number of petals Q={q1,,qn}Q=\{q_1,\dots,q_n\}30, with Q={q1,,qn}Q=\{q_1,\dots,q_n\}31 time for the closed variant and Q={q1,,qn}Q=\{q_1,\dots,q_n\}32 for the open variant (Bampis et al., 2023).

Taken together, these results show that geometry affects OLTSP at three levels: hardness thresholds, available structural decompositions, and the feasibility of efficient domination oracles or exact online policies.

7. Time-dependent TSP and trajectory stability

A separate but directly relevant direction studies TSP instances in which the sites themselves change over time. Two such generalizations are introduced. In bTSP, sites move continuously inside a unit square with constant velocity, bouncing elastically at the boundary; the salesman solves a static TSP at each observation time. In rTSP, one or more sites are reallocated discontinuously to random new positions at each time step. These models capture two different kinds of online change: smooth drift and abrupt reconfiguration (Sánchez et al., 2017).

For a static TSP with Q={q1,,qn}Q=\{q_1,\dots,q_n\}33 sites, a trajectory is a closed Hamiltonian tour, and the number of distinct trajectories is

Q={q1,,qn}Q=\{q_1,\dots,q_n\}34

The time-dependent study ranks these trajectories by length at each time, with shortest rank Q={q1,,qn}Q=\{q_1,\dots,q_n\}35 and longest rank

Q={q1,,qn}Q=\{q_1,\dots,q_n\}36

It then studies the rank distribution

Q={q1,,qn}Q=\{q_1,\dots,q_n\}37

and, more importantly, rank diversity Q={q1,,qn}Q=\{q_1,\dots,q_n\}38, defined as the number of different elements that have rank Q={q1,,qn}Q=\{q_1,\dots,q_n\}39 within a given period of time Q={q1,,qn}Q=\{q_1,\dots,q_n\}40. The observation window satisfies Q={q1,,qn}Q=\{q_1,\dots,q_n\}41 (Sánchez et al., 2017).

The empirical findings are consistent across both moving-site models. For static random configurations, the rank distribution is not Zipf-like and instead has a shape that “resembles a beta distribution.” In the time evolution of ranks, the shortest and longest trajectories are noticeably more persistent than intermediate ones. The paper also gives a bound on diversity,

Q={q1,,qn}Q=\{q_1,\dots,q_n\}42

and reports that increasing observation resolution in bTSP can lower diversity because sites do not move much between observations, whereas over sufficiently long horizons diversity becomes close to maximal for most ranks (Sánchez et al., 2017).

The geometric explanation is given through stability areas Q={q1,,qn}Q=\{q_1,\dots,q_n\}43 for rTSP with Q={q1,,qn}Q=\{q_1,\dots,q_n\}44: the set of positions to which the moved site can go without changing a given trajectory’s rank. The paper computes distributions Q={q1,,qn}Q=\{q_1,\dots,q_n\}45 of these areas and their mean Q={q1,,qn}Q=\{q_1,\dots,q_n\}46, finding that Q={q1,,qn}Q=\{q_1,\dots,q_n\}47, that intermediate ranks have much smaller stability regions, and that the difference between extremal and intermediate ranks grows with Q={q1,,qn}Q=\{q_1,\dots,q_n\}48. The core conclusion is that trajectory stability is highly non-uniform across ranks: the shortest and longest trajectories are more stable, more robust under perturbations, and more predictable than intermediate ones (Sánchez et al., 2017).

This does not solve OLTSP in the algorithmic sense. It does, however, provide a statistical and geometric understanding of how TSP solutions behave when the instance changes over time. A plausible implication is that in online or dynamic route-planning settings, optimal or near-optimal tours may remain structurally privileged under modest perturbations, whereas middling tours are substantially more volatile.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Online Traveling Salesman Problem (OLTSP).