arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.03052cs.DScs.DM
收藏

真实世界大规模图上1-中位数问题的快速近似算法

Fast approximation algorithms for the 1-median problem on real-world large graphs

Keisuke Ueta, Wei Wu, Mutsunori Yagiura

AI总结:

针对大规模图上1-中位数问题精确求解计算成本高的痛点,提出三种提前终止Dijkstra算法的快速近似算法,给出理论近似比保证,实验证实其在保持近最优精度的同时运行速度远快于基线精确方法。

摘要:

无向加权图上的1-中位数问题(1MP)旨在找到一个设施位置,使其到所有客户节点的总加权距离最小。尽管1MP可以通过计算每个客户节点的单源最短路径精确求解,但这类方法在拥有数百万节点的大规模图上会产生极高的计算成本。在许多真实世界应用中,例如基于大规模知识图谱的推荐系统,节点(即潜在设施位置)的数量极为庞大,而客户节点的数量相对较少且在空间上集中分布。在这种情况下,穷举式的图遍历不仅效率低下,而且毫无必要。基于这一观察,我们提出了三种通过提前终止Dijkstra算法来减少计算量的近似算法。我们提供的理论分析表明,其中一种所提算法可保证2的近似比,另外两种算法则将该近似比提升至1.618。我们通过构造一个具体实例,证明了近似比的下界为1.2。此外,我们还证明了当客户节点数量小于等于3时,所有所提算法均能返回最优解。大量实验表明,我们的算法在运行时间上显著优于基线精确方法,同时在所有测试的图类型上均保持接近最优的精度。值得注意的是,在拥有1000万个节点的网格图上,我们的算法在1毫秒内即可得到全部最优解,而基线精确方法平均需要70秒以上。

英文摘要:

The 1-median problem (1MP) on undirected weighted graphs seeks to find a facility location minimizing the total weighted distance to all customer nodes. Although the 1MP can be solved exactly by computing the single-source shortest paths from each customer node, such approaches become computationally expensive on large-scale graphs with millions of nodes. In many real-world applications, such as recommendation systems based on large-scale knowledge graphs, the number of nodes (i.e., potential facility locations) is enormous, whereas the number of customer nodes is relatively small and spatially concentrated. In such cases, exhaustive graph exploration is not only inefficient but also unnecessary. Leveraging this observation, we propose three approximation algorithms that reduce computation by terminating Dijkstra's algorithm early. We provide theoretical analysis showing that one of the proposed algorithms guarantees an approximation ratio of 2, whereas the other two improve this ratio to 1.618. We demonstrate that the lower bound of the approximation ratio is 1.2 by presenting a specific instance. Moreover, we show that all proposed algorithms return optimal solutions when the number of customer nodes is less than or equal to three. Extensive experiments demonstrate that our algorithms significantly outperform baseline exact methods in runtime while maintaining near-optimal accuracy across all tested graph types. Notably, on grid graphs with 10 million nodes, our algorithms obtains all optimal solutions within 1 millisecond, whereas the baseline exact method requires over 70 seconds on average.

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

↑