[理工] [資結]-政大98

看板Grad-ProbAsk作者 (袋哥)時間14年前 (2010/03/04 14:55), 編輯推噓8(805)
留言13則, 8人參與, 最新討論串1/1
8. Which of the following is FALSE concerning a graph with v vertices and e edges? (B) There exist algorithms in which finding the shortest path from the source to another vertex is any faster (by more than a constant factor) than finding the shortest paths from the source to all the other vertices (D) It is possible to depth first traversal a graph in linear time 我用刪去法大概知道(B)是錯的,不知道為什麼? (D)是對的,因為用adajacency list表示是O(V+E)嗎? PART III 2.(1) 洪x解答的array[13]應該是75,不是空的吧? 感謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.84.63.154

03/04 15:03, , 1F
8.答案是C?
03/04 15:03, 1F

03/04 15:14, , 2F
答案是B C是對的
03/04 15:14, 2F

03/04 15:24, , 3F
喔喔~請問b錯在哪邊呢
03/04 15:24, 3F

03/04 15:25, , 4F
這就是我的問題啦
03/04 15:25, 4F

03/04 15:49, , 5F
我是覺得可能不管是哪一個都必須把所有邊走過一遍 所以沒有
03/04 15:49, 5F

03/04 15:50, , 6F
所以比較快 我也不知道這樣說對不對 有錯請指教
03/04 15:50, 6F

03/04 15:50, , 7F
我也覺得是出在"比較快"<=頂多一樣快而已...
03/04 15:50, 7F

03/04 15:51, , 8F
嚴格講的話dijkstra 會在找到點後停止
03/04 15:51, 8F

03/04 15:53, , 9F
可能沒有強調在沒有nagetive edge下吧 若是negative edg
03/04 15:53, 9F

03/04 15:53, , 10F
應該就相同速度了吧
03/04 15:53, 10F

03/04 16:06, , 11F
我想問題出在any那個字。 AVL Tree那題的確少75
03/04 16:06, 11F

03/04 16:19, , 12F
針對b 應該是現在不存在.. 還是說有證明是不可能?
03/04 16:19, 12F

03/05 07:53, , 13F
標題錯誤
03/05 07:53, 13F
※ 編輯: stevenwin 來自: 219.85.159.52 (03/06 16:49)
文章代碼(AID): #1BZrbmv5 (Grad-ProbAsk)