arXiv:2610.28994cs.CGOct 2026

Manuscript Offprint

arXiv:2610.28994

The Optimal Sampler for Diverse TSP Solutions: Characterization, Limits, and Learning

Ssu-Yuan Lo, Ching-Kai Wang, Kuan-Lun Chen, Hao-Tsung Yang

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

SSU-YUAN LO, National Central University, Taiwan

CHING-KAI WANG, National Central University, Taiwan

KUAN-LUN CHEN, National Central University, Taiwan

HAO-TSUNG YANG, National Central University, Taiwan

We address the Diverse Traveling Salesman Problem (D-TSP) that seeks a set of k distinct TSP tours. Each selected tour must not exceed a prescribed multiple of the optimal tour length, while the maximum pairwise Jaccard similarity within the selected set is minimized. This formulation is important for applications requiring both solution quality and fault tolerance, such as logistics planning, robotics, and strategic patrolling. We propose a novel hybrid framework that decomposes D-TSP into a sampling stage and a selection stage. The selection stage is a max-min dispersion problem, for which any approximation better than a factor of two is NP-hard; we therefore focus on the sampling stage. Our contributions are both theoretical and empirical. Theoretically, we give two end-to-end guarantees for the optimal sampling distribution, from two perspectives: including an optimal set in the sampled pool, or having at least k mutually distant tours in the pool. The second reduces the number of samples from exponential to linear in k, at the cost of weakening the benchmark from the best k tours to the best βk\beta k for some β>1\beta > 1. For practical use, we prove that a pipeline that samples spanning trees and then converts to tours does not hurt the quality of the pool in principle. Empirically, both objectives are learnable, and our experiments not only validate the analysis but also outperform the baselines on both in-distribution and out-of-distribution instances, by a single trained model with no fine-tuning.

CCS Concepts: • Theory of computation → Approximation algorithms analysis; • Mathematics of computing → Combinatorial optimization; • Computing methodologies → Reinforcement learning.

Additional Key Words and Phrases: Traveling salesman problem, solution diversity, dispersion, max-min packing, graph neural networks, reinforcement learning

1 Introduction

The demand for a set of diverse solutions rather than a single one is the premise of quality-diversity and niching methods in evolutionary computation, which deliberately maintain a population spread across a behavioural or genotypic space instead of converging on a single optimum [Cully and Demiris 2017; Pugh et al. 2016], and it has been taken up for combinatorial problems in particular. Work in this direction falls into two families. In the first, diversity is of interest in its own right, as in diverse minimum s-t cuts [de Berg et al. 2023; Gao et al. 2022], stable matchings [de Berg et al. 2025b], and vertex cover [Zhou et al. 2018]. In the second, diversity is the means by which solution quality is secured, as in the travelling thief problem [Nikfarjam et al. 2024] and batch selection in surrogate optimization [Nezami and Anahideh 2025]. On the application side, a diversity objective also serves as a powerful heuristic across a range of domains: it helps locate near-optimal solutions [Kim et al. 2021; Qian et al. 2024]; it reduces predictability while preserving the quality of a mixed strategy in adversarial settings [Basilico 2022; Sinha et al. 2018; Yang et al. 2026]; it improves the robustness and stability of learned policies [Ganesh et al. 2025; Jiang et al. 2022; Pang et al. 2019; Yang et al. 2025]; and it supplies the interpretability that opaque black-box models otherwise lack [Chen et al. 2025; Dandl et al. 2020; Mothilal et al. 2020; Nguyen et al. 2023].

Authors' Contact Information: Ssu-Yuan Lo, lawrence090402@gmail.com, National Central University, Department of Computer Science and Information Engineering, Taiwan; Ching-Kai Wang, a910424a@gmail.com, National Central University, Department of Computer Science and Information Engineering, Taiwan; Kuan-Lun Chen, glchen000000@gmail.com, National Central University, Department of Computer Science and Information Engineering, Taiwan; Hao-Tsung Yang, htyang@g.ncu.edu.tw, National Central University, Department of Computer Science and Information Engineering, Taiwan.

0:2

Lo et al.

In this work we address the Diverse Traveling Salesman Problem (D-TSP). That is, given an edge-weighted graph and a constant c, the objective of D-TSP is to identify a set S of k distinct TSP tours. This set must satisfy two competing criteria: first, the length of every tour T∈ST \in S must be at most c∣T∗∣c|T^*|, where ∣T∗∣|T^*| is the length of an optimal TSP tour; and second, the maximum pairwise Jaccard similarity among tours in the set S must be minimized. This formulation seeks high-quality solutions while maximizing their structural dissimilarity.

Within this growing theme, Diverse TSP also has many compelling potential applications. These include optimization tasks in logistics, where redundant and distinct path options are necessary for fault tolerance, and in robotics, such as efficient patrol planning and task allocation where various routes must be covered [Liu et al. 2019; Yang et al. 2019]. Despite this, the development of a guaranteed approximation algorithm for this problem is still open. The most closely related work are from the authors in [de Berg et al. 2025a], which focuses on 2 diverse tours only, and the authors in [Gao et al. 2022], which addresses the bi-criteria optimization of generating k diverse approximate spanning trees. However, converting this approach as TSP tours suffers two critical limitations: First, the quality of the diversity achieved for spanning trees may fall apart when the trees are converted into Hamiltonian tours (see Figure 1 as an example). Secondly, the diverse solutions in [Gao et al. 2022] relied on budget constraint programming, which faces the scalability issue for large graph.

Contributions. This paper studies D-TSP through a sample-then-select framework. We make the following contributions.

• Our first guarantee is a 2-approximation. With high probability, any sampler that is uniform over the feasible region and places no mass outside it returns, after M draws, the pairwise Jaccard distance is at least half of the optimal. The required M is Ncln⁡(k/δ)N_c \ln(k/\delta), where NcN_c is the number of feasible tours, which is exponential in the number of cities in general.

  • Any samplers without the sampling distribution described above pays a further factor according to our analysis. This factor is unavoidable: we show a family of Euclidean instances on which a non-uniform sampler needs proportionally more samples than the uniform one essentially.

  • For practical use, we provide a pipeline that samples spanning trees and converts to tours. We show that this relaxation costs nothing in principle but attributable to the objective alone. This residue is measurable from a batch.

  • By connecting D-TSP to the maximum independent set problem, our second guarantee requires a sample size linear in kk in expectation. Write pμ(ρ)p_\mu(\rho) for the probability that two independently drawn tours lie within distance ρ\rho of each other. Fix β>1\beta > 1 and a threshold 0<ρ≤Dβk∗(Ωc)0 < \rho \leq D_{\beta k}^*(\Omega_c), and suppose the sampler satisfies pμ(ρ)≤1/(βk)p_\mu(\rho) \leq 1 / (\beta k). Then M=O(k)M = O(k) draws already contain, in expectation, a set of kk tours whose pairwise Jaccard distances are all at least ρ\rho. Certifying the same conclusion with high probability rather than in expectation costs nothing further in samples, but it does bound β\beta away from one.

  • Our experiments confirm the analysis above, and show that our method beats three state-of-the-art methods on every instance, both on in-distribution random 40-city instances and on out-of-distribution ones (TSPLIB instances with 51–101 cities), when the budget matches the one it was trained for.

References (12)