| ||||||||||
| 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 | |||||||||
有多个环的时候你收缩哪个?In Reply To:这样不知道行不行 Posted by:atlas_of_rruucc at 2005-09-24 00:49:30 > 类似确定根的最小树型图的算法
> 1.对每个节点v都在所有{(u,v)}中选一条权最小的,连起来
> 2.判断有没有2个或者更多的有向环,有则类似的进行收缩,并修改G中边(和权),重复1
> 如果只有1个则转3
> 3.计算费用
>
> 子集的性质a),b),c)保证算法肯定会结束并得到一个满足条件a),b),c)的一个节点数等于边数的子图
>
> 如果用等价类判断有没有环速度不慢
> 不过我不肯定这样的结果是否最优
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator