卷別
資料結構及演算法
計算國立政治大學 2026 · 考試 · 第 11 題
考科演算法
Consider the following graph with 10 vertices and weighted edges:
, , , , , , , , , , , , , , , , .
(a) (5%) Apply Prim's algorithm, starting from node A, to construct the minimum spanning tree. List the edges of the minimum spanning tree in the exact order they are added by the algorithm. Use the format (node1, node2).
(b) (5%) State the final total weight of the constructed minimum spanning tree.