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

晕,原来用prim这题过不去...

Posted by a024014 at 2007-08-26 21:24:35 on Problem 3357
In Reply To:Re:who can tell me where I am wrong???help!! thx!! Posted by:a024014 at 2007-08-25 16:45:22
不妨,假设A有两条边,A->D,A->E,他们的权值一样, 则会先选择A->D,然后又选择D-X
假设权值为20,然而有可能,E->B有边而且权值也等于20,这样就出错了.因为B->E明显优于D->X这条边

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