For each of the following statements to indicate whether the statement is true or false, respectively. If the statement is true, briefly state why. If the statement is false, explain why or give a counterexample. You will be deducted one point with wrong justification or without justification.
a. Let \(G=(V,E)\) be a directed graph with negative-weight edges, but no negative-weight cycles. Then, one can compute all shortest paths from a source \(s\in V\) to all \(v\in V\) faster than Bellman-Ford using the technique of reweighting.
b. Let \(G=(V,E)\) be a connected, undirected graph with edge weights, and assume all edge weights are distinct. Consider a cycle \(\langle v_1,v_2,\ldots,v_k,v_{k+1}\rangle\) in \(G\), where \(v_{k+1}=v_1\), and let \((v_i,v_{i+1})\) be the edge in the cycle with the largest edge weight. The \((v_i,v_{i+1})\) does not belong to the minimum spanning tree \(T\) of \(G\).
c. Let \(T\) be a minimum spanning tree of \(G\). Then, for any pair of vertices \(s\) and \(t\), the shortest path from \(s\) to \(t\) in \(G\) is the path from \(s\) to \(t\) in \(T\).
d. Given a weighted directed graph \(G=(V,E,w)\) and a shortest path \(p\) from \(s\) to \(t\), if we doubled the weight \(w\) to every edge to produce \(G_0=(V,E,w_0)\), then \(p\) is also a shortest path in \(G_0\).
e. Let \(G\) be an arbitrary flow network, with a source \(s\), a sink \(t\), and a positive integer capacity \(c_e\) on every edge \(e\); and let \((A,B)\) be a minimum \(s\)-\(t\) cut with respect to these capacities. Now suppose we add 1 to every capacity; then \((A,B)\) is still a minimum \(s\)-\(t\) cut with respect to these new capacities.
a F。reweighting 要先算 \(h(v)\),而 \(h\) 本身就是在含負邊的圖上跑一次 Bellman–Ford,\(O(VE)\)。單一 source 的總時間不會比直接跑 Bellman–Ford 快(Johnson 的好處在 all-pairs)
b T。cycle property:若 \((v_i,v_{i+1})\) 在 MST \(T\) 中,拿掉它 \(T\) 被切成兩塊,cycle 上其餘的邊必有一條跨過這個切口,用它接回來得到權重更小的 spanning tree(權重互異),矛盾
c F。MST 只保證總權重最小。反例:點 \(s,a,t\),\(w(s,a)=2,\ w(a,t)=2,\ w(s,t)=3\);MST 是 \(\{sa,at\}\),\(T\) 上 \(s\) 到 \(t\) 是 4,圖上直接走 \(st\) 只要 3
d T。每條路徑的總權重都乘 2,路徑間的大小關係不變,原來最短的 \(p\) 仍然最短
e F。每條邊加 1,一個 cut 的容量增加它所含的邊數,邊多的 cut 漲得比較多。反例:\(S\to A\) 容量 4,\(A\) 到 \(T\) 有三條平行的容量各為 1 的邊;min cut 是後三條(容量 3);每條邊加 1 後變 6,而 \((S,A)\) 這個 cut 只有 5,min cut 換成 \((S,A)\)
a F b T c F d T e F