Simpler, faster and shorter labels for distances in graphs

Stephen Alstrup, Cyril Gavoille, Esben Bistrup Halvorsen, Holger Petersen

19 Citations (Scopus)

Abstract

We consider how to assign labels to any undirected graph with n nodes such that, given the labels of two nodes and no other information regarding the graph, it is possible to determine the distance between the two nodes. The challenge in such a distance labeling scheme is primarily to minimize the maximum label length and secondarily to minimize the time needed to answer distance queries (decoding). Previous schemes have offered different tradeoffs between label lengths and query time. This paper presents a simple algorithm with shorter labels and shorter query time than any previous solution, thereby improving the state-of-the-art with respect to both label length and query time in one single algorithm. Our solution addresses several open problems concerning label length and decoding time and is the first improvement of label length for more than three decades. More specifically, we present a distance labeling scheme with labels of length (log 3/2 n) + o(n) bits1 and constant decoding time. This outperforms all existing results with respect to both size and decoding time, including Winkler's (Combinatorica 1983) decade-old result, which uses labels of size (log3)n and O(n/log n) decoding time, and Gavoille et al. (SODA'O1), which uses labels of size 11n + o(n) and O(log log n) decoding time. In addition, our algorithm is simpler than the previous ones. In the case of integral edge weights of size at most W, we present almost matching upper and lower bounds for the label size l: 1/2(n-1) log [w/2 +1] ≤ l ≤ 1/2 n log (2W +1) + O(log n | log(nW)). Furthermore, for r-additive approximation labeling schemes, where distances can be off by up to an additive constant r, we present both upper and lower bounds. In particular, we present an upper bound for 1-additive approximation schemes which, in the unweighted case, has the same size (ignoring second order terms) as an adjacency labeling scheme, namely n/2. We also give results for bipartite graphs as well as for exact and 1-additive distance oracles.

Original languageEnglish
Title of host publicationProceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms
Number of pages13
PublisherSociety for Industrial and Applied Mathematics
Publication date2016
Pages338-350
ISBN (Print)978-1-611974-33-1
Publication statusPublished - 2016
EventACM-SIAM Symposium on Discrete Algorithms 2016 - Arlington, Virginia, United States
Duration: 10 Jan 201612 Jan 2016

Conference

ConferenceACM-SIAM Symposium on Discrete Algorithms 2016
Country/TerritoryUnited States
CityArlington, Virginia
Period10/01/201612/01/2016

Fingerprint

Dive into the research topics of 'Simpler, faster and shorter labels for distances in graphs'. Together they form a unique fingerprint.

Cite this