Redian新闻
>
扭腰时报醒世好文:美国股市不再是经济的晴雨表 (转载)
avatar
扭腰时报醒世好文:美国股市不再是经济的晴雨表 (转载)# Stock
b*e
1
请问:既然quick selection 理论上证明是linear,比heap selection快。那为什么
top k 的问题都用heap 呢?
按理说应该用最快的quick selection啊。
avatar
w*n
2
8,9个的时候能做不?
avatar
a*6
3
【 以下文字转载自 Military 讨论区 】
发信人: abcxyz2046 (灌君), 信区: Military
标 题: 扭腰时报醒世好文:美国股市不再是经济的晴雨表
发信站: BBS 未名空间站 (Tue Feb 15 10:50:19 2011, 美东)
换句话说,中国股市输出价值观,华尔街不再是美国经济的晴雨表,而成了投机巨头们
独享的乐园。
http://www.nytimes.com/2011/02/14/opinion/14Salmon.html?src=me&
Wall Street’s Dead End (华尔街的穷途末路)
By FELIX SALMON (作者:菲利克斯.沙门鱼)
。。。 But look at America’s stock exchanges more closely, and there’s
less to them than meets the eye. In truth, the stock market is becoming
increasingly irrelevant — a trend that threatens the core principles of
American capitalism.
。。。可是,如果近观美国股市,远非像表面看起来那么吸引人的眼球。实际上,股市
和经济渐行渐远,这种势头在威胁美帝的核心价值。
These days a healthy stock market doesn’t mean a healthy economy, as a
glance at the high unemployment rate or the low labor-market participation
rate will show. The Tea Party is right about one thing: What’s good for
Wall Street isn’t necessarily good for Main Street. And the Germans aren’t
buying the New York Stock Exchange for its commoditized, highly competitive
and ultra-low-margin stock business, but rather for its lucrative
derivatives operations.
这年头,良好的股市不再是经济的晴雨表,这个从居高不下的下岗率就能看出。奶茶党
有一个说法是对的:华尔街的利好不一定是 P民街之福。德国人参与华尔街的大交易仅
仅是为了金融衍生这颗摇钱树。
The stock market is still huge, of course: the companies listed on American
exchanges are valued at more than $17 trillion, and they’re not going to
disappear in the foreseeable future.
But the glory days of publicly traded companies dominating the American
business landscape may be over. The number of companies listed on the major
domestic exchanges peaked in 1997 at more than 7,000, and it has been
falling ever since. It’s now down to about 4,000 companies, and given its
steep downward trend will surely continue to shrink.
Nor are the remaining stocks an obvious proxy for the health of the American
economy. Innovative American companies like Apple and Google may be worth
hundreds of billions of dollars, but most of them don’t pay dividends or
employ many Americans, and their shares are essentially speculative
investments for people making a bet on how we’re going to live in the
future.
......
avatar
n*x
4
我的理解是quick selection只能handle有限集合,heap可以搞stream

【在 b*********e 的大作中提到】
: 请问:既然quick selection 理论上证明是linear,比heap selection快。那为什么
: top k 的问题都用heap 呢?
: 按理说应该用最快的quick selection啊。

avatar
p*5
5
over 14 days
avatar
h*n
6
巧了,我今天就被问了这个,我先用了heap然后让我写quick select没写出来
真丢人

【在 b*********e 的大作中提到】
: 请问:既然quick selection 理论上证明是linear,比heap selection快。那为什么
: top k 的问题都用heap 呢?
: 按理说应该用最快的quick selection啊。

avatar
r*f
7
8-9周都可以。。。

【在 w******n 的大作中提到】
: 8,9个的时候能做不?
avatar
a*m
8
硬写quick select?那不丢人吧。。。。

【在 h*********n 的大作中提到】
: 巧了,我今天就被问了这个,我先用了heap然后让我写quick select没写出来
: 真丢人

avatar
y*a
9
理论上同是O(N),但用heap的结果似乎要快一点?没懂

【在 b*********e 的大作中提到】
: 请问:既然quick selection 理论上证明是linear,比heap selection快。那为什么
: top k 的问题都用heap 呢?
: 按理说应该用最快的quick selection啊。

avatar
L*s
10
生背下来就好了…… 现场写容易搞错边界

【在 a********m 的大作中提到】
: 硬写quick select?那不丢人吧。。。。
avatar
L*s
11
求 K-largest from N elements:
若用 MinHeap of size K,空间 O(K),
时间:平均和最坏都是 O(N logK),若要排序输出再加 O(K logK)。
若用 QuickSelect,空间 O(N),
时间:平均O(N),最坏O(N^2),不用再排序,因为已经在最右端排好了。
如果 N 非常大,或者是不确定长度的流,当然还是用 heap。
avatar
s*z
12
用median of median的quickselect就是O(N),不用平均

【在 L***s 的大作中提到】
: 求 K-largest from N elements:
: 若用 MinHeap of size K,空间 O(K),
: 时间:平均和最坏都是 O(N logK),若要排序输出再加 O(K logK)。
: 若用 QuickSelect,空间 O(N),
: 时间:平均O(N),最坏O(N^2),不用再排序,因为已经在最右端排好了。
: 如果 N 非常大,或者是不确定长度的流,当然还是用 heap。

avatar
W*o
13
quickselect 是 in-place的,咋还算空间 O(N) ? 难道是算input的那个array 空间?

【在 L***s 的大作中提到】
: 求 K-largest from N elements:
: 若用 MinHeap of size K,空间 O(K),
: 时间:平均和最坏都是 O(N logK),若要排序输出再加 O(K logK)。
: 若用 QuickSelect,空间 O(N),
: 时间:平均O(N),最坏O(N^2),不用再排序,因为已经在最右端排好了。
: 如果 N 非常大,或者是不确定长度的流,当然还是用 heap。

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