Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:Dijkstra复杂度到底是多少

Posted by chaeyeon at 2009-02-07 10:07:52
In Reply To:Re:Dijkstra复杂度到底是多少 Posted by:5438 at 2009-02-07 08:59:03
只用第一种就行啦
第二种代码太长, 而且效率不怎么样。
如果第二种好的话, 不如把堆改成4叉或8叉的, 然后第一种往往就更好了。


平时应用一般不用堆, 开个队列更新就是了。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator