由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 有包子,花街的一道题,请指教
相关主题
这道题目怎么做?amazon一道面试题
请问工作前必须办好SSN吗?How to find the kth biggest number in a BST
c++!问一题
一道题问道题,binary tree里有一个有indegree 2
G家面题phone interview program with a small startup
how to get the top k queries from a search log of terabytes of data?请问G这道题目怎么做?
问道Twitter面试题大量数据里面找top 100
stream palindrome新鲜面试题
相关话题的讨论汇总
话题: nodes话题: links话题: controller话题: quality话题: network
进入JobHunting版参与讨论
1 (共1页)
m******p
发帖数: 5393
1
一学电路的半路出家找coding的,结果遇到这家花街一公司二面,上去就是写卷子,十页,每页一
道题
这道似乎见过,但翻了翻CLRS无解又due了只好网上submit了,可是心有不甘,估计就会毁在这道
题了
大家都是牛人,有耐心的请指教一下吧,发包子
Given a communication network, n nodes are linked to each other by
wireless links (meaning two nodes that are within some distance, d0 of
each other can communicate with each other thus forming a link).
A centralized controller wishes to learn the quality of all the links in
the network. This can be done by querying any node or any set of nodes
and the corresponding nodes can report the quality of the links incident
on them. The controller can only query nodes in a sequential manner
(i.e., no two nodes can be queried or can report in parallel). It takes
t amount of time to query any node. The controller wishes to obtain the
information on all the links in minimum time.
Provide an O(n3) Big O(n cubed)algorithm by which the controller can effi
ciently choose the smallest set of nodes so as to obtain the quality of
all the links in the network or show that this problem is NP-complete
e*********l
发帖数: 136
2
粗看很像是MST 最小生成树问题
貌似不是
分成多个子集
贪心可以做么?
b*****7
发帖数: 631
3
感觉是NP-complete
b*****7
发帖数: 631
4
发包子把,就是vertex cover
http://en.wikipedia.org/wiki/Vertex_cover
m******p
发帖数: 5393
5
包子sent,要重新复习了

【在 b*****7 的大作中提到】
: 发包子把,就是vertex cover
: http://en.wikipedia.org/wiki/Vertex_cover

1 (共1页)
进入JobHunting版参与讨论
相关主题
新鲜面试题G家面题
Job opening in CT: Software Quality Engineerhow to get the top k queries from a search log of terabytes of data?
贴一下我google第一轮店面的题目问道Twitter面试题
Rabin-Karp算法对不定长的query set怎么办?stream palindrome
这道题目怎么做?amazon一道面试题
请问工作前必须办好SSN吗?How to find the kth biggest number in a BST
c++!问一题
一道题问道题,binary tree里有一个有indegree 2
相关话题的讨论汇总
话题: nodes话题: links话题: controller话题: quality话题: network