arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1607.07818cs.DS
收藏

基于Dijkstra算法计算所有顶点的k近邻

Computing the k Nearest-Neighbors for all Vertices via Dijkstra

Sariel Har-Peled

摘要:

给出了一个有向图$G = (V,E)$,图中的$n$顶点和$m$边都是正的,边的权值是正的,图的参数是$k >0$ .我们展示了如何计算,为每个顶点$v \in V$,其$k$最近的邻居。该算法在$O( k ( n \log n + m ) )$时间内运行,并对Dijkstra的最短路径算法进行了一定程度的修改。这个结果可能是民间传说,但我们无法找到它的参考资料-因此,这张纸条。

英文摘要:

We are given a directed graph $G = (V,E)$ with $n$ vertices and $m$ edges, with positive weights on the edges, and a parameter $k >0$. We show how to compute, for every vertex $v \in V$, its $k$ nearest-neighbors. The algorithm runs in $O( k ( n \log n + m ) )$ 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分析而来,可能存在错误,请以论文正文为准。

↑