由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - sort algorithm
相关主题
underlying sort algorithm for SET in STL?Algorithms and Data Structures那本比较好呢?
A STL sorting algorithm problemIntroduction to Algorithms | The MIT Press
一个STL的问题真心求助 .net c# 算法,数据结构书,网站
Efficient algorithms for finding number, help pleasequestion about google algorithm/architecture (转载)
三道 Amazon Onsite Coding 题问个简单的算法题
今天电面又被老印黑了。。。。 (转载)[转载] CS Algorithm Interview question
Re: 有娃有老公,但是却感觉自己什么都没有。 (转载)求购 书 算法
请问有什么c++ algorithm and data structure 好的书吗?An algorithm question.
相关话题的讨论汇总
话题: sort话题: algorithm话题: algorithms话题: did话题: now
进入Programming版参与讨论
1 (共1页)
w**q
发帖数: 3
1
Implement an algorithm to sort a linked list. Why did you pick the method
you did? Now do it in O(n) time.
how to get O(n)???
The famous sort algorithms are all O(nlog(n))
thanks a lto!
d*****u
发帖数: 17243
2
如果不计memory成本的话,是可以有O(n)的time complexity的
比如bucket sort

【在 w**q 的大作中提到】
: Implement an algorithm to sort a linked list. Why did you pick the method
: you did? Now do it in O(n) time.
: how to get O(n)???
: The famous sort algorithms are all O(nlog(n))
: thanks a lto!

g*****g
发帖数: 34805
3
Only counting sort is O(n), if you know the range.

【在 w**q 的大作中提到】
: Implement an algorithm to sort a linked list. Why did you pick the method
: you did? Now do it in O(n) time.
: how to get O(n)???
: The famous sort algorithms are all O(nlog(n))
: thanks a lto!

r*******n
发帖数: 3020
4
The sort algorithms based on comparison are limited by nlogn

【在 w**q 的大作中提到】
: Implement an algorithm to sort a linked list. Why did you pick the method
: you did? Now do it in O(n) time.
: how to get O(n)???
: The famous sort algorithms are all O(nlog(n))
: thanks a lto!

1 (共1页)
进入Programming版参与讨论
相关主题
An algorithm question.三道 Amazon Onsite Coding 题
an algorithm question on tree今天电面又被老印黑了。。。。 (转载)
Introduction to Algorithms 有课后题目的答案么? (转载)Re: 有娃有老公,但是却感觉自己什么都没有。 (转载)
Θ(n)是什么意思?请问有什么c++ algorithm and data structure 好的书吗?
underlying sort algorithm for SET in STL?Algorithms and Data Structures那本比较好呢?
A STL sorting algorithm problemIntroduction to Algorithms | The MIT Press
一个STL的问题真心求助 .net c# 算法,数据结构书,网站
Efficient algorithms for finding number, help pleasequestion about google algorithm/architecture (转载)
相关话题的讨论汇总
话题: sort话题: algorithm话题: algorithms话题: did话题: now