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是O(N^2),以前写的都是O(N^3),幸好这次超时,让我发出了自己的错误!

Posted by lync at 2009-05-09 22:41:37 on Problem 1751
提交之后超时,经人提醒,发现自己写的prim是prim是O(N^3),这此之前已经做了4个
最小生成树的题了,一真没有发现这个问题,修改代码变成O(N^2),AC
这次超时值了!

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