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

库函的效率不应该高太多

Posted by farui at 2004-05-05 22:06:19 on Problem 1002
In Reply To:从这题和1113可以看出系统自带的qsort比自己写的快排效率要高很多啊!! Posted by:hoho at 2004-05-05 17:18:41
库函代码优化得好,可以快一点,
可是库函为了通用,把判断做成了函数调用,增加了许多开销,
总体来说,应该和自己写效率持平
再说比较经典得算法,还是多写几遍好
每一遍都会有收获的

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