arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.17841cs.DScs.CC

半流模型下单源最短路径的更优界

Better Bounds for Semi-Streaming Single-Source Shortest Paths

Sepehr Assadi, Gary Hoppenworth, Janani Sundaresan

AI总结:

该研究针对半流模型下无向图单源最短路径近似的开放问题,提出了空间O(1/ε·n log³n)、遍历次数O(1/ε·(logn/loglogn)²)的(1+ε)-近似随机算法,还证明了任意常数近似需Ω(logn/loglogn)次遍历的下界,将遍历复杂度差距缩小到二次。

摘要:

在半流模型中,算法必须通过对图的边流进行一次或少量遍历,处理任意n顶点图,使用O(n·polylog n)字的空间,并在最后一次遍历结束时输出对应问题的解。在无向图上近似(单源)最短路径是该模型中一个长期存在的开放问题。在这项工作中,我们从上界和下界两个方面推进了该问题的研究:\n我们提出了一种简单的随机算法,对于任意ε>0,该算法能以高概率计算给定源顶点的(1+ε)-近似最短路径,空间复杂度为O(1/ε · n log³ n),遍历次数为O(1/ε · (log n / log log n)²)。该算法还可以去随机化,并适用于动态流,仅需在空间上增加额外的poly(log n, 1/ε)因子开销。此前,该问题已知的最优算法需要1/ε·log^c(n)次遍历,其中c是一个未明确的大常数。\n我们证明,任何能以大常数概率输出给定源顶点(甚至仅到单个固定目标顶点,且只需输出距离而非路径)的任意常数近似最短路径的半流算法,都需要Ω(log n / log log n)次遍历。我们强调,我们的下界适用于任意常数因子的最短路径近似。此前,仅已知常数遍历次数的下界,且仅适用于小于2的小近似比。\n我们的研究结果共同将半流模型中单源最短路径近似的遍历复杂度差距从polylog n对比ω(1)缩小到仅二次差距。

英文摘要:

In the semi-streaming model, an algorithm must process any $n$-vertex graph by making one or few passes over a stream of its edges, use $O(n \cdot \text{polylog }n)$ words of space, and at the end of the last pass, output a solution to the problem at hand. Approximating (single-source) shortest paths on undirected graphs is a longstanding open question in this model. In this work, we make progress on this question from both upper and lower bound fronts: We present a simple randomized algorithm that for any $ε> 0$, with high probability computes $(1+ε)$-approximate shortest paths from a given source vertex in \[ O\left(\frac{1}ε \cdot n \log^3 n \right)~\text{space} \quad \text{and} \quad O\left(\frac{1}ε \cdot \left(\frac{\log n}{\log\log n} \right) ^2\right) ~\text{passes}. \] The algorithm can also be derandomized and made to work on dynamic streams at a cost of some extra $\text{poly}(\log n, 1/ε)$ factors only in the space. Previously, the best known algorithms for this problem required $1/ε\cdot \log^{c}(n)$ passes, for an unspecified large constant $c$. We prove that any semi-streaming algorithm that with large constant probability outputs any constant approximation to shortest paths from a given source vertex (even to a single fixed target vertex and only the distance, not necessarily the path) requires \[ Ω\left(\frac{\log n}{\log\log n}\right) ~\text{passes}. \] We emphasize that our lower bound holds for any constant-factor approximation of shortest paths. Previously, only constant-pass lower bounds were known and only for small approximation ratios below two. Our results collectively reduce the gap in the pass complexity of approximating single-source shortest paths in the semi-streaming model from $\text{polylog } n$ vs $ω(1)$ to only a quadratic gap.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑