arXiv:2611.02821cs.DSNov 2026

Manuscript Offprint

arXiv:2611.02821

Hardness Results for Approximate Distance Labeling in Sparse Graphs

Tsvi Kopelowitz, Ariel Korin, Liam Roditty

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

Abstract

Distance labeling schemes assign short labels to the vertices of a graph so that distances between pairs of vertices can be recovered, exactly or approximately, from the two corresponding labels alone. For sparse graphs, Kosowski, Uznáński, and Viennot [PODC'2019] showed that, assuming the hardness of the Sum-Index communication problem, exact distance labeling for sparse unweighted graphs requires near-linear label size. Their construction also gives lower bounds for stretch 1+o(1)1+o(1), but does not rule out substantially smaller labels for stretch 1+ε1+\varepsilon, where ε>0\varepsilon>0 is fixed.

We prove lower bounds for this (1+ε)(1+\varepsilon)-stretch regime through a density/stretch tradeoff. For every constant integer k≥1k \geq 1, we show that any approximate distance labeling scheme with stretch strictly smaller than 1+1/k1+1/k for unweighted graphs with m=O(n1+1/k)m = O(n^{1+1/k}) edges requires maximum label size at least SumIndex(n)/2Ok(log⁡n)\text{SumIndex}(n)/2^{O_k(\sqrt{\log n})} for infinitely many values of nn. Thus, under the conjecture that SumIndex(n)=n1−o(1)\text{SumIndex}(n) = n^{1-o(1)}, the maximum label size must be n1−o(1)n^{1-o(1)}. The main new ingredient is an unweighted graph construction based on 3-AP-free sets, which replaces the weighted uniqueness mechanism of the previous Sum-Index reduction by an additive uniqueness mechanism and keeps the relevant critical paths short enough to obtain a constant multiplicative distance gap. The same construction also yields near-tight lower bounds for related 2-hop structures, including hub labeling schemes, shortcut sets, and approximate distance hopsets.

1 Introduction

A basic question in graph data structures is how much global information about a graph can be recovered from local information stored at its vertices. This question is formalized by labeling schemes, where each vertex is assigned a short binary label, and queries are answered using only the labels of the queried vertices. Labeling schemes have been extensively studied, especially for adjacency, reachability, routing, and distance queries [33, 29, 36, 24, 21, 16].

Formally, let UU be a set whose elements represent the property of interest for a pair of vertices. For example, UU may be {0,1}\{0,1\} for adjacency or reachability, or a set of numbers for distance estimation. A labeling scheme consists of a coder and a decoder. Given a graph G=(V,E)G = (V,E), the coder assigns to each vertex v∈Vv \in V a label ℓ(v)∈{0,1}∗\ell(v) \in \{0,1\}^*. Given two labels ℓ(u)\ell(u) and ℓ(v)\ell(v), the decoder outputs an element of UU. The scheme is correct if, for every queried pair, the decoder outputs the corresponding value of the graph property.

Distance labeling schemes. In a distance labeling scheme, the decoder outputs an estimate d^(u,v)∈R≥0∪{∞}\hat{d}(u,v) \in \mathbb{R}_{\geq 0} \cup \{\infty\} for the graph distance dG(u,v)d_G(u,v). For a parameter t≥1t \geq 1, we say that the scheme has stretch tt if,

*This work is partially supported by United States - Israel Binational Science Foundation (BSF) grant no. 2024233. Contact: kopelot.biu@gmail.com, korinariell10@gmail.com, liamr@macs.biu.ac.il.

for every pair of vertices u,vu, v,

dG(u,v)≤d^(u,v)≤t⋅dG(u,v).d_{G}(u,v)\leq\hat{d}(u,v)\leq t\cdot d_{G}(u,v).

The case t = 1 is exact distance labeling, while the case t > 1 is approximate distance labeling.

The space of a labeling scheme is measured over a graph family G\mathcal{G}, assuming that the scheme satisfies the required guarantee for every G∈GG \in \mathcal{G}. The two standard measures are the maximum label size, max⁡G∈Gmax⁡v∈V(G)∣ℓG(v)∣\max_{G \in \mathcal{G}} \max_{v \in V(G)} |\ell_G(v)|, and the total space, max⁡G∈G∑v∈V(G)∣ℓG(v)∣\max_{G \in \mathcal{G}} \sum_{v \in V(G)} |\ell_G(v)|.

Exact distance schemes in general graphs. For general unweighted undirected graphs, exact distance labeling is well understood up to constant factors. A classical counting lower bound gives an n2−O(1)\frac{n}{2} - O(1) bit lower bound on the maximum label size [21]. The current best upper bound is log⁡232n+o(n)\frac{\log_2 3}{2} n + o(n) bits, with constant decoding time [3], improving earlier O(n)O(n)-bit schemes [24, 21, 45].

Thus, for general graphs, exact distance labels must have linear size. Two natural ways to seek smaller labels are to allow approximation, or to restrict attention to sparse graphs.

Approximate distance schemes in general graphs. For approximate distances, a fundamental result of Thorup and Zwick [44] states that for every integer k≥1k \geq 1 there is a labeling scheme for undirected graphs with stretch 2k−12k - 1 and total size O~(n1+1/k)1\tilde{O}(n^{1+1/k})^1. Furthermore, this bound is essentially tight, even for centralized data structures, under the Erdős girth conjecture [44]. Additional approximate labeling schemes were developed for special graph classes and for hybrid notions of approximation [20, 1].

For directed graphs, any finite-stretch distance labeling scheme is also a reachability labeling scheme, which requires n/4−o(n)n/4 - o(n) bits per label [13]. Thus, the interesting setting for sublinear-size approximate distance labels is undirected graphs.

Schemes for sparse graphs. The sparsity relaxation is less understood. Consider, for example, the family of unweighted undirected graphs satisfying m=O(n)m = O(n). On the upper bound side, there are exact distance labeling schemes that assign o(n)o(n) bits per label for such graphs [2, 22, 32], but no bound of the form O(n1−ε)O(n^{1-\varepsilon}) is known to hold for any constant ε>0\varepsilon > 0. On the lower bound side, the best unconditional lower bound on the maximum label size is Ω(n)\Omega(\sqrt{n}) [21]. In fact, the same Ω(n)\Omega(\sqrt{n}) lower bound is known even in the case where a fixed additive error is allowed [20, 3].

Sum-Index. In an attempt to close this gap, Kosowski, Uznaiński, and Viennot [32] related distance labeling on sparse graphs to the communication complexity of Sum-Index.

Definition 1.1 (Sum-Index). The Sum-Index problem is a 3-party communication problem, where Alice and Bob are both given the same binary string S∈{0,1}nS \in \{0,1\}^n, for n∈Nn \in \mathbb{N}. In addition, Alice is given an index i∈[n]2i \in [n]^2, and Bob is given an index j∈[n]j \in [n]. Alice and Bob each send one message to a referee, who must output S[(i+j) mod n]S[(i+j) \bmod n]. For a protocol Π\Pi, let MA(Π)M_A(\Pi) and MB(Π)M_B(\Pi) denote the maximum message lengths, in bits, sent by Alice and Bob, respectively, over all inputs. The communication complexity of Sum-Index is

SumIndex(n)=min⁡Πmax⁡{MA(Π),MB(Π)},SumIndex(n)=\min_{\Pi}\max\{M_{A}(\Pi),M_{B}(\Pi)\},

where the minimum is over all correct protocols for the problem.

Similarly to exact distance labeling schemes in sparse graphs, Sum-Index has a simple Ω(n)\Omega(\sqrt{n}) lower bound [34, 6, 37, 5], but no O(n1−ε)O(n^{1-\varepsilon}) upper bound is known. The best known upper bound is SumIndex(n)=O(nlog⁡1/4n2log⁡n)\text{SumIndex}(n) = O(\frac{n\log^{1/4}n}{2\sqrt{\log n}}) [4].

1^{1} O~\tilde{O} suppresses polylogarithmic factors.

2^{2}We use [n][n] to denote {0,…,n−1}\{0,\ldots,n-1\}.

Kosowski, Uznański, and Viennot [32] proved that, already for unweighted undirected sparse graphs of maximum degree 3, distance labeling schemes require maximum label size Ω(SumIndex(n)2Θ(log⁡n))\Omega\left(\frac{\text{SumIndex}(n)}{2^{\Theta(\sqrt{\log n})}}\right) for exact distances, and also for stretch 1+o(1)1+o(1). Their result gives a concrete barrier for any major improvement in exact distance labeling schemes for sparse graphs.

However, their lower bound does not apply to stretch 1+ε1+\varepsilon for any fixed constant ε>0\varepsilon>0. The reason is that the construction underlying their reduction is weighted, and their unweighted lower bound is obtained by replacing weighted edges with paths. This preserves the exact-distance structure, but it makes the relevant distances large compared to the additive gap used in the reduction. Consequently, the resulting multiplicative gap tends to 1.

References (32)