由买买提看人间百态

topics

全部话题 - 话题: median
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
s*******d
发帖数: 17566
1
1. San Diego, California
Breakeven horizon: 3.6 years
Price-to-rent ratio: 14.0
Median list price: $369,000
Median rent price: $1,750
2. Seattle, Washington
Breakeven horizon: 4.0 years
Price-to-rent ratio: 13.4
Median list price: $290,000
Median rent price: $1,270
3. Boston, Massachusetts
Breakeven horizon: 4.3 years
Price-to-rent ratio: 13.4
Median list price: $347,900
Median rent price: $2,000
4. Los Angeles, California
Breakeven horizon: 4.3 years
Price-to-rent ratio: 14.2
Median list price... 阅读全帖
s*******d
发帖数: 17566
2
【 以下文字转载自 Living 讨论区 】
发信人: splitmind (狗爹猫爸), 信区: Living
标 题: 如果你住在这几个城市,租比买划算
发信站: BBS 未名空间站 (Fri Aug 17 18:42:34 2012, 美东)
1. San Diego, California
Breakeven horizon: 3.6 years
Price-to-rent ratio: 14.0
Median list price: $369,000
Median rent price: $1,750
2. Seattle, Washington
Breakeven horizon: 4.0 years
Price-to-rent ratio: 13.4
Median list price: $290,000
Median rent price: $1,270
3. Boston, Massachusetts
Breakeven horizon: 4.3 years
Price-to-rent ratio: 13.4
Median list price: $347,900... 阅读全帖
t****g
发帖数: 35582
3
来自主题: PhotoGear版 - 住如下地方的考虑下发包子吧
America’s Happiest States
Charles B. Stockdale, March 2, 2012
10. Montana
Well-being index score: 68.0
Life expectancy: 78.4 (24th lowest)
Obesity: 23.0% (6th lowest)
Median household income: $42,666 (11th lowest)
Adult population with high school diploma or higher: 91.7% (3rd highest)
Residents of Montana are generally happy. They rate themselves among the
highest in the nation in both Gallup’s life evaluation and emotional health
categories. Montana has among the most educated adult population... 阅读全帖
G****r
发帖数: 3924
4
来自主题: Joke版 - 美国生活最幸福的十个州
America’s Happiest States
Charles B. Stockdale, March 2, 2012
10. Montana
Well-being index score: 68.0
Life expectancy: 78.4 (24th lowest)
Obesity: 23.0% (6th lowest)
Median household income: $42,666 (11th lowest)
Adult population with high school diploma or higher: 91.7% (3rd highest)
Residents of Montana are generally happy. They rate themselves among the
highest in the nation in both Gallup’s life evaluation and emotional health
categories. Montana has among the most educated adult population... 阅读全帖
C*********l
发帖数: 10248
5
10. 90077
> Median list price: $2.82 million
> City/town: Bel Air, Calif.
> Year-over-year change: 16.4%
In Bel Air, nestled in the hills above Sunset Boulevard, great views command
a hefty price tag. Media rooms are a must-have because many locals work in
what’s known as “The Industry,” meaning Hollywood. One current listing is
a $29.9 million property that boasts 20,000-square feet in a “glorious,
gated and private compound.” In ritzy Bel Air, it’s not enough to own a
pool, you also need to ha... 阅读全帖
G****a
发帖数: 10208
6
America’s Most Livable States
10. Maryland
> Future livability score: 18.5
> Full-time employment: 3rd best
> Job creation index: 24th best
> Outlook on life in five years: 16th best
Maryland is the state with the 10th-best outlook in the country, according
to Gallup’s Future Livability survey. The state has the wealthiest
population in the nation based on median household income, according to
recent Census data. Also, just 8.4% of Maryland households live below the
poverty line, compared to the... 阅读全帖
b**********u
发帖数: 2817
7
Southland December Home Sales at Six-Year Low; Median Price Jumps
January 14, 2014
La Jolla, CA---Southern California home sales fell to a six-year low for the
month of December as investor activity eased again and buyers struggled
with a tight inventory of homes for sale. The median price paid for a home
jumped to the highest level in nearly six years, the result of demand
outstripping supply, declining distress sales and a slight increase in the
share of sales in mid- to high-end areas, a real... 阅读全帖
r******d
发帖数: 1879
8
来自主题: SanFrancisco版 - JP Morgan 加入房托队伍
摘要:
- Median price to household income ratio is history low at 153%
- history low mortgage interest
- Median mortgage payment is only 78% of median asking rent, and it used to
be 105% before 2005
- new house price is only 25% higher than construction cost, and it is twice
as much in 2005
全文:
With the debt crisis in Europe still unresolved and economic growth in the U
.S. sluggish, the capital markets continue to exhibit elevated volatility.
However, this does not mean that no investment opportun... 阅读全帖
k****a
发帖数: 4944
9
1. El Paso, Texas
Median Pay, 2005:$41,100
Median Pay, 2009:$49,100
Median Pay Trend:19.39%
Unemployment Rate:9.5%
2. Bakersfield, Calif.
Median Pay, 2005:$51,300
Median Pay, 2009:$60,900
Median Pay Trend:18.52%
Unemployment Rate:14.5%
3. Omaha-Council Bluffs, NE-IA
Median Pay, 2005:$45,500
Median Pay, 2009:$53,900
Median Pay Trend:18.39%
Unemployment Rate:4.8%
4. Virginia Beach-Norfolk-Newport News, VA-NC
Median Pay, 2005:$44,500
Median Pay, 2009:$52,200
Median Pay Trend:17.28%
Unemployment Rat
b**********u
发帖数: 2817
10
Seattle Region November Home Sales
Seattle-area home sales fell year-over-year in November for the first time
in 29 months as an increase in mid- to high-end transactions and condo
resales failed to compensate for an overall drop in sales below $300,000.
The median price paid for a home dipped month-to-month again and its gain
from a year earlier was the lowest in 17 months, a real estate information
service reported.
A total of 4,101 new and resale houses and condos closed escrow during
Novembe... 阅读全帖
s*******2
发帖数: 2898
11
请注意:again。
Southland Home Sales Fall Yr/Yr Again; Prices Rise at Slower Pace
August 13, 2014
Irvine, CA---Southern California home sales fell to a three-year low for the
month of July as supply continued to fall short of demand, some buyers
struggled with higher prices, and investor activity fell. Cash deals
declined to the lowest level in more than four years, while the median sale
price dipped from June and rose from a year ago at the slowest pace in more
than two years, a real estate informat... 阅读全帖
E********d
发帖数: 26
12
来自主题: NewJersey版 - 介绍一下harrison,NJ
9 American cities going broke
This is 24/7 Wall St.’s list of Nine American Cities Going Broke.
9. Camden, NJ
> Credit rating: Ba2
> 2009 revenues: $181,257,000
> 2009 debt: $103,284,000
> Median household income: $25,418
Camden suffers from high unemployment, high poverty, and a weak tax base.
The city’s median household income is less than half that of the national
median income and is the lowest of all the municipalities on this list.
Moody’s notes that “more than half of Camden’s real estate... 阅读全帖
n*********e
发帖数: 25274
13
来自主题: NewJersey版 - 北泽西,租房比买房划算
5 housing markets where renting beats owning
In theory, plummeting home prices and record-low interest rates should make
buying a home cheaper than renting one. But experts say in some parts of the
country, it still pays to be a tenant.
Despite the incentives to buy now, including record-low interest rates and
depressed prices, sales of single-family existing homes slipped 1.5% in May
from a month earlier, according to data from the National Association of
Realtors.
The drop, which came during t... 阅读全帖
k***a
发帖数: 2400
14
Bay Area Median Sale Price Highest Since 2007; Slowest March Sales in 6
Years
April 16, 2014
La Jolla, CA.----Home prices in the Bay Area continued to increase at a
brisk pace last month, the result of a strong local economy and a tight
supply of homes on the market. The number of homes sold was the lowest for
any March since 2008, a real estate information service reported.
The median price paid for a home in the nine-county Bay Area rose last month
to $579,000, the highest since the median was... 阅读全帖
y*******6
发帖数: 173
15
来自主题: SanFrancisco版 - 房事的新高?
见附件。弯曲房事中位价第一次超过07年的高点,出现新高686k。
San Francisco Bay Area’s Median Home Sale Price Climbs to All-Time Peak in
April; Sales Rise from March but Fall Year Over Year
New data released today by CoreLogic® shows the median price paid for
all homes sold in Alameda, Contra Costa, Marin, Napa, Santa Clara, San
Francisco, San Mateo, Solano and Sonoma counties in April 2016 hit a new
high for the region at $686,000. The prior peak of $665,000 was reached in
June and July of 2007. The median price was u... 阅读全帖
s***i
发帖数: 114
16
Unfortunately, Montogomery County is out of the list. MC used to be #8 in
top 10.
2010 Census: New Data Reveal Richest Counties In America (PHOTOS)
Northeast Virginia led the nation in income as it was home to four of the
top 10 earning cities. Local officials attribute the high ranking to
excellent education levels and easy access to the DC Metro area, according
to ABC. The richest county in the country saw a median income increase of
almost $17,000 since 2000.
10. Fairfax City, VA - Median Inc... 阅读全帖
s*****n
发帖数: 2174
17
来自主题: Statistics版 - 请教一道题.
Var(X)
=E(X-Median(X) + Median(X) - Mean(X))^2
=E(X-Median(X))^2 + 2(Median(X)-Mean(X))*E(X-Median(X))+(Median(X)-Mean(X))^
2
=E(X-Median(X))^2 - (Mean(X)-Median(X))^2
于是此题等价于证明
E(X-Median(X))^2 >= 2 * (Mean(X)-Median(X))^2
这个是显而易见的, 对于固定样本可以很容易的构造性证明(两两配对).
如果要严格对于概率测度来证明, 恐怕要复杂多了, 我能想到的是以median最为概率测
度的中分点, 然后两边还有个匹配问题. 结论很直观, 不过要说严格了可能还不容易.
B*******a
发帖数: 1280
18
来自主题: Military版 - The 100 Best Jobs
The 100 Best Jobs
608inShare
All jobs aren't created equal. In fact, some are simply better than the rest
. U.S. News 100 Best Jobs of 2013 are the occupations that offer a mosaic of
employment opportunity, good salary, manageable work-life balance, and job
security. Some careers offer just the right mix of these components—for
instance, our top tier is filled with tech and healthcare jobs—but the list
also includes strong showings from occupations in the social services and
business sectors. Ev... 阅读全帖
M****J
发帖数: 2908
19
来自主题: Military版 - 我的廊坊发展涨50%了
这种股票还有分析师关注
http://www.capitalcube.com/blog/index.php/langfang-development-
Langfang Development Co., Ltd. – Value Analysis (SHANGHAI:600149) : April 6
, 2016
POSTED BY CAPITALCUBE ON APRIL 6, 2016 IN YAHOO FINANCE, ASIA PACIFIC VALUE
| 1 VIEW | LEAVE A RESPONSE
Click here to see latest analysis
Capitalcube gives Langfang Development Co., Ltd. a score of 47.
Our analysis is based on comparing Langfang Development Co., Ltd. with the
following peers – 8Telecom International Holdings Co., Ltd., Wei... 阅读全帖
b********n
发帖数: 38600
20
来自主题: Military版 - 五个挣钱最多的专业
50 Highest Paying College Majors
https://www.glassdoor.com/blog/50-highest-paying-college-majors/
1. Computer Science
• Median Base Salary: $70,000
• Popular Entry-Level Jobs: Software Engineer, Systems Engineer,
Web Developer
2. Electrical Engineering
• Median Base Salary: $68,438
• Popular Entry-Level Jobs: Electrical Engineer, Systems Engineer,
Software Developer
3. Mechanical Engineering
• Median Base Salary: $68,000
• Popular Entry-Level... 阅读全帖
B**W
发帖数: 2273
21
Don’t Tax the Rich. Tax Inequality Itself.
By IAN AYRES and AARON S. EDLIN
THE progressive reformer and eminent jurist Louis D. Brandeis once said, “
We may have democracy, or we may have wealth concentrated in the hands of a
few, but we cannot have both.” Brandeis lived at a time when enormous
disparities between the rich and the poor led to violent labor unrest and
ultimately to a reform movement.
Over the last three decades, income inequality has again soared to the sort
of levels that alarme... 阅读全帖
l****z
发帖数: 29846
22
Recession Recovery: Cities that Have Improved the Most
by Sreekar Jasthi via NerdWallet Credit Card Blog
The Great Recession began in December 2007 when the U.S. housing market was
hit hard by subprime mortgage losses. The fallout led to a decline in
consumer spending and business investment, which was followed by massive job
losses — in 2008 and 2009, the U.S. workforce lost at least 8.7 million
jobs.
According to the National Bureau of Economic Research, the recession
officially ended in June ... 阅读全帖
N******o
发帖数: 3053
23
来自主题: Living版 - 好区坏区,一目了然!
10. Stockton, Calif.
> Violent crimes per 1,000: 14.1
> Population: 295,136
> 2011 murders: 58
> Median income: $45,606
> Unemployment rate: 20.2%
9. Baltimore, Md.
> Violent crimes per 1,000: 14.2
> Population: 626,848
> 2011 murders: 196
> Median income: $38,346
> Unemployment rate: 10.5%
8. Atlanta, Ga.
> Violent crimes per 1,000: 14.3
> Population: 425,533
> 2011 murders: 88
> Median income: $41,631
> Unemployment rate:12.1%
7. Birmingham, Ala.
> Violent crimes per 1,000: 14.8
> Population: ... 阅读全帖
g******4
发帖数: 6339
24
Cities are cities, and towns are towns
---------------------------------------
Top ten highest earning towns across America
by Lani Rosales in Economic News - August 17, 2011
1. Great Falls, VA
Population: 8,757
Median family income: $367,660
Median home price: $1,090,000
2. Hillsborough, CA
Population: 10,540
Median family income: $319,240
Median home price: $2,277,500
....
6. Glencoe, IL
Population: 8,881
Median family income: $237,874
Median home price: $807,500
7. Winnetka, IL
Population: 12... 阅读全帖
l****l
发帖数: 3394
25
摘要,市场两年疯跑过后开始冷静
----------------------------------
http://www.thereporter.com/business/ci_26441520/july-home-sales
By Reporter Staff
POSTED: 08/30/2014 08:22:51 PM PDT0 COMMENTS
A "For Sale" sign stands outside of a home in Peoria. Home sales were up
nationwide but fairly...
Bay Area home sales dipped last month, the result of continued constrained
supply, the decline in affordability, and a still-tight mortgage market.
While still rising year-over-year, the median sale price stayed at a three... 阅读全帖
t**8
发帖数: 4527
26
旧金山的房价是北美第一的
当然我也不知道为什么说旧金山比温哥华房价高
#1. San Francisco, CA
Median home sale price (Dec. 2015): $1,085,000 USD
#2. Manhattan, NY
Median home sale price (Dec. 2015): $1,059,000 USD
#3. San Jose, CA
Median home sale price (Dec. 2015): $700,000 USD
#4. Brooklyn, NY
Median home sale price (Dec. 2015): $620,000 USD
#5. Los Angeles, CA
Median home sale price (Dec. 2015): $565,000 USD
#6. Vancouver, B.C. (Canada)
Median home sale price (Dec. 2015): $549,783 USD / $760,900 CAD
#7. Seattle, WA
Median home s... 阅读全帖
g********0
发帖数: 15010
27
These are the 10 cities with the highest rates of violent crime.
10. Stockton, Calif.
> Violent crimes per 1,000: 14.1
> Population: 295,136
> 2011 murders: 58
> Median income: $45,606
> Unemployment rate: 20.2%
In 2010, Stockton had an unemployment rate of 18.4%, among the worst in the
nation for large cities. In 2011, the labor market worsened and unemployment
rose to 20.2%, well more than double the national average of 8.9% and the
highest of any of the cities on this list. Violent crime rate... 阅读全帖
w********9
发帖数: 8613
28
http://www.koreanwar-educator.org/topics/casualties/p_casualtie
Necrometrics.com*
*Reprinted with the permission of Matthew White at www.necrometrics.com.
www.necrometrics.com website particularly shows the discrepancies in figures
from source to source that cause it to be impossible to find a definitive
answer as to the exact number of North Korean, South Korean, and Chinese
military and civilians were casualties of the Korean War. The website's
founder and author, Matthew White, states the fo... 阅读全帖
w********9
发帖数: 8613
29
http://www.koreanwar-educator.org/topics/casualties/p_casualtie
Necrometrics.com*
*Reprinted with the permission of Matthew White at www.necrometrics.com.
www.necrometrics.com website particularly shows the discrepancies in figures
from source to source that cause it to be impossible to find a definitive
answer as to the exact number of North Korean, South Korean, and Chinese
military and civilians were casualties of the Korean War. The website's
founder and author, Matthew White, states the fo... 阅读全帖
w********9
发帖数: 8613
30
http://www.koreanwar-educator.org/topics/casualties/p_casualtie
Necrometrics.com*
*Reprinted with the permission of Matthew White at www.necrometrics.com.
www.necrometrics.com website particularly shows the discrepancies in figures
from source to source that cause it to be impossible to find a definitive
answer as to the exact number of North Korean, South Korean, and Chinese
military and civilians were casualties of the Korean War. The website's
founder and author, Matthew White, states the fo... 阅读全帖
S**I
发帖数: 15689
31
☆─────────────────────────────────────☆
gzou (gzou) 于 (Thu May 12 02:26:35 2011, 美东) 提到:
马上就要G on site了,
求祝福。
下面是从本版收集到的Google的试题,便于大家查询。
申明:有的附带有解释说明的,也来自于本版或者网络,大家自己看, 不保证真确
http://www.mitbbs.com/article_t1/JobHunting/31847453_0_1.html
本人ECE fresh PhD,背景是电路/EDA,跟G业务基本没什么关系
同学内部推荐的,很简单的一次电面就给了onsite
题都不难,但是自己没把握好机会,出了一些小bug。
总的感觉,出错就是硬伤,宁可从最简单的算法写起,也不能出错。
电面:
1,Skip list, http://en.wikipedia.org/wiki/Skip_list
写code实现struct skip_list * find(struct skip_list *head, int value)
2,sorted array... 阅读全帖
S**I
发帖数: 15689
32
☆─────────────────────────────────────☆
gzou (gzou) 于 (Thu May 12 02:26:35 2011, 美东) 提到:
马上就要G on site了,
求祝福。
下面是从本版收集到的Google的试题,便于大家查询。
申明:有的附带有解释说明的,也来自于本版或者网络,大家自己看, 不保证真确
http://www.mitbbs.com/article_t1/JobHunting/31847453_0_1.html
本人ECE fresh PhD,背景是电路/EDA,跟G业务基本没什么关系
同学内部推荐的,很简单的一次电面就给了onsite
题都不难,但是自己没把握好机会,出了一些小bug。
总的感觉,出错就是硬伤,宁可从最简单的算法写起,也不能出错。
电面:
1,Skip list, http://en.wikipedia.org/wiki/Skip_list
写code实现struct skip_list * find(struct skip_list *head, int value)
2,sorted array... 阅读全帖
P*********t
发帖数: 4451
33
来自主题: NewJersey版 - Bergen County
At Home In: Bergen County
Thursday, September 20, 2012
BY JENNIFER PINTO SPECIAL TO OPEN HOUSE Wire Service
Located in the northeastern corner of the state, Bergen County boasts close
access to various parts of New York City. Boroughs such as Fort Lee and
Englewood Cliffs are only minutes from the George Washington Bridge, while
the towns of Rutherford and Lyndhurst have closer access to Manhattan via
the Lincoln Tunnel.
Bergen County features a mix of townships and boroughs, as well as a few
ci... 阅读全帖
P*********t
发帖数: 4451
34
来自主题: NewYork版 - Bergen County (转载)
【 以下文字转载自 NewJersey 讨论区 】
发信人: PhuqCaliCat (云中山里人 Schulanfang), 信区: NewJersey
标 题: Bergen County
发信站: BBS 未名空间站 (Fri Sep 21 07:00:53 2012, 美东)
At Home In: Bergen County
Thursday, September 20, 2012
BY JENNIFER PINTO SPECIAL TO OPEN HOUSE Wire Service
Located in the northeastern corner of the state, Bergen County boasts close
access to various parts of New York City. Boroughs such as Fort Lee and
Englewood Cliffs are only minutes from the George Washington Bridge, while
the towns of Rutherford a... 阅读全帖
c**i
发帖数: 6973
35
Summary: In American, Taiwanese, not Asian Indian, have highest percentage
of graduage or professional degree and earn higher income.
(1) Your introduction says, "2011的美国人口普查显示,华裔在在美国有380万居亚
裔中第一位。第二的是菲律宾人,第三是印度人290万。亚裔家庭收入中值是69K,而印
度裔的家庭收入最高,达到了90K.
(a) It is not 2011 (see next)--the US census was done in 2010, once a decade
since 1790.
(b) The data you cite is derived from
Asian/Pacific American Heritage Month: May 2011. US Census Bureau, Mar 8,
2011 (document no. CB11-FF.06)
http://www.census... 阅读全帖
B*S
发帖数: 1328
36
I know I am not supposed to do this here. But both the view point and
the conclusion are interesting...
************************************************************************
In a recent report Stöferle went on to say:
1) The Dow/gold ratio suggests a possible future $10,400 price
for gold.
At 8.5x the Dow/gold ratio is currently slightly above the long-term
median of 8x. This means that gold is still relatively inexpensive in
comparison with the Dow Jones. Bull markets tend to en... 阅读全帖
W*****e
发帖数: 7759
37
http://realestate.yahoo.com/promo/most-and-least-affordable-cities-to-buy-a-house-2010
Top 5 Least Affordable Cities
1. New York
Median home price: $426,000
Median income: $65,600
Affordability score: 20.9%
2. San Francisco
Median home price: $585,000
Median income: $98,400
Affordability score: 23.4%
3. Honolulu
Median home price: $403,000
Median income: $81,700
Affordability score: 34.7%
4. Santa Ana, Calif.
Median home price: $410,000
Median income: $87,300
Affordability score: 34.5%
5: Los An

发帖数: 1
38
来自主题: Military版 - 12 月26日 可能的真相
12月26日 事实的真相
以前我们分析过,Augusta, GA 只是这个人体基地的一个点,而且我们也追踪到还有一
个点在加州。那么经过更多的分析,显示事实的真相可能是如此。这些地下通道是很久
以前就存在的,是为了战争或避难用的,后来在南北战争中,又充当奴隶逃跑到北方的
通道。那么在后来的后来,就被一些别有用心的人充当了非法活动的场地。而到了80年
代后,日本人就加入进来,把其改造成了一个军事,人体实验基地,成了报复美国的一
种手段。当然,我也强调历史和解,仇恨和解,但要在正确的认知,悔改下的和解。如
果一边在屠杀受害者,一边高谈和解,并千方百计掩盖事情真相的曝光,这不是悔改的
表现,最多是转移了屠杀的目标,我们不能原谅罪恶势力彼此勾结下的和解。根据分析
,这个基地的入口就在Deerfield, ILLinois. 世界每一个人都是这个基地的受害者,
都是这些大药厂的受害者,受害者以亿为单位来计算。你们很可能都在不知不觉中受到
了他们的伤害,请把信息传达到世界每一个角落,让我们一起携手和世界上最邪恶的势
力做顽强的斗争,他们现在还在屠杀无辜的受害者,每天在我家里杀人。请你们和我站
在... 阅读全帖
t*******y
发帖数: 21396
39
啧啧,右逼文盲真可怜,只能拍脑子骂街了。和伐木场里的400磅一个架势。
http://www.nbcnews.com/news/asian-america/asian-americans-set-s
Asian Americans Set to Surpass Whites in Median Family Wealth
FEB 27 2015, 3:53 PM ET
The Federal Reserve Bank of St. Louis examined data from 40,000 families
between 1989 and 2013 and found that the median family wealth of Asian
Americans has been increasing over the past 25 years and may eventually
surpass that of whites. "The Demographics of Wealth--How Age, Education and
Race Separate Thrivers... 阅读全帖
h********e
发帖数: 1972
40
来自主题: JobHunting版 - 说一题恶心题怎么用nlog n来解。
一般面试不会见到这种东西的。权当娱乐吧。
P1:两个sorted数组,每个数组选一个数,相加。求第k大的和。
P2:一个n*n的矩阵,行和列都是sorted的,求第k大数。假设是从左到右递增,从上到
下递增。
P1是P2的特例。
这个题目O(n^2)是最直接的解法。然后有个O(k logn)的用堆来做,稍微tricky一些。
下面说下n logn的怎么搞出来。
首先想到的是套median的算法。比如一开始拿矩阵中心的那个数,say q 出来。从右上
开始往左下 能用O(n)的时间找出一条分界线, 这条分界线是单调的。使得这条线以上
的数比q小,下的数比q大。然后扔掉不对的那一半递归。第一次这么扔能扔掉至少1/4
的矩阵。问题来了,第二次继续在剩下的里面怎么做。
剩下的是神马。。是n 个row。每个row大小都不一样。目标是在这堆row里面扔掉至少1
/4. 这时候,每个row 可以找出一个median来。然后一般的做法找medians的median。
但是在这里行不通,因为有的row size比较小,这么做不能保证每次扔掉1/4. 必须修
正算法。要找weighted median。这... 阅读全帖
b*******d
发帖数: 750
41
来自主题: JobHunting版 - 这个怎么解:找到N^2个数的中数

~~~~
sure, so you don't sort, just iterate each local file when testing.
totally it will be still linear time (with up to 32 iterations of files
though, big constant factor), and no touching on original data.
actually it's all integer numbers, i think even sorting could be done in
linear time (radix sort), and it will speed up testing a lot.
Not sure why median of median works:
let N = 5,
Machine1: 1 2 3 4 5 median 3
Machine2: 101 102 103 104 105 median 103
Machine3: 99 100 104 10... 阅读全帖
b*******d
发帖数: 750
42
来自主题: JobHunting版 - 这个怎么解:找到N^2个数的中数

hmmm...
what about:
machine 1: 1 2 3 4 5 median: 3
machine 2: 1 2 3 4 5 median: 3
machine 3: 1 2 3 4 5 median: 3
machine 4: 101 102 103 104 105 median: 103
machine 5: 101 102 103 104 105 median: 103
median of median: 3, but it's obviously not the global median, only 6
elements are less than "3"...
if you guys are talking about this kind of http://www.ics.uci.edu/~eppstein/161/960130.html
i guess there is a recursion step you guys missed.. ???
b*******d
发帖数: 750
43
来自主题: JobHunting版 - 这个怎么解:找到N^2个数的中数

~~~~
sure, so you don't sort, just iterate each local file when testing.
totally it will be still linear time (with up to 32 iterations of files
though, big constant factor), and no touching on original data.
actually it's all integer numbers, i think even sorting could be done in
linear time (radix sort), and it will speed up testing a lot.
Not sure why median of median works:
let N = 5,
Machine1: 1 2 3 4 5 median 3
Machine2: 101 102 103 104 105 median 103
Machine3: 99 100 104 10... 阅读全帖
b*******d
发帖数: 750
44
来自主题: JobHunting版 - 这个怎么解:找到N^2个数的中数

hmmm...
what about:
machine 1: 1 2 3 4 5 median: 3
machine 2: 1 2 3 4 5 median: 3
machine 3: 1 2 3 4 5 median: 3
machine 4: 101 102 103 104 105 median: 103
machine 5: 101 102 103 104 105 median: 103
median of median: 3, but it's obviously not the global median, only 6
elements are less than "3"...
if you guys are talking about this kind of http://www.ics.uci.edu/~eppstein/161/960130.html
i guess there is a recursion step you guys missed.. ???
f*****e
发帖数: 2992
45
来自主题: JobHunting版 - 发个一直没有见过满意答案的题吧
两年前的advanced algorithm的习题:
告诉大家正确答案吧,我已经figure out该怎么弄了,不知道考试有多难?nnd。
上面有位同学说用求meidan of median,有点像,但不一样。我是用O(N)(第一次建medi
ans的minheap和maxheap,后来为O(log(n))因为只是插入和删除操作)找出median最大
的数组A1和median最小的数组An,然后remove A1的upper half和An的lower half相同
数目的元素(i.e. min(0.5*size(A1),0.5*size(An))。然后重新找最大和最小median,
这么着iterate, so on and so forth. 这样就可以找到所有数组的median。
然后怎么把找kth变成找median呢,方法如下:
如果k!=n/2 or k不是median,就pack几个非常小(比所有数小, if k < n/2 )或非常大
的数(if k > n/2) 平均放到n个数组上去,然后求所有新数组的median,就是求老数组
的kth_element鸟。
这样我们的... 阅读全帖
f******h
发帖数: 45
46
也找工作了一段时间了,从版上学了很多,上周G家面完了,求个bless。
之前的一些都挂了,还在继续找其他的。等定下来之后一定发面经回报本版。
谢谢大家啦!!
1. http://www.mitbbs.com/article_t/JobHunting/32005597.html
1) Implement a simple calculator (+,-,*,/);
2) Implement "+1" for a large integer;
3) How to match Ads to users;
4) How to extract useful information from a forum webpage (list all
kinds of useful signal you can think of)
5) How to detect the duplicate HTML pages (large scale);
6) Find all the paths between two places on Google map;
7)... 阅读全帖
x****u
发帖数: 81
47
大家好,最近忙于找工作,听人介绍发现了这个版面,看了各位大大的帖子受益匪浅,
于是也来分享下自己电面的题目。几次电面发挥得很不理想,我自己总结了一些教训,
也希望大家指点迷津,给我点建议,先行谢过!
// 题目
1. Yahoo
Given a integer array, how to find the median?
Running median. Numbers keep coming in one after another, how to get the
median?
2. Google
(1)
struct A {struct A *b;}
struct A * d = 0;
void S(struct *f) {f->b = d; d=f;}
What is function S doing? Can you name this function?
What if we need S to work with any type of pointer?
Does your solution work in multi-threaded programs? Why? How... 阅读全帖
J***K
发帖数: 140
48
来自主题: Stock版 - 会打到2625
根据1990年以来历史统计,周一反弹的略占多数。
http://thepatternsite.com/Blog.html#P5
created a spreadsheet of Dow movements since October 1928 and found 39
cases where the Dow dropped by 2.6% (the drop on Friday).
Of those 39 cases, 23 of them saw the Dow close higher and 16 were lower.
For those 23 closing higher, the median rise was 1.11% with an average of 1.
15%.
For those 16 closing lower, the median drop was 1%, the average was 1.72%
14 of the drops happened on Friday. Seven of them saw Monday close higher
and... 阅读全帖
B********e
发帖数: 501
49
Belmont
Population in 2010: 24,729. Population change since 2000: +2.2%
Males: 11,346 (45.9%)
Females: 13,383 (54.1%)
Median resident age: 41.5 years
Massachusetts median age: 39.2 years
Zip codes: 02478.
Estimated median household income in 2012: $106,764 (it was $80,295 in 2000)
Belmont:
$106,764
MA:
$65,339
Estimated per capita income in 2012: $56,677
Belmont CDP income, earnings, and wages data
Estimated median house or condo value in 2012: $621,862 (it was $419,700... 阅读全帖
M********I
发帖数: 848
50
来自主题: Michigan版 - sterling heights这个区怎么样?
在这个版混的,可能没有人住在那。这个情况本身就说明了很多。
作为拿了证书的房屋买卖代理,有些话是不能说的,尤其是在公共场合留下字面证据。
:)
这里是48312邮编,目前房屋买卖和出租的信息:
On-Market Listings: 68 On-Market Listings: 7
Foreclosed Listings: 5 Foreclosed Listings: 0
Median List Price: $116,000.00 Median List Price:$1,200.00
Sold Listings (Past Year):387 Leased Listings (Past Year):53
Sold Short Sales: 60 Leased Short Sales: 0
Median Sold Price: $102,500.00 Median Sold Price:$1,250.00
Median Cumulat... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)