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

匈牙利算法+优化水过……Orz js

Posted by This_poet at 2011-09-23 21:36:27 on Problem 3614
这题裸的匈牙利算法必然TLE得很惨,然而如果在比赛时木有想到贪心,只看到了匈牙利算法,于是想到神js(POJ User:yefllower)提过的匈牙利算法优化:先搜出一个匹配,然后再按照匈牙利算法来寻找增广路,这样的复杂度接近线性【这是可以证明的】,于是800+ms水过……
再次Orz js……

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