由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 请问这个面试题想考啥啊?
相关主题
Efficient algorithms for finding number, help pleaseIntroduction to Algorithms | The MIT Press
三道 Amazon Onsite Coding 题真心求助 .net c# 算法,数据结构书,网站
贡献一下:本版上搜集的 Google 面试题 (转载)question about google algorithm/architecture (转载)
又一道面试题,我是不是想多了?有谁看过youtube上的算法课吗?
百度面试题,any idea?Interview questions about hash function
请问有什么c++ algorithm and data structure 好的书吗?STL map
sort algorithmslack got hacked, 没一个安全的
Algorithms and Data Structures那本比较好呢?consistent hashing实际应用
相关话题的讨论汇总
话题: algorithms话题: case话题: give话题: state话题: set
进入Programming版参与讨论
1 (共1页)
d****n
发帖数: 130
1
Give efficient algorithms for finding the largest k values (in order) out of
a set of n, using comparisons only (e.g. no hashing), in the case where: (a
) k = 3 (b) k = n/2; (c) k = log(n). (You can use a different algorithm for
each case.) State the asymptotic worst-case running time of your algorithms.
"
(b)and (c)有什么不同?
v*****u
发帖数: 1796
2
(b): O(n) -- O(n) to find median and then another n to seperate the set
(c): no idea.

of
(a
for
algorithms.

【在 d****n 的大作中提到】
: Give efficient algorithms for finding the largest k values (in order) out of
: a set of n, using comparisons only (e.g. no hashing), in the case where: (a
: ) k = 3 (b) k = n/2; (c) k = log(n). (You can use a different algorithm for
: each case.) State the asymptotic worst-case running time of your algorithms.
: "
: (b)and (c)有什么不同?

C*******l
发帖数: 105
3
土问一下,O(n)能找出median吗?

【在 v*****u 的大作中提到】
: (b): O(n) -- O(n) to find median and then another n to seperate the set
: (c): no idea.
:
: of
: (a
: for
: algorithms.

d****n
发帖数: 130
4
(b) 结果中的K个数字是要SORT好的。你这方法比quick selection快?

【在 v*****u 的大作中提到】
: (b): O(n) -- O(n) to find median and then another n to seperate the set
: (c): no idea.
:
: of
: (a
: for
: algorithms.

1 (共1页)
进入Programming版参与讨论
相关主题
consistent hashing实际应用百度面试题,any idea?
[转载] CS Algorithm Interview question请问有什么c++ algorithm and data structure 好的书吗?
求购 书 算法sort algorithm
An algorithm question.Algorithms and Data Structures那本比较好呢?
Efficient algorithms for finding number, help pleaseIntroduction to Algorithms | The MIT Press
三道 Amazon Onsite Coding 题真心求助 .net c# 算法,数据结构书,网站
贡献一下:本版上搜集的 Google 面试题 (转载)question about google algorithm/architecture (转载)
又一道面试题,我是不是想多了?有谁看过youtube上的算法课吗?
相关话题的讨论汇总
话题: algorithms话题: case话题: give话题: state话题: set