f*4
2 楼
Within a 2D space, there is a batch of points(no duplicate) in the region (0
,0),(0,1),(1,0),(1,1), try to find a line which can divide the region to 2
parts with half points in each .the input will be an array of points and the
length of the array.
struct point{
int x;
int y;
};
input : struct point * points, int length
google了一下,说是Linear Perceptron algorithm可以解决,但找到的Linear
Perceptron 都是关于AI的;知道的人能给我个具体链接么?谢谢
算法压根就没准备那么深,临时抱佛脚中
,0),(0,1),(1,0),(1,1), try to find a line which can divide the region to 2
parts with half points in each .the input will be an array of points and the
length of the array.
struct point{
int x;
int y;
};
input : struct point * points, int length
google了一下,说是Linear Perceptron algorithm可以解决,但找到的Linear
Perceptron 都是关于AI的;知道的人能给我个具体链接么?谢谢
算法压根就没准备那么深,临时抱佛脚中
u*r
3 楼
发信人: deephug(怎奈), 信区: bagua
标题: 机场接明星的粉丝是雇的,娱乐圈里的水有多深?
发信站: BBS未名空间站(Thu Oct 26 13:31:50 2017,GMT)
每次明星出机场都会有大量的粉丝接机,前呼后拥的。我经常在想这些粉丝怎么知道明
星的行程呢?粉丝不用上班吗?他们靠什么生活呢?为什么每次粉丝接机明星都光鲜亮
丽的呢?事实印证了我的想法,最近有消息爆出,明星接机的粉丝是假的,假的,这些
接机的人都是有接机价格的,出钱多少决定接机的层次。也就是说每次流露出来的美照
都是经过精心设计的,这人观众难以接受。
要知道大家都以为是因为明星受欢迎才去接机的,没想到一切都是设计好的。这些设计
接机的明星好有心机呀!用这些虚假的东西糊弄观众,我表示不会再爱他们了。想想也
是,经常被接机的也就杨幂,还有一些小鲜肉。好像其他真正的演员也没有接机的新闻
出来呀!细思极恐,娱乐圈的水实在是太深了。
对于这些心机慢慢,为增加增加曝光率的明星真的很厌恶。大家脚踏实地好好的做演员
不好吗?弄虚作假得来的东西没人会承认的,针对这样的人,早点滚出娱乐圈就好了。
自己花钱捧自己真是醉了,事实上不是还没有真正的粉丝吗?弄虚作假的人终究是走不
远的。
标题: 机场接明星的粉丝是雇的,娱乐圈里的水有多深?
发信站: BBS未名空间站(Thu Oct 26 13:31:50 2017,GMT)
每次明星出机场都会有大量的粉丝接机,前呼后拥的。我经常在想这些粉丝怎么知道明
星的行程呢?粉丝不用上班吗?他们靠什么生活呢?为什么每次粉丝接机明星都光鲜亮
丽的呢?事实印证了我的想法,最近有消息爆出,明星接机的粉丝是假的,假的,这些
接机的人都是有接机价格的,出钱多少决定接机的层次。也就是说每次流露出来的美照
都是经过精心设计的,这人观众难以接受。
要知道大家都以为是因为明星受欢迎才去接机的,没想到一切都是设计好的。这些设计
接机的明星好有心机呀!用这些虚假的东西糊弄观众,我表示不会再爱他们了。想想也
是,经常被接机的也就杨幂,还有一些小鲜肉。好像其他真正的演员也没有接机的新闻
出来呀!细思极恐,娱乐圈的水实在是太深了。
对于这些心机慢慢,为增加增加曝光率的明星真的很厌恶。大家脚踏实地好好的做演员
不好吗?弄虚作假得来的东西没人会承认的,针对这样的人,早点滚出娱乐圈就好了。
自己花钱捧自己真是醉了,事实上不是还没有真正的粉丝吗?弄虚作假的人终究是走不
远的。
D*N
4 楼
才两年啊,现在的电池的只能冲到原来的25%了(6900mAh->1759mAh),真是太杯具了
,大家用了两年的电池没这么搓吧?
平常很少用到电池,一般都是在office和家里接外接显示器用。不知为何碰到这么不给
力的事情。
,大家用了两年的电池没这么搓吧?
平常很少用到电池,一般都是在office和家里接外接显示器用。不知为何碰到这么不给
力的事情。
c*3
5 楼
Help for a paper.
The paper is Annu Rev Nutr. 2010 Aug 21;30:201-17. (Between death and
survival: retinoic acid in regulation of apoptosis.)
The link is
http://www.annualreviews.org/doi/pdf/10.1146/annurev.nutr.28.06
Please send to: m**********[email protected]
Thanks in advance.
The paper is Annu Rev Nutr. 2010 Aug 21;30:201-17. (Between death and
survival: retinoic acid in regulation of apoptosis.)
The link is
http://www.annualreviews.org/doi/pdf/10.1146/annurev.nutr.28.06
Please send to: m**********[email protected]
Thanks in advance.
x*3
7 楼
看看这样行不
把所有点按照x或者y坐标排序,比如说按照x坐标排序, 然后找到x坐标的median, 划
条垂直线
把所有点按照x或者y坐标排序,比如说按照x坐标排序, 然后找到x坐标的median, 划
条垂直线
n*y
8 楼
我四年多了,还挺好的
o*u
9 楼
Sent.
【在 c*******3 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: Help for a paper.
: The paper is Annu Rev Nutr. 2010 Aug 21;30:201-17. (Between death and
: survival: retinoic acid in regulation of apoptosis.)
: The link is
: http://www.annualreviews.org/doi/pdf/10.1146/annurev.nutr.28.06
: Please send to: m**********[email protected]
: Thanks in advance.
【在 c*******3 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: Help for a paper.
: The paper is Annu Rev Nutr. 2010 Aug 21;30:201-17. (Between death and
: survival: retinoic acid in regulation of apoptosis.)
: The link is
: http://www.annualreviews.org/doi/pdf/10.1146/annurev.nutr.28.06
: Please send to: m**********[email protected]
: Thanks in advance.
n*w
10 楼
What about Hong Kong U.? Is Chinese U. of HK better or Hong Kong U. better
or they are similar?
or they are similar?
a*g
11 楼
这个不就直接bisection么
没有其他条件么
(0
the
【在 f****4 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: Within a 2D space, there is a batch of points(no duplicate) in the region (0
: ,0),(0,1),(1,0),(1,1), try to find a line which can divide the region to 2
: parts with half points in each .the input will be an array of points and the
: length of the array.
: struct point{
: int x;
: int y;
: };
: input : struct point * points, int length
: google了一下,说是Linear Perceptron algorithm可以解决,但找到的Linear
没有其他条件么
(0
the
【在 f****4 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: Within a 2D space, there is a batch of points(no duplicate) in the region (0
: ,0),(0,1),(1,0),(1,1), try to find a line which can divide the region to 2
: parts with half points in each .the input will be an array of points and the
: length of the array.
: struct point{
: int x;
: int y;
: };
: input : struct point * points, int length
: google了一下,说是Linear Perceptron algorithm可以解决,但找到的Linear
s*3
12 楼
LZ的使用习惯是怎样的?
f*4
20 楼
那怎么解决啊
I*t
21 楼
三年多用到93%。适当用,别老插着,别老用光。
l*k
26 楼
这样可以不可以呢?
先随便画一条线,把每个点投影到这条线上面,
如果所有的投影点在线上不重合,那在最中间的两个投影之间划一条垂线,这条垂线肯
定将所有的点分成两个部分;
如果有投影点重合的,就把这条线转一个小角度,直到没有重合的投影点。
(0
the
【在 f****4 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: Within a 2D space, there is a batch of points(no duplicate) in the region (0
: ,0),(0,1),(1,0),(1,1), try to find a line which can divide the region to 2
: parts with half points in each .the input will be an array of points and the
: length of the array.
: struct point{
: int x;
: int y;
: };
: input : struct point * points, int length
: google了一下,说是Linear Perceptron algorithm可以解决,但找到的Linear
先随便画一条线,把每个点投影到这条线上面,
如果所有的投影点在线上不重合,那在最中间的两个投影之间划一条垂线,这条垂线肯
定将所有的点分成两个部分;
如果有投影点重合的,就把这条线转一个小角度,直到没有重合的投影点。
(0
the
【在 f****4 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: Within a 2D space, there is a batch of points(no duplicate) in the region (0
: ,0),(0,1),(1,0),(1,1), try to find a line which can divide the region to 2
: parts with half points in each .the input will be an array of points and the
: length of the array.
: struct point{
: int x;
: int y;
: };
: input : struct point * points, int length
: google了一下,说是Linear Perceptron algorithm可以解决,但找到的Linear
f*4
30 楼
这个应该也算是常见题了,小尾羊能给个方向么?
谢谢
谢谢
f*4
38 楼
多谢多谢
这个题目有其它变体么?
这个题目有其它变体么?
k*e
43 楼
i am not sure i totally get your method
my only concern is how you make sure exactly half points are on each side of
the line.
we can make sure for this when the slope of the line we will choose is not
equal to all the n(n-1)/2 slopes we can get from the n points
【在 g*******y 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: why?这个方法找出来的是过cross中心的一条斜线啊,不正好吗
my only concern is how you make sure exactly half points are on each side of
the line.
we can make sure for this when the slope of the line we will choose is not
equal to all the n(n-1)/2 slopes we can get from the n points
【在 g*******y 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: why?这个方法找出来的是过cross中心的一条斜线啊,不正好吗
c*l
44 楼
mark
相关阅读
八卦一下上了非诚勿扰的生物mm-谷小小吧建议强势周扒皮或黄屎人的故事【路边社】世界各地老苦逼喜迎圣诞更新:有9-10个phd学校的面试,谢推荐,求面试机经Dcup的2011年总结 zt所谓好老板坏老板发二十个包子,祝我们明年会更好!Best academic places to work 2011Nature 这期有中药专栏~papers help please, 5包子感谢~不能熬夜干活啊。有关肿瘤研究进展的问题 询问好奇有Ecology and Evolution of Biology方向的同志吗?那个sci dao "科学道"下载了解压不了是什么情况?看到版上之前讨论学生期间存款,我发现一个更牛的 (转载)看来美国还是商科博士就业最好!!!校长周其凤作词,北京大学中乐学社演出 不伦不类化学之歌 (转载 (转载)千古奇文!Male Organ and Economic Growth: Does Size Matter?如今是百年一遇的归国好时机?(ZZ)求篇paper, 谢谢了