加载中…
We are given a directed graph with vertices and edges, with positive weights on the edges, and a parameter . We show how to compute, for every vertex , its nearest-neighbors. The algorithm runs in time, and follows by a somewhat careful modification of Dijkstra’s shortest path algorithm. This result is probably folklore, but we were unable to find a reference to it – thus, this note.

生成讲解博客的中文版本

生成AI智能校验的中文版本