题目
The network in Figure 2 shows the distances, in miles, between ten towns, A, B, C, H, L, M, P, S, W and Y.
(a) Use Kruskal’s algorithm to find a minimum spanning tree for the network. You should list the arcs in the order in which you consider them. In each case, state whether you are adding the arc to your minimum spanning tree.
The table shows the shortest distances, in miles, between the ten towns.
(b) Use Prim’s algorithm on the table, starting at A, to find the minimum spanning tree for this network. You must clearly state the order in which you select the arcs of your tree.
(c) State the weight of the minimum spanning tree found in (b).
Sharon needs to visit all of the towns, starting and finishing in the same town, and wishes to minimise the total distance she travels.
(d) Use your answer to (c) to calculate an initial upper bound for the length of Sharon’s route.
(e) Use the nearest neighbour algorithm on the table, starting at W, to find an upper bound for the length of Sharon’s route. Write down the route which gives this upper bound.
Using the nearest neighbour algorithm, starting at Y, an upper bound of length 212 miles was found.
(f) State the best upper bound that can be obtained by using this information and your answers from (d) and (e). Give the reason for your answer.
(g) By deleting W and all of its arcs, find a lower bound for the length of Sharon’s route.
Sharon decides to take the route found in (e).
(h) Interpret this route in terms of the actual towns visited.
题目中文翻译
图 2 中的网络显示了十个城镇 A、B、C、H、L、M、P、S、W 和 Y 之间的距离(单位:英里)。
(a) 使用 Kruskal 算法找到网络的最小生成树。应按考虑顺序列出弧。在每种情况下,说明是否将弧添加到最小生成树中。
表格显示了十个城镇之间的最短距离(单位:英里)。
(b) 在表格上使用 Prim 算法,从 A 开始,找到此网络的最小生成树。必须清楚说明选择树弧的顺序。
(c) 写出 (b) 中找到的最小生成树的权重。
Sharon 需要访问所有城镇,从同一城镇出发并回到同一城镇,并希望最小化旅行总距离。
(d) 使用 (c) 的答案计算 Sharon 路线长度的初始上界。
(e) 在表格上使用最近邻算法,从 W 开始,找到 Sharon 路线长度的上界。写出给出此上界的路线。
使用最近邻算法,从 Y 开始,找到长度为 212 英里的上界。
(f) 说明使用此信息和 (d) 和 (e) 的答案可以获得的最佳上界。给出理由。
(g) 通过删除 W 及其所有弧,找到 Sharon 路线长度的下界。
Sharon 决定采用 (e) 中找到的路线。
(h) 根据实际访问的城镇解释此路线。