The shortest path algorithm is a hot topic in computer science research, which has important theoretical significance and practical value at the same time. The shortest path problem has been applied in many fields, such as in the research fields of transportation system, emergency rescue system, electronic navigation system and so on. This topic is mainly directed to the single-source shortest path problem: given a weighted directed graph D = (V, E), where the weight of each edge is a real number. In addition, given a vertex in V, called the source. To calculate the shortest path length from the source to all other vertices. The length here refers to the sum of the weights on all sides of the road. In this topic, firstly, we use the adjacency matrix of the graph to realize the storage of the graph in the single-source shortest path problem. Secondly, we use the Dijkstra algorithm, Bellman-Ford algorithm and its improved algorithm, namely the SPFA algorithm, to find the solution from a certain source point to the remaining vertices Shortest path. Then use Matlab as the development platform to simulate and implement the single-source shortest path mining algorithm. Finally, through the test and comparison of these three algorithms, the following conclusions are drawn:
正在翻译中..