| ||||||||||
| 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 | |||||||||
问一个二分匹配匈牙利算法正确性的问题问一个二分匹配匈牙利算法正确性的问题 匈牙利算法显然是正确的,但是在实现方式上,发现 就是在二分匹配的匈牙利算法中 有如下代码: for( int i=0;i<n;i++) if(find ( i )) res++ 只迭代了一遍,那么如果find( i )返回false, find( j )返回true (j>i) 那么再次调用find( i )会不会返回true? 为什么呢 谢谢 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator