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:杯具了,用spfa和heap+dij都写了一遍,竟然都是6000+,请问这是什么原因(我链表是动态的)

Posted by duanxian0621 at 2011-08-13 11:24:09 on Problem 1511
In Reply To:杯具了,用spfa和heap+dij都写了一遍,竟然都是6000+,请问这是什么原因(我链表是动态的) Posted by:__24__ at 2010-08-13 10:26:09
动态建链表肯定耗时了。我是SPFA+queue+静态链表(或spfa+stack+静态链表)用时1900MS+。如果对SPFA用SLF+SLL优化的话应该就更快了。

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