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

这个结果,是说明STL rbtree就是比treap高效,还是我的treap代码太烂了?

Posted by frkstyc at 2005-06-06 16:43:21
In Reply To:to palm:STL rbtree vs treap timing test result Posted by:frkstyc at 2005-06-06 15:17:09
> 数据规模:1至2097152的所有自然数,由STL random_shuffle乱序存放在文件中
> 测试方法:使用C++标准库的流式文件,从文件读入,排序输出到文件
> 计时方法:Windows API CreateProcess+GetProccesTimes,取User Time
> 测试环境:Intel Pentium M 1.5G, 256M, Windows XP SP1
> 测试结果:
> STL set: 15.171s
> treap: 16.283s
> deque(参考,无排序):8.672s

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