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 |
原来真正的prim是O(N^2),以前写的都是O(N^3),幸好这次超时,让我发出了自己的错误!提交之后超时,经人提醒,发现自己写的prim是prim是O(N^3),这此之前已经做了4个 最小生成树的题了,一真没有发现这个问题,修改代码变成O(N^2),AC 这次超时值了! Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator