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

果然一说网络流,lord wu 就神秘显身了,见内。。

Posted by richardxx at 2007-10-23 12:00:11 on Problem 3422
In Reply To:O(mnc)?c是费用?你用消负环? Posted by:wywcgs at 2007-10-23 11:39:32
没消负圈哈,用Johnson算法reweight了的。。
我目前还只知道朴素的primal-dual实现,我估计不出复杂度,应该不是教主想要的O(n^3)的。。。

这题我就是写的SSP,的确效果还比较好,不知道放个Dinic进去把搞成primal-dual会是什么样子。。
还有就是,为什么这题ssp好点呢??

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