演算法›Ch4 圖論演算法
第 105 題/共 111 題
◀ AL 105/111
105. Shortest Path、Algorithm Design
#AL-04-105易Shortest PathAlgorithm Design
題組題幹(本題:A,共 2 小題)點擊展開

A weighted graph G=(V,E)G=(V, E) is an undirected graph with nonnegative weight assigned to each edge in E. The length of a path in G is the sum of edge weights of the edges in the path. A path P from vertex u to vertex v is said to be shortest if the length of P is smallest for all paths from vertex u to vertex v.

(12%) For a weighted graph G=(V,E)G=(V, E) and two vertices x, y in V, give an efficient algorithm to find a shortest path from x to y. Analyses the time complexity of the algorithm.

📄 中央110
跳轉到第題
▤完整推導請見《WH 資工筆記 · 演算法》Ch4 圖論演算法
本章題號 · 101–111 / 111