Redian新闻
>
master的AD选择:EE@Yale or EE@CMU
avatar
master的AD选择:EE@Yale or EE@CMU# EE - 电子工程
f*i
1
小弟在准备qualify考试,看到算法例卷上有三题,百思不得其解,希望高人能给一
点帮助。
1.You are given n items with weighs w[1..n] with w[1]to group the items into m groups (1<=m<=n) non-empty and disjoint classes C1
,C2....Cm, and assign each item in Cj a weight-label Lj, 1<=j<=m, such that
EE(w[i]-Lj)^2 is minimun (汗,连加号打不出来,只好用E代替,1<=j<=m, w[i]
are the elements in each group j)
1)Give a pseudocode of an efficient algorithm to determine the Cj and the
label Lj, take w=[2,3,5,6,7,8,9,10], m=2 show L1,L2 a
avatar
t*y
2
这个公司如何?在vegas的那个,有前辈知道吗?多谢啦
avatar
y*7
3
耶鲁名气上大些,cmu的工科强些,怎么选择呢。。毕业后工作前景哪个更好些,请教~
~~
avatar
K*n
4
第二题不懂,先沿对角线走lg(n),确定半个横排半个竖排,再lg(n)不就好了?
第三个是非波那其再加个线性数组,所以还是exponential的?

want
C1
that
the

【在 f*********i 的大作中提到】
: 小弟在准备qualify考试,看到算法例卷上有三题,百思不得其解,希望高人能给一
: 点帮助。
: 1.You are given n items with weighs w[1..n] with w[1]: to group the items into m groups (1<=m<=n) non-empty and disjoint classes C1
: ,C2....Cm, and assign each item in Cj a weight-label Lj, 1<=j<=m, such that
: EE(w[i]-Lj)^2 is minimun (汗,连加号打不出来,只好用E代替,1<=j<=m, w[i]
: are the elements in each group j)
: 1)Give a pseudocode of an efficient algorithm to determine the Cj and the
: label Lj, take w=[2,3,5,6,7,8,9,10], m=2 show L1,L2 a

avatar
t*o
5
Sure, it is one of the top structural design firms in USA.

【在 t***y 的大作中提到】
: 这个公司如何?在vegas的那个,有前辈知道吗?多谢啦
avatar
y*7
6
哈,自己顶下~
其实EE名校出来工作是都不成问题的,只是想既然都要自费读硕士了,哪个的投资会有
更高的回报率呢~~
谢谢大家的意见呀!
avatar
K*n
7
第一题,我感觉,简单一点儿用K-mean,复杂一点儿用mixture of gaussian
第二问还真是麻烦....

want
C1
that
the

【在 f*********i 的大作中提到】
: 小弟在准备qualify考试,看到算法例卷上有三题,百思不得其解,希望高人能给一
: 点帮助。
: 1.You are given n items with weighs w[1..n] with w[1]: to group the items into m groups (1<=m<=n) non-empty and disjoint classes C1
: ,C2....Cm, and assign each item in Cj a weight-label Lj, 1<=j<=m, such that
: EE(w[i]-Lj)^2 is minimun (汗,连加号打不出来,只好用E代替,1<=j<=m, w[i]
: are the elements in each group j)
: 1)Give a pseudocode of an efficient algorithm to determine the Cj and the
: label Lj, take w=[2,3,5,6,7,8,9,10], m=2 show L1,L2 a

avatar
r*e
8
cmu不清楚,yale的EE就是上8门课拿学位,而且也没啥好课...

教~

【在 y***7 的大作中提到】
: 耶鲁名气上大些,cmu的工科强些,怎么选择呢。。毕业后工作前景哪个更好些,请教~
: ~~

avatar
c*t
9
第二题就是从左下角开始从左往右从下往上走格子而已。
在 programming 版讨论过几次。。。

【在 K****n 的大作中提到】
: 第一题,我感觉,简单一点儿用K-mean,复杂一点儿用mixture of gaussian
: 第二问还真是麻烦....
:
: want
: C1
: that
: the

avatar
l*e
10
我选CMU:工科强大,选课方便,课程质量高(我推测的)。
如果是个女生,想混个工科学位,将来转市场或其他什么行当,去耶鲁吧。(即使是商科,CMU 也不比 耶鲁 弱很多,都是top 20.)
avatar
K*n
11
嗯,我抛个砖等待大牛们批判

【在 c*****t 的大作中提到】
: 第二题就是从左下角开始从左往右从下往上走格子而已。
: 在 programming 版讨论过几次。。。

avatar
c*l
12
去yale,其他机会多

【在 y***7 的大作中提到】
: 哈,自己顶下~
: 其实EE名校出来工作是都不成问题的,只是想既然都要自费读硕士了,哪个的投资会有
: 更高的回报率呢~~
: 谢谢大家的意见呀!

avatar
f*i
13
第二题从左下到右上是只要logN,但是不一定能够找到X,在这次搜索以后,假设有A[i,j
]=i+1&&n>=j+1或者m剩下的两个区域(左上和右下)还是要进行binary search,不止搜索两次,应该是搜
索多次啊
我去programming 版搜索看有没有相关的帖子
avatar
y*7
14
背景是一女生,但是没有想好毕业后要转别的,因为不知道自己适不适合,目前基本打
算是毕业后找个专业相关点方向先工作再说吧。。。
怎么说Yale机会多呢,就工科而言CMU在工业界的口碑应该很好很好的吧,所以CMU机会
也应该很多呀
avatar
l*e
15
1, dynamic programming.
k-means can't guarantee an optimal solution.

want
C1
that
the

【在 f*********i 的大作中提到】
: 第二题从左下到右上是只要logN,但是不一定能够找到X,在这次搜索以后,假设有A[i,j
: ]=i+1&&n>=j+1或者m: 剩下的两个区域(左上和右下)还是要进行binary search,不止搜索两次,应该是搜
: 索多次啊
: 我去programming 版搜索看有没有相关的帖子

avatar
l*e
16
小水葱的说的“机会”意思是转金融、法律什么的,也就是我前面说的转别的行当,毕
竟耶鲁人文方面的校友多、口碑好。那也是个选择。
如果想做本行,毫无疑问选CMU,比yale高出一个档次。
这个概念有点像清华和北大的电子相比较。或者北邮跟南大相类比。
耶鲁电子课程选择面很窄,如果你想学真东西,会感觉不够爽。
avatar
l*e
17
2, lower bound problem is always tricker..
we need adversary argument.
just consider this game, i play with adv.
in each round, i pick a element (i,j) from the matrix
then adv chooses to cover
either all elements (i',j') i'<=i and j'<=j
or all elements (i',j') i'>=i and j'>=j
How many step do i need to cover the whole n*n matrix.
this game is essentially equivalent to the problem, where I pick an element
and know which part of the matrix we don't need to consider any more.
To prove the game nee

【在 f*********i 的大作中提到】
: 第二题从左下到右上是只要logN,但是不一定能够找到X,在这次搜索以后,假设有A[i,j
: ]=i+1&&n>=j+1或者m: 剩下的两个区域(左上和右下)还是要进行binary search,不止搜索两次,应该是搜
: 索多次啊
: 我去programming 版搜索看有没有相关的帖子

avatar
c*l
18
现实点说吧,没准你去yale嫁一牛人,连奋斗都不用了

【在 y***7 的大作中提到】
: 背景是一女生,但是没有想好毕业后要转别的,因为不知道自己适不适合,目前基本打
: 算是毕业后找个专业相关点方向先工作再说吧。。。
: 怎么说Yale机会多呢,就工科而言CMU在工业界的口碑应该很好很好的吧,所以CMU机会
: 也应该很多呀

avatar
l*e
19
3, use generating functions to get the exact solution.
(the book <> has an excellent chapter on it)
or 2^n is a rough upper bound and fiboncci number (approxly 1.61^n) is a
lower bound

want
C1
that
the

【在 f*********i 的大作中提到】
: 第二题从左下到右上是只要logN,但是不一定能够找到X,在这次搜索以后,假设有A[i,j
: ]=i+1&&n>=j+1或者m: 剩下的两个区域(左上和右下)还是要进行binary search,不止搜索两次,应该是搜
: 索多次啊
: 我去programming 版搜索看有没有相关的帖子

avatar
L*e
20
Yale is a big name, think about it, 6 presdients are your alumni.
What a great thing.
Industry doesn't care school that much, you have to show your
real skills, otherwise, CMU still doesn't mean anything.
To me, CMU is worse than stanford and mit,hehe.

【在 y***7 的大作中提到】
: 背景是一女生,但是没有想好毕业后要转别的,因为不知道自己适不适合,目前基本打
: 算是毕业后找个专业相关点方向先工作再说吧。。。
: 怎么说Yale机会多呢,就工科而言CMU在工业界的口碑应该很好很好的吧,所以CMU机会
: 也应该很多呀

avatar
k*y
21
i am not quite sure about what you mean by ``bounding box''.
e.g. 3 \times 3 matrix
..*
...
*..
* represents an uncovered region
does the length of the smaller edge of the bounding box equal 3?
if i compare x with either one of them, the bounding box will become 1 \
times 1
my method is to consider the cells on the minor diagonal
if i compare x with a cell in the upper-left triangle,
adv answers x > that cell
if i compare x with a cell in the lower-right triangle,
adv answers x < that cell
if i

【在 l******e 的大作中提到】
: 2, lower bound problem is always tricker..
: we need adversary argument.
: just consider this game, i play with adv.
: in each round, i pick a element (i,j) from the matrix
: then adv chooses to cover
: either all elements (i',j') i'<=i and j'<=j
: or all elements (i',j') i'>=i and j'>=j
: How many step do i need to cover the whole n*n matrix.
: this game is essentially equivalent to the problem, where I pick an element
: and know which part of the matrix we don't need to consider any more.

avatar
l*e
22
我觉得,将来真正能起作用,是行业内的校友,其他专业的校友对自己来说都是虚名而
已。
名校的重要性在于“业界”校友兼专业技能的培养。这就是为什么在通信行业,北邮学
生比北大电子系学生吃香的原因。
avatar
k*y
23
more details here
1. if there is only one class, prove that L = average of all items
recall some knowledge on quadratic functions
2. for any two classes, x1 < x2 < .. < x_n and y1 < y2 < .. < y_n
there exists an optimal solution in which
there is no k s.t. x1 < y_k < x_n or y1 < x_k < y_n
that means any two classes should be disjoint in some sense
the following lemma may help you to prove this:
if x1 + .. + x_{n - 1} < y2 + .. + y_n, then x_n cannot > y1
because otherw

【在 l******e 的大作中提到】
: 1, dynamic programming.
: k-means can't guarantee an optimal solution.
:
: want
: C1
: that
: the

avatar
c*l
24
nod

【在 l*******e 的大作中提到】
: 我觉得,将来真正能起作用,是行业内的校友,其他专业的校友对自己来说都是虚名而
: 已。
: 名校的重要性在于“业界”校友兼专业技能的培养。这就是为什么在通信行业,北邮学
: 生比北大电子系学生吃香的原因。

avatar
k*y
25
problem 3
\because T(n) = T(n - 1) + T(n - 2) + 1
\therefore T(n) + 1 = T(n - 1) + 1 + T(n - 2) + 1
Let S(n) = T(n) + 1
we have S(n) = S(n - 1) + S(n - 2), S(1) = S(2) = 2
so, S(n) = F(n - 1) and T(n) = S(n) - 1 = F(n - 1) - 1

want
C1
that
the

【在 f*********i 的大作中提到】
: 第二题从左下到右上是只要logN,但是不一定能够找到X,在这次搜索以后,假设有A[i,j
: ]=i+1&&n>=j+1或者m: 剩下的两个区域(左上和右下)还是要进行binary search,不止搜索两次,应该是搜
: 索多次啊
: 我去programming 版搜索看有没有相关的帖子

avatar
x*y
26

agree on this. EE engineers really don't give a shit about how many
presidents come from your school. They get the impression of a school
from co-workers,
publications, conferences, etc.

【在 l*******e 的大作中提到】
: 我觉得,将来真正能起作用,是行业内的校友,其他专业的校友对自己来说都是虚名而
: 已。
: 名校的重要性在于“业界”校友兼专业技能的培养。这就是为什么在通信行业,北邮学
: 生比北大电子系学生吃香的原因。

avatar
c*t
27
You only proved your method is O (n), but you didn't prove the problem
lower bound solution is omega (n). It is a harder problem to prove.

【在 k******y 的大作中提到】
: i am not quite sure about what you mean by ``bounding box''.
: e.g. 3 \times 3 matrix
: ..*
: ...
: *..
: * represents an uncovered region
: does the length of the smaller edge of the bounding box equal 3?
: if i compare x with either one of them, the bounding box will become 1 \
: times 1
: my method is to consider the cells on the minor diagonal

avatar
L*e
28
the problem with pku ee is they are too theoretical and not engineering
enough.
pku is not comparable to yale, either.
pku alumni is a very loose group that you can't count on.
I believe yale is doing much better than them.

【在 l*******e 的大作中提到】
: 我觉得,将来真正能起作用,是行业内的校友,其他专业的校友对自己来说都是虚名而
: 已。
: 名校的重要性在于“业界”校友兼专业技能的培养。这就是为什么在通信行业,北邮学
: 生比北大电子系学生吃香的原因。

avatar
k*y
29
i did prove the lower bound of the problem by adversary method
avatar
L*e
30
compare bupt with pku is not fair.
bupt graduates maybe 200 students in telecomm.
while pku only produces 20 students go to work. others go abroad,
go to get a master, of which only maybe 10 every year go to telecomm.
Considering that bupt has more high level people in telecomm and
get promoted faster than pku ee, no wonder pku ee get very low
voice for themselves. pku also has a big enemy thu, so that it's very hard
for them to survive in the conflicts.
Actually maybe half of pku ee guys go to

【在 l*******e 的大作中提到】
: 我觉得,将来真正能起作用,是行业内的校友,其他专业的校友对自己来说都是虚名而
: 已。
: 名校的重要性在于“业界”校友兼专业技能的培养。这就是为什么在通信行业,北邮学
: 生比北大电子系学生吃香的原因。

avatar
l*e
31
i did say the sum of ...i have 2 bounding boxes
in your case, it is 2.
however, your argument is cleaner.

i am not quite sure about what you mean by ``bounding box''.
e.g. 3 \times 3 matrix
..*
...
*..
* represents an uncovered region
does the length of the smaller edge of the bounding box equal 3?
if i compare x with either one of them, the bounding box will become 1 \
times 1
my method is to consider the cells on the minor diagonal
if i compare x with a cell in the upper-left triangle,
adv an

【在 k******y 的大作中提到】
: i am not quite sure about what you mean by ``bounding box''.
: e.g. 3 \times 3 matrix
: ..*
: ...
: *..
: * represents an uncovered region
: does the length of the smaller edge of the bounding box equal 3?
: if i compare x with either one of them, the bounding box will become 1 \
: times 1
: my method is to consider the cells on the minor diagonal

avatar
r*s
32
八门课就拿学位了?2学期就万事了?多少钱一门课?

【在 r*****e 的大作中提到】
: cmu不清楚,yale的EE就是上8门课拿学位,而且也没啥好课...
:
: 教~

avatar
k*y
33
what is the meaning of a ``region'' in your proof?
a set of connected uncovered cells?

【在 l******e 的大作中提到】
: i did say the sum of ...i have 2 bounding boxes
: in your case, it is 2.
: however, your argument is cleaner.
:
: i am not quite sure about what you mean by ``bounding box''.
: e.g. 3 \times 3 matrix
: ..*
: ...
: *..
: * represents an uncovered region

avatar
l*e
34
yes.

【在 k******y 的大作中提到】
: what is the meaning of a ``region'' in your proof?
: a set of connected uncovered cells?

avatar
k*y
35
what about this one:
1234567
1**.....
2**.....
3.......
4...*...
5.......
6.....**
7.....**
i compare x with (4, 4)
the sum becomes 3 after the comparison

【在 l******e 的大作中提到】
: yes.
avatar
l*e
36
. is uncovered region?
then L doesn't change...

【在 k******y 的大作中提到】
: what about this one:
: 1234567
: 1**.....
: 2**.....
: 3.......
: 4...*...
: 5.......
: 6.....**
: 7.....**
: i compare x with (4, 4)

avatar
k*y
37
no * is uncovered region

【在 l******e 的大作中提到】
: . is uncovered region?
: then L doesn't change...

avatar
l*e
38
how is that possible...
well, i didn't check my pf rigorously and it might be wrong, but i don't
have counterexample yet:)

【在 k******y 的大作中提到】
: no * is uncovered region
avatar
k*y
39
ic, it seems impossible to generate such a strange unconvered region :)
anyway, bounding box is a creative way to think about questions like this

【在 l******e 的大作中提到】
: how is that possible...
: well, i didn't check my pf rigorously and it might be wrong, but i don't
: have counterexample yet:)

avatar
f*i
40
I still quite confused about the problem3,
for each search, koalawjy, you are using binary method, cost logN
however, after we find A[i,i]with 2 covered and 2 uncover, then apply same method to these 2 uncovered
regions cause 4 smaller uncovered one, and so on.
the size of the regions becomes smaller and the number are bigger, how to
cope with it?
***************
if i compare x with a cell in the upper-left triangle,
adv answers x > that cell
if i comp
avatar
k*y
41
可能我沒有説明白
我並沒有提出我是要如何猜
而是在證明無論我如何猜,都至少需要n次
原因在於一次猜測至多只能排除掉副對角綫上的一個格子
如果我不能排除掉所有的格子,我的敵手(adv)就可以構造出一個讓我判斷失誤的情形

【在 f*********i 的大作中提到】
: I still quite confused about the problem3,
: for each search, koalawjy, you are using binary method, cost logN
: however, after we find A[i,i]: with 2 covered and 2 uncover, then apply same method to these 2 uncovered
: regions cause 4 smaller uncovered one, and so on.
: the size of the regions becomes smaller and the number are bigger, how to
: cope with it?
: ***************
: if i compare x with a cell in the upper-left triangle,
: adv answers x > that cell

avatar
k*g
42
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。