The idea of Dijkstra's algorithm is to first divide all vertices V in graph D into a vertex set S and a vertex set T. In set S, the end point of the shortest path has been determined by taking v as the source point. Initially, set S only contains vertex v, while set T is the vertex of the shortest path to source point v. Then select the point with the shortest path in the S set from the T set each time, and add it to the set S, and delete this point from the set T. Until the T set is empty.
正在翻译中..