Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
匈牙利算法+优化水过……Orz js这题裸的匈牙利算法必然TLE得很惨,然而如果在比赛时木有想到贪心,只看到了匈牙利算法,于是想到神js(POJ User:yefllower)提过的匈牙利算法优化:先搜出一个匹配,然后再按照匈牙利算法来寻找增广路,这样的复杂度接近线性【这是可以证明的】,于是800+ms水过…… 再次Orz js…… Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator