arXiv:2610.18701cs.DSOct 2026

Manuscript Offprint

arXiv:2610.18701

Sublinear-Time and Semi-Streaming Algorithms for Path Cover and TSP

Sharareh Alipour, Ali Nowzari

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

Abstract

We give improved sublinear-time and semi-streaming approximation algorithms for maximum path cover, (1,2)(1,2)-TSP, and Max-TSP. For each fixed ε>0\varepsilon > 0, our distance-query algorithm estimates the optimum cost of an nn-vertex (1,2)(1,2)-TSP instance from above within factor 2−c⋆+ε=1.413184…+ε2 - c_\star + \varepsilon = 1.413184 \ldots + \varepsilon, with high probability, in n2−Ωε(1)n^{2 - \Omega_\varepsilon(1)} time, where c⋆=2(sec⁡1−tan⁡1)c_\star = 2(\sec 1 - \tan 1). This improves the 3/2+ε3/2 + \varepsilon factor of direct matching estimation in this subquadratic regime [8] and of the faster near-linear estimator [6]. A single random vertex order defines an implicit bipartite graph whose matchings project to path covers. An alternating-permutation analysis shows that its expected maximum matching size is at least c⋆c_\star times the optimum path-cover size. On long paths, even the best of polynomially many uniform orders retains only a c⋆+o(1)c_\star + o(1) fraction with high probability.

In semi-streaming, we construct deterministic (5/7−ε)(5/7 - \varepsilon)-approximate unweighted path covers and (9/7+ε+5/(7n))(9/7 + \varepsilon + 5/(7n))-approximate (1,2)(1,2)-TSP tours, improving the respective 2/3−ε2/3 - \varepsilon and 4/3+ε+1/n4/3 + \varepsilon + 1/n guarantees in [2]. For nonnegative weights, we obtain 2/3−ε2/3 - \varepsilon for path cover and Max-TSP, improving the earlier asymptotic 7/12−ε7/12 - \varepsilon Max-TSP bound. These algorithms use poly(1/ε)\text{poly}(1/\varepsilon) passes independent of nn and O(nlog⁡(n/ε) poly(1/ε))O(n \log(n/\varepsilon) \text{ poly}(1/\varepsilon)) words. We compute two approximate matchings separated by edge deletion. A cycle-compensation lemma accounts for the weight removed when breaking their cycles. For unweighted graphs, a third approximate matching on a simple auxiliary graph with at most 2n2n vertices chooses component connections; a Tutte–Berge count proves the stronger bound.

We also answer the repeated-contraction question in [2] for exact calls with arbitrary tie-breaking: further rounds leave the worst-case path-cover guarantees at 2/3 unweighted and 5/8 weighted. Three successive exact residual matchings likewise cannot guarantee more than 2/3, even with optimal recombination of their edges. Our structured third call avoids this limitation.

2012 ACM Subject Classification Theory of computation → Streaming, sublinear and near linear time algorithms; Theory of computation → Approximation algorithms analysis

Keywords and phrases traveling salesman problem, path cover, matching, sublinear-time algorithms, semi-streaming algorithms, random vertex orders

Sublinear-Time and Semi-Streaming Path Cover and TSP

1 Introduction

Let G=(V,E)G = (V, E) be a simple undirected graph on nn vertices. A path cover, also called a linear forest, is a collection of vertex-disjoint paths covering all vertices, with isolated vertices allowed. The maximum path cover (MPC) problem maximizes the number of selected edges; write ρ(G)\rho(G) for its optimum. In weighted MPC, each edge has a nonnegative weight, and the objective is to maximize the total selected weight, with optimum ρw(G)\rho_w(G). The problem is NP-hard even in the unweighted case [2].

Path covers also link MPC to the traveling salesman problem (TSP). In (1,2)-TSP, one minimizes Hamiltonian-cycle cost in a complete graph with edge costs one or two. Let G1=(V,E1)G_1 = (V, E_1) be the graph formed by the cost-one edges, and let OPT12OPT_{12} be the minimum tour cost of the (1,2)-TSP instance. A cover with pp edges of G1G_1 gives a tour of cost at most 2n−p2n - p. Thus a large cover gives a short tour, while a lower estimate of its size gives an upper estimate of tour cost [6, 2]. In Max-TSP, one maximizes tour weight in a complete nonnegatively weighted graph; completing a weighted cover cannot decrease its weight.

In this paper, we study approximation algorithms for these problems in two settings: the semi-streaming model and sublinear-time computation, which restrict memory and running time, respectively.

The semi-streaming model. Edges are scanned sequentially in a fixed arbitrary order, possibly in several passes, using O(n polylog n)O(n \text{ polylog } n) bits of memory [13]. Here polylog nn is a fixed polynomial in log⁡n\log n. Our algorithms receive edges with their costs or weights and return explicit path covers or Hamiltonian tours. For fixed accuracy ε\varepsilon, they use O(nlog⁡n)O(n \log n) words. If each edge weight is encoded with O(polylog n)O(\text{polylog } n) bits, each word also uses O(polylog n)O(\text{polylog } n) bits, giving O(n polylog n)O(n \text{ polylog } n) bits overall.

Sublinear-time computation. A sublinear-time algorithm accesses selected input entries through queries and uses time smaller than the input size, counting both queries and computation. Here adjacency queries test edges of an unweighted graph, and distance queries return costs in a (1,2)(1,2)-TSP instance. We seek time sublinear in the Θ(n2)\Theta(n^{2}) matrix entries, not necessarily in n. The outputs are lower estimates of MPC size or upper estimates of optimum tour cost, not explicit solutions.

References (51)