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

约束最短路径与层次结构

Constrained Shortest Path and Hierarchical Structures

Adil Erzin, Roman Plotnikov, Ilya Ladygin

摘要:

约束最短路径(CSP)问题如下。给出了一个$n$ -顶点图,每个边/弧分配两个权值.为了明确起见,让我们称它们为“成本”和“长度”。需要在给定的一对顶点之间找到最小成本上界长度路径。即使所有边的长度都相同,问题也是NP难的。为此,文献中提出了各种近似算法,其中路径长度的约束可以通过将一条边的权值视为代价和长度的线性组合来解决。通过改变线性组合中的乘数值,可行的解决方案为具有新权重的函数提供最小值。同时,Dijkstra算法或其修改被用来构建最短路径与当前的边的权重。然而,如果图不够大,这种方法可能会很耗时。在这篇文章中,我们建议寻找一个解决方案,而不是在原来的图,但专门构造的层次结构(HS)。我们证明了HS中的最短路径是以$O(m)$ -时间复杂度构造的,其中$m$是图的边/弧的数量,并且在整数成本和边的长度的情况下,找到了近似解,具有$O(m\log n)$ -时间复杂度。先验估计的算法的准确性取决于参数的问题,可以是显着的。因此,为了评估算法的有效性,我们进行了数值实验的道路图的特大城市和随机构造的单位圆盘图(UDG)。数值实验结果表明,与用Dijkstra算法在原图中建立最小权路径的方法相比,HS算法在原图中建立接近最优解的速度要快10--100倍。

英文摘要:

The Constraint Shortest Path (CSP) problem is as follows. An $n$-vertex graph is given, each edge/arc assigned two weights. Let us call them "cost" and "length" for definiteness. Finding a min-cost upper-bounded length path between a given pair of vertices is required. The problem is NP-hard even when the lengths of all edges are the same. Therefore, various approximation algorithms have been proposed in the literature for it. The constraint on path length can be accounted for by considering one edge weight equals to a linear combination of cost and length. By varying the multiplier value in a linear combination, a feasible solution delivers a minimum to the function with new weights. At the same time, Dijkstra's algorithm or its modifications are used to construct the shortest path with the current weights of the edges. However, with insufficiently large graphs, this approach may turn out to be time-consuming. In this article, we propose to look for a solution, not in the original graph but specially constructed hierarchical structures (HS). We show that the shortest path in the HS is constructed with $O(m)$-time complexity, where $m$ is the number of edges/arcs of the graph, and the approximate solution in the case of integer costs and lengths of the edges is found with $O(m\log n)$-time complexity. The a priori estimate of the algorithm's accuracy turned out to depend on the parameters of the problem and can be significant. Therefore, to evaluate the algorithm's effectiveness, we conducted a numerical experiment on the graphs of roads of megalopolis and randomly constructed unit-disk graphs (UDGs). The numerical experiment results show that in the HS, a solution close to optimal one is built 10--100 times faster than in the methods which use Dijkstra's algorithm to build a min-weight path in the original graph.

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

↑