OK. The next largest element has to end up in the second last spot. Et cetera. All right, so it's called bubble sort because it does this bubbling up until it gets there.
好的,下一个最大元素又,能跑到倒数第二的位置,等等如此,好的,这称为冒泡排序,因为这个泡泡一直冒到他自己的位置。
and it's a lot of fun. OK, so the project we worked on was a bubble gun.
真的很有意思。我们组设计的是气泡枪。
So Selection Sort, while it might be easier perhaps to think through than Bubble Sort, or maybe it's pretty much equivalent, it's just a different approach to the same problem.
因此,仔细想想,选择排序也许比,冒泡排序更简单,或者这两者都差不多,只是对同一问题的不同方法而已。
It arose from the beginnings of the housing bubble -the real estate bubble that we're now in.
而是源自房地产泡沫的初现,也就是如今的房地产泡沫
OK? Because what am I doing? It's called bubble sort because it's literally bubbling along, right?
明白了么?你要知道我在做什么,冒泡排序真的就像冒泡,对么?
They're gonna view it as a bubble to isolate themselves?
他们将会视其为孤立自身的气泡?
And when we bought, it was at the height of the housing bubble,
我们买房子的时候,正是房地产泡沫的最高峰,
I don't know how he could not think there was a bubble, but he didn't see it.
我不知道他为何认为不存在泡沫,但是他没有看出来
And so you have to go back to the drawing board and realize Bubble Sort or whatever it is you're using just isn't enough to snuff, I need to come up with something more clever.
因此,你必须重新开始,而且会意识到冒泡排序,或你正在使用的方法并不理想,我需要提出一种更好的方法。
It blows selection and Bubble Sorts out of the water, but why is that?
它比选择和冒泡排序,更高效,为什么呢?
Well, it's no surprise; this is what a housing bubble does.
不必惊讶,地产泡沫是始作俑者
God bless. Oh, sorry, that wasn't a sneeze, it was a two? How many swaps do I do in bubble sort? A lot. Right. Potentially a lot because I'm constantly doing that, that says I'm running that inner loop a whole bunch of times.
上帝保佑,哦,抱歉,我没说清楚,这是两个问题,在冒泡排序中要做多少次排序?许多,正确的,可能要做很多次,因为在持续的干,这就意味着它要做很多次内部循环。
Let's try it again. Test bubble sort.
让我们再试一试吧,测试下冒泡排序。
The percent who think it's the best investment is higher in Los Angeles than in Milwaukee, and since the peak of the bubble in 2003, it's been declining in Los Angeles but, surprisingly, rising in Milwaukee.
认为房地产是最佳投资选择的人群,在洛杉矶居民中所占比例远高于密尔沃基,自从2003年房产泡沫达到最高峰,洛杉矶房价就一直在下跌,令人惊异的是密尔沃基房价仍在上涨
It doesn't match up very well though because interest rates have been going down since 1980 and the boom is very sudden, so it seems to me that Greenspan should have seen this bubble coming.
虽然这说法有些瑕疵,因为利率自1980年开始就一直下降,但繁荣却突如其来,所以我觉得,格林斯潘本应能看到泡沫的发生
We had this huge bubble in home prices and it pushed prices up to extraordinary levels.
房价中存在大量泡沫,这些泡沫将房地产推向极度繁荣
It's not just a bubble; it's also that REITs began to be more diversified.
这不单单是一场泡沫,REIT也开始更多样化
We had a bubble in the stock market in the '90s and it collapsed after 2000 and with that it brought the economy down.
我们在九十年代股票市场中有泡沫,并且它在2000年崩塌了0,这使得经济一度低迷。
The lesson is, I think, that we have a glamour-city phenomenon-- that excitement about real estate prices-- centered in places like Los Angeles, but it's spreading and becoming more and more of a national phenomenon and that's the bubble.
我想,教训就是,一种"魅力之都"现象,刺激了房地产的繁荣,起始于像洛杉矶这种城市,随后广为扩散,逐渐演变成一种全国性的现象,这就是泡沫
应用推荐