由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - stl的nth_element的复杂度是不是O(N)?
相关主题
register variable靠。Sedgewick这3w-qsort算法居然还有bug!
which style do you prefer?Interview question
Think Python算法问题
How does YAHOO calculate RSI? (转载)大家看看这个简单的qsort排序的问题
请教template和factory有啥区别?C++如何pass一个变量给一个函数,但是函数声明却没有这个变量?
map是用什么data structure来implement的?code question
再来讨论一直算法课的作业吧c++一个问题
好了。终于把3-way qsort完成标准优化了:)问个MATRIX的题
相关话题的讨论汇总
话题: nth话题: element话题: depends话题: stl
进入Programming版参与讨论
1 (共1页)
k****f
发帖数: 3794
1
怎么证明的?
g*****g
发帖数: 34805
2
Depends on the implementation, many structures are implemented
by array and O(1) for access.

【在 k****f 的大作中提到】
: 怎么证明的?
P*****f
发帖数: 2272
3
I remember the semantics is to return the nth smallest element

Depends on the implementation, many structures are implemented
by array and O(1) for access.

【在 g*****g 的大作中提到】
: Depends on the implementation, many structures are implemented
: by array and O(1) for access.

t****t
发帖数: 6806
4
http://en.wikipedia.org/wiki/Selection_algorithm

【在 k****f 的大作中提到】
: 怎么证明的?
k**f
发帖数: 92
5
看了那本经典的书,果然是O(N)算法,和qsort长得太象了

【在 t****t 的大作中提到】
: http://en.wikipedia.org/wiki/Selection_algorithm
1 (共1页)
进入Programming版参与讨论
相关主题
问个MATRIX的题请教template和factory有啥区别?
两个矩阵的算法题map是用什么data structure来implement的?
请教一个字符串比较排序的问题再来讨论一直算法课的作业吧
about STL functor and function pointers好了。终于把3-way qsort完成标准优化了:)
register variable靠。Sedgewick这3w-qsort算法居然还有bug!
which style do you prefer?Interview question
Think Python算法问题
How does YAHOO calculate RSI? (转载)大家看看这个简单的qsort排序的问题
相关话题的讨论汇总
话题: nth话题: element话题: depends话题: stl