arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.08624cs.DScs.DMcs.SI
收藏

大型网络中近似最短路径的次线性算法

A Sublinear Algorithm for Approximate Shortest Paths in Large Networks

Sabyasachi Basu, Nadia Kōshima, Talya Eden, Omri Ben-Eliezer, C. Seshadhri

AI总结:

本文提出 WormHole 算法与数据结构,利用社交网络核心—边缘结构构建次线性索引,在低预处理成本下快速返回近似最短路径,并给出实验与理论保证。

摘要:

在海量真实世界网络中计算距离并寻找最短路径,是网络分析中的一项基础算法任务。解决该任务主要有两类方法。一方面是基于遍历的算法,例如双向广度优先搜索(BiBFS),它们没有预处理步骤,但单次距离查询较慢。另一方面是基于索引的方法,它们维护一个大型索引;这使得单次查询可以得到非常快的回答,然而索引创建的成本高得令人难以承受。我们试图弥合这两个极端:无需昂贵预处理即可快速回答距离查询。在本文中,我们提出了一种用于近似最短路径计算的新算法和数据结构 WormHole。WormHole 利用社交网络的结构性质来构建次线性规模的索引,并借鉴了 Ben-Eliezer 等人提出的显式核心—边缘分解。从实验上看,WormHole 的预处理时间比基于索引的解决方案改进了数个数量级,而且单次查询始终比 BiBFS 快得多。这种加速的代价是轻微的准确性折衷。尽管如此,我们的实验证据表明,WormHole 能够在最大加性误差为 2 的范围内准确回答几乎所有查询。我们还以可证明的理论保证补充这些实验结果,表明在随机幂律网络中,WormHole 每次距离查询需要 $n^{o(1)}$ 次节点查询。相比之下,任何没有预处理步骤的方法在同一任务上都需要 $n^{Ω(1)}$ 次查询。WormHole 不需要读取整个图。与绝大多数基于索引的算法不同,它返回路径,而不仅仅是距离。为了获得更快的查询时间,它还可以与其他基于索引的解决方案有效结合,只需在次线性核心上运行这些方案。

英文摘要:

Computing distances and finding shortest paths in massive real-world networks is a fundamental algorithmic task in network analysis. There are two main approaches to solving this task. On one hand are traversal-based algorithms like bidirectional breadth-first search (BiBFS) with no preprocessing step and slow individual distance inquiries. On the other hand are indexing-based approaches, which maintain a large index. This allows for answering individual inquiries very fast; however, index creation is prohibitively expensive. We seek to bridge these two extremes: quickly answer distance inquiries without the need for costly preprocessing. In this work, we propose a new algorithm and data structure, WormHole, for approximate shortest path computations. WormHole leverages structural properties of social networks to build a sublinearly sized index, drawing upon the explicit core-periphery decomposition of Ben-Eliezer et al. Empirically, the preprocessing time of WormHole improves upon index-based solutions by orders of magnitude, and individual inquiries are consistently much faster than in BiBFS. The acceleration comes at the cost of a minor accuracy trade-off. Nonetheless, our empirical evidence demonstrates that WormHole accurately answers essentially all inquiries within a maximum additive error of 2. We complement these empirical results with provable theoretical guarantees, showing that WormHole requires $n^{o(1)}$ node queries per distance inquiry in random power-law networks. In contrast, any approach without a preprocessing step requires $n^{Ω(1)}$ queries for the same task. WormHole does not require reading the whole graph. Unlike the vast majority of index-based algorithms, it returns paths, not just distances. For faster inquiry times, it can be combined effectively with other index-based solutions, by running them only on the sublinear core.

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

↑