[理工] [資結] 交大99資訊聯招
Given a weighted graph and two vertices s and t, we want to find a longest
path from s to t. Which of the following statements are WRONG about this
problem?
(i)This problem has a polynomial time algorithm.
(ii)This problem can be solved by transforming it into shortest path problem.
(iii)This problem can be solved by using Dynamic Programming.
(iv)For a connected weighted graph the longest path has at least 3 edges.
(v)For a graph with n vertices, if the longest path has n-1 edges,then it
passes through each vertex exactly once.
答案是(i)(ii)(iv)
我的問題是第(iii),我記得longest problem是NP-Complete吧?他可以用DP解嗎...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.27.122.17
→
01/24 17:02, , 1F
01/24 17:02, 1F
→
01/24 17:03, , 2F
01/24 17:03, 2F
推
01/24 17:54, , 3F
01/24 17:54, 3F
→
01/24 18:06, , 4F
01/24 18:06, 4F
→
01/24 18:07, , 5F
01/24 18:07, 5F
→
01/24 18:09, , 6F
01/24 18:09, 6F
→
01/24 18:09, , 7F
01/24 18:09, 7F
→
01/24 18:33, , 8F
01/24 18:33, 8F
→
01/24 18:35, , 9F
01/24 18:35, 9F
→
01/24 21:06, , 10F
01/24 21:06, 10F
→
09/11 14:10, , 11F
09/11 14:10, 11F