是非題 (15 points). For each of the following statements, determine whether it is correct (T) or not (F).
1. 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\).
2. The function \(\lceil\lg n\rceil!\) is polynomially bounded.
3. If the depth-first search of a graph \(G\) yields no back edges, then the graph \(G\) is acyclic.
4. Suppose \(P_1\) and \(P_2\) are problems and \(P_1\le_pP_2\). If \(P_2\) can be solved by an algorithm with time complexity \(\lceil\lg\lg n\rceil!\), then \(P_1\in\mathrm P\).
5. Sorting 8 elements with a comparison sort requires 24 comparisons in the worst case.
1. 反例:三角形邊 \(w(a,b)=1,\ w(b,c)=1,\ w(a,c)=1.5\);MST 取 \(ab,bc\),但 \(a\to c\) 最短路徑是直接那條 1.5 不在 T 內。MST 只管總和最小,不保證兩點間最短 → F
2. 令 \(m=\lceil\lg n\rceil\),\(m!\ge(m/e)^m=2^{m\lg m-m\lg e}\);而 \(n^c\le2^{c(m)}\)(\(\lg n\le m\))
\(m\lg m-1.44m\) 比任何 \(cm\) 長得快,所以對任何常數 \(c\),\(n\) 夠大時 \(\lceil\lg n\rceil!\gt n^c\) → 不是多項式有界 → F
3. DFS 有環就一定出現 back edge(有向、無向都成立);沒有 back edge → 無環 → T
4. 令 \(m=\lceil\lg\lg n\rceil\),\(m!\le m^m=2^{m\lg m}\),而 \(m\lg m\approx\lg\lg n\cdot\lg\lg\lg n=o(\lg n)\) → \(m!=n^{o(1)}\),多項式有界,\(P_2\in\mathrm P\)
\(P_1\le_pP_2\)(多項式時間歸約) → \(P_1\in\mathrm P\) → T
5. decision tree 有 \(8!=40320\) 個 leaf,高度 \(\ge\lceil\lg 40320\rceil=16\),merge insertion 恰 16 次就排得完,最壞情形 16、不是 24 → F
1 F 2 F 3 T 4 T 5 F