由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 2D median problem
相关主题
算法面试题minimize the max of sums of each segment in an array
F家的一道题。看起来好像很凶残的样子。求大家给思路给想法。。囧面试技巧
G电面一道面试算法题
请教一道google面试题 meeting point for N people回馈版面,Amazon onsite面经
urgent question, thanks!!! (revised)Company will be closed, H1B layoff.
也来做个题好了赛车问题
欢迎大家积极讨论一个ms简单的算法面试题这个算法题算难吗
请教一道面试题问一道behavior题哈
相关话题的讨论汇总
话题: 2d话题: sum话题: problem话题: find话题: yn
进入JobHunting版参与讨论
1 (共1页)
l***i
发帖数: 1309
1
Given n points on a 2D plane, (x1, y1), ... (xn,yn)
Find the point among the n points that minimizes sum_(x_i - x_k), i=1,...,n,
for k=1,..,n.
m********0
发帖数: 2717
2
这个表达式看不出是2D问题啊。
H*M
发帖数: 1268
3
why is this a 2D problem? why is this related to y??
or typo?

n,

【在 l***i 的大作中提到】
: Given n points on a 2D plane, (x1, y1), ... (xn,yn)
: Find the point among the n points that minimizes sum_(x_i - x_k), i=1,...,n,
: for k=1,..,n.

m********0
发帖数: 2717
4
I guess it's minimization on
sum(|vi- vj|) distance

【在 H*M 的大作中提到】
: why is this a 2D problem? why is this related to y??
: or typo?
:
: n,

g*******y
发帖数: 1930
5
it can also be minimization on sum(|x-xi|+|y-yi|)
l***i
发帖数: 1309
6
Sorry it is typo.
The problem is find one point (x,y) among (x1,y1), ... (xn,yn) such that sum
_i=1^n |x-xi| + |y-yi| is minimized.
geniusxsy is correct.
1 (共1页)
进入JobHunting版参与讨论
相关主题
问一道behavior题哈urgent question, thanks!!! (revised)
49两赛车,取第25名也来做个题好了
请教一道算法题欢迎大家积极讨论一个ms简单的算法面试题
all my baozi for people can give some answer to the question请教一道面试题
算法面试题minimize the max of sums of each segment in an array
F家的一道题。看起来好像很凶残的样子。求大家给思路给想法。。囧面试技巧
G电面一道面试算法题
请教一道google面试题 meeting point for N people回馈版面,Amazon onsite面经
相关话题的讨论汇总
话题: 2d话题: sum话题: problem话题: find话题: yn