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 |
kruskal确实比prim慢我的经过优化的kruskal用了422ms,而没有任何优化的prim只用360ms。 理论上kruskal的复杂度为ElogE,而prim为(E+V)logV,prim对于稠密图确实快一些 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator