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

这题究竟要多少复杂度才能过,求大牛释疑

Posted by scuwf at 2012-05-12 07:39:37 on Problem 4046
1.Dij+heap O(n^2logn+nm)+O(nQ)的复杂度
2.SPFA O(knm)+O(nQ)的复杂度
我想如果SPFA做下SFL或者LLL的优化也不会比Dij+heap快吧,因为从这题数据量上来说Dij+heap差不多为O(1.5*nm)+O(nQ),而SPFA中k的平均值大概为2,即使做了优化也是1~2之间,所以我觉得Dij+heap应该能过啊,求大牛释疑。

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