← 回題庫

卷別

資料結構與演算法(A)

選擇

國立臺灣大學 2022 · 考試 · 第 19 題

考科演算法

(5 points) Consider the following undirected graph GG. Let TT be the minimum spanning tree (MST) of the graph. Which is INCORRECT?

Vertices V1,…,V7V_1, \dots, V_7 with edges and weights:

  • (V1,V4)=1(V_1, V_4) = 1
  • (V1,V3)=3(V_1, V_3) = 3
  • (V2,V7)=2(V_2, V_7) = 2
  • (V1,V2)=8(V_1, V_2) = 8
  • (V2,V3)=14(V_2, V_3) = 14
  • (V1,V7)=16(V_1, V_7) = 16
  • (V4,V3)=20(V_4, V_3) = 20
  • (V4,V5)=21(V_4, V_5) = 21
  • (V1,V6)=25(V_1, V_6) = 25
  • (V5,V6)=28(V_5, V_6) = 28
  • (V6,V7)=15(V_6, V_7) = 15
  • (V1,V5)=36(V_1, V_5) = 36
  • (A)
    Edge (V1,V4)(V_1, V_4) is in TT
  • (B)
    Edge (V4,V5)(V_4, V_5) is in TT
  • (C)
    Let w4,5w_{4,5} be the weight of (V4,V5)(V_4, V_5). If we decrease w4,5w_{4,5} by 16 (i.e., w4,5w_{4,5} becomes 5), then TT remains to be the MST of GG
  • (D)
    Let w2,3w_{2,3} be the weight of (V2,V3)(V_2, V_3). If we decrease w2,3w_{2,3} by 10 (i.e., w2,3w_{2,3} becomes 4), then TT remains to be the MST of GG
  • (E)
    none of the other choices

標準解析

AI 生成