arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.22186cs.SImath.COmath.PR
收藏

无标度网络上的平衡双向广度优先搜索

Balanced Bidirectional Breadth-First Search on Scale-Free Networks

Sacha Cerf, Benjamin Dayan, Umberto De Ambroggio, Marc Kaufmann, Johannes Lengler, Ulysse Schaller

AI总结:

本研究针对无标度网络的最短路径查找问题,提出基于顶点级和边级精细平衡的双向BFS算法,在理论上取得更优运行时间界,并通过多类图的实验验证了效果。

摘要:

为在给定图中寻找两个节点$s_0$和$s_1$之间的最短路径,经典方法是从$s_0$启动广度优先搜索(Breadth-First Search,BFS)并持续运行,直到搜索发现$s_1$。另一种方法是启动两个广度优先搜索,分别从$s_0$和$s_1$出发,交替进行层扩展直到两者相遇。这种双向BFS可通过始终扩展目前已发现顶点数更少的一侧的层来实现平衡,通常能在真实网络中带来显著加速,且已被证明在Chung-Lu图、双曲随机图等无标度图模型上确实能达到次线性运行时间。\n我们通过采用更精细的平衡技术,改进了这种层平衡双向BFS方法。我们不在每次层扩展后比较两个BFS树的大小,而是在每次顶点扩展后进行比较。由此产生了两种算法,在幂律指数$\tau\in(2,3)$的无标度网络上,运行速度快于层平衡双向BFS。第一种是近似最短路径算法,输出长度最多比最短路径长1的路径,时间复杂度为$n^{(\tau-2)/(\tau-1)+o(1)}$。第二种是精确最短路径算法,运行时间为$n^{1/2+o(1)}$。当$s_0$和$s_1$从图的$n$个顶点中均匀随机选取时,这些运行时间界以高概率成立。我们还开发了一种适用于对抗性条件的边平衡双向BFS算法。当允许对手根据$s_0$和$s_1$的(期望)度数选择这两个节点时,这种近似最短路径算法以高概率在$n^{1/2+o(1)}$时间内运行。我们通过在Chung-Lu图、几何非均匀随机图(Geometric Inhomogeneous Random Graphs)和真实网络上的实验,补充了我们的理论结果。

英文摘要:

To find a shortest path between two nodes $s_0$ and $s_1$ in a given graph, a classical approach is to start a Breadth-First Search (BFS) from $s_0$ and run it until the search discovers $s_1$. Alternatively, one can start two Breadth-First Searches, one from $s_0$ and one from $s_1$, and alternate their layer expansions until they meet. This bidirectional BFS can be balanced by always expanding a layer on the side that has discovered fewer vertices so far. This usually results in significant speedups in real-world networks, and it has been shown that this indeed yields sublinear running time on scale-free graph models such as Chung-Lu graphs and hyperbolic random graphs. We improve this layer-balanced bidirectional BFS approach by using a finer balancing technique. Instead of comparing the size of the two BFS trees after each layer expansion, we perform this comparison after each vertex expansion. This gives rise to two algorithms that run faster than the layer-balanced bidirectional BFS on scale-free networks with power-law exponent $τ\in (2,3)$. The first one is an approximate shortest-path algorithm that outputs a path of length at most 1 longer than the shortest path in time $n^{(τ-2)/(τ-1)+o(1)}$. The second one is an exact shortest-path algorithm running in time $n^{1/2+o(1)}$. These runtime bounds hold with high probability when $s_0$ and $s_1$ are chosen uniformly at random among the $n$ vertices of the graph. We also develop an edge-balanced bidirectional BFS algorithm that works under adversarial conditions. This approximate shortest-path algorithm runs in time $n^{1/2+o(1)}$ with high probability when the adversary is allowed to choose $s_0$ and $s_1$ based on their (expected) degree. We complement our theoretical results with experiments on Chung-Lu graphs, Geometric Inhomogeneous Random Graphs, and real-world networks.

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

↑