由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - in what case O(n*2) is better than O(n).
相关主题
请教一下超大图的存储问题一道linkedin的graph题
算法作业2mapreduce 初级问题,请各位大牛指点
请教一道面试题MapReduce的面试题
Graph problemPageRank简单问题
求教两道FLAG题[合集] Google Phone Interview
关于leetcode上的jump code1和2问题的一点讨论图的拷贝
Depth-First-SearchAmazon面试题请教
报Google Offer并请教面试题一道fb的题,clone a graph
相关话题的讨论汇总
话题: nlg话题: than话题: case话题: better话题: what
进入JobHunting版参与讨论
1 (共1页)
P*******b
发帖数: 1001
1
thanks
v******k
发帖数: 808
2
in case of any large-scale computation that could be done distributively
for instance, counting number of edges in a directed graph in a 1M+ node
graph, one can simply put each two nodes to a mapper and let hadoop take
care of it; its obviously O(n^2) effort but works for large-scale data set
HIH
M********5
发帖数: 715
3
I am wondering whether the tradeoff for space is a possible answer.
s*********t
发帖数: 1663
4
O(n)空间占太多?

【在 P*******b 的大作中提到】
: thanks
I**A
发帖数: 2345
5
Give some scenarios where you might favor O(n^2) algorithm over a O(nlg(n))
i. If O(nlg(n)) requires space, while O(n^2) doesn’t
ii. If O(nlg(n)) is difficult to understand and to implement, while O(n^2
) is easier
iii. If O(n^2) has a general running time less than O(nlg(n)) instead
iv. If O(n^2) is easy to serialize, while O(nlg(n)) not

【在 P*******b 的大作中提到】
: thanks
1 (共1页)
进入JobHunting版参与讨论
相关主题
一道fb的题,clone a graph求教两道FLAG题
问一个大数据 处理问题关于leetcode上的jump code1和2问题的一点讨论
问一个graph题Depth-First-Search
拓扑排序报Google Offer并请教面试题
请教一下超大图的存储问题一道linkedin的graph题
算法作业2mapreduce 初级问题,请各位大牛指点
请教一道面试题MapReduce的面试题
Graph problemPageRank简单问题
相关话题的讨论汇总
话题: nlg话题: than话题: case话题: better话题: what