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

Re:是Dijkstra 算法,大家别被误导了。!!!!!

Posted by Takk at 2008-07-31 19:10:05 on Problem 1797
In Reply To:是Dijkstra 算法,大家别被误导了。!!!!! Posted by:zhb_msqx at 2007-09-22 14:44:16
有人用Kruscal过了,我刚刚用prim也过了,看来此题解法多多...

从节点1开始用prim扩展最大生成树,记录父亲节点,然后找出节点n到1的路径中权值最小的边

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