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

不是的啊

Posted by TN at 2005-05-10 18:04:45 on Problem 1679
In Reply To:Re:我用的Kruskal,只要求一下次小生成树就行了 Posted by:uni at 2005-05-10 17:48:48
先求最小生成树

然后分别去掉最小生成树中的每一条边,求最小生成树

这些生成树中权和最小的就是次小生成树,如果他的权和和最小生成树相同,就是
!Unique
Else Unique

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