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

kruskal确实比prim慢

Posted by Zenomyth at 2013-10-29 10:59:26 on Problem 1789
我的经过优化的kruskal用了422ms,而没有任何优化的prim只用360ms。
理论上kruskal的复杂度为ElogE,而prim为(E+V)logV,prim对于稠密图确实快一些

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