English

On the complexity of the (approximate) nearest colored node problem

Data Structures and Algorithms 2019-01-14 v1

Abstract

Given a graph G=(V,E)G=(V,E) where each vertex is assigned a color from the set C={c1,c2,..,cσ}C=\{c_1, c_2, .., c_\sigma\}. In the (approximate) nearest colored node problem, we want to query, given vVv \in V and cCc \in C, for the (approximate) distance dist^(v,c)\widehat{\mathbf{dist}}(v, c) from vv to the nearest node of color cc. For any integer 1klogn1 \leq k \leq \log n, we present a Color Distance Oracle (also often referred to as Vertex-label Distance Oracle) of stretch 4k54k-5 using space O(knσ1/k)O(kn\sigma^{1/k}) and query time O(logk)O(\log{k}). This improves the query time from O(k)O(k) to O(logk)O(\log{k}) over the best known Color Distance Oracle by Chechik \cite{DBLP:journals/corr/abs-1109-3114}. We then prove a lower bound in the cell probe model showing that our query time is optimal in regard to space up to constant factors. We also investigate dynamic settings of the problem and find new upper and lower bounds.

Keywords

Cite

@article{arxiv.1807.03721,
  title  = {On the complexity of the (approximate) nearest colored node problem},
  author = {Maximilian Probst},
  journal= {arXiv preprint arXiv:1807.03721},
  year   = {2019}
}

Comments

Accepted to ESA'2018

R2 v1 2026-06-23T02:56:36.937Z