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啊?为啥你老是害我啊

Posted by liuyu523115237 at 2011-10-01 19:30:03 on Problem 2516
In Reply To:我可怜的SPFA啊?为啥你老是害我啊 Posted by:jiangke at 2010-04-17 17:14:16
LZ怎么能这么想啊? Dijkstra是因为每次贪心的用最短路来更新才能够;
而spfa 实际上是个暴搜,只是用队列是减少了很多重复,才高效, 所以不能。。

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