The United Nations estimates that nearly 200,000 people, half of the region's population, are in urgent need of humanitarian assistance and they may all soon be on the move in search of towns with food and water.
VOA: standard.2009.10.06
On the other hand there may be some other spaces that students would be encouraged to search for those who might have experiences unlike their own.
除此之外,也有可能在一些别的空间,学生们会受到鼓励,去寻找,那些和自己经历不同的人。
It's an example of a very common tool that's going to be really useful to us, not just for doing search, but for doing a whole range of problems. That is, in essence, the template the describes a log style algorithm.
不仅仅是做搜索,还可以解决一整类问题,本质上,这个模板就描述了,对数形的算法,我们一会再回来。
We need to change to a different business model so that we can come up with better technology, and the better search technology can be appreciated by the market.
公司要改变以往的商业模式,来促进新技术的研发,而且新技术,是受市场欢迎的。
OK. So, what do I want you to take away from this? This idea of binary search is going to be a really powerful tool. And it has this property again, of chopping things into pieces.
从这里学到些什么?二分查找的思想,是一个非常有用的工具,我重复一遍,把问题拆成几部分来解决,那事实上,这里的增长率是多少?
I'm narrowing it down. It's getting a little silly but you know I'm going to really be persistent and just follow the rules here of binary search, rather than jumping to conclusions.
按照二分法的规则来做的,而不是直接得出某种结论,很明显这儿我的目的是什么?,显示这两个相同的东西。
On the other hand, am I likely to only search a list once? Probably not. There are going to be multiple elements I'm going to be looking for, so that suggests that in fact, I want to amortize the cost.
我可能就搜索一次么?,可能不是,可能我要找好多个元素,这样的情况下,我们就能分摊开销了,这告诉我们什么?这意味着。
Once that's clear, we will send it to the necessary application, be it a search engine or anti-virus software, or a stock search, or shopping, or FriendFinder - anything that can be plugged into this kind of platform.
结果一出,页面将会转到相应的应用,像,搜索引擎,或者,杀毒软件,或是,股票搜索,购物,交友网站,任何能够接入平台的东西。
That goes back to that idea of sort of discipline coding. It's easy to have assumptions about what you think are going to come into the program when you writ it. If you really know what they are use them as search, but if you think there's going to be some flexibility, you want to prevent the user getting trapped in a bad spot, and exceptions as a consequence are a good thing to use.
这又回到了规范编码的想法上来了,在你写代码的时候考虑,什么会进入你的代码的思考是简单的,如果你真的知道,他们是用他们来做搜索的,而你希望有一定的灵活性,你想要阻止用户,陷入一个艰难的境地,那么异常是非常实用的。
In the linear case, meaning in the unsorted case what's the complexity of this? k times n, right? Order n to do the search, and I've got to do it k times, so this would be k times n.
复杂度是多少?k的n次方,对吧?,在序列n中做搜索,要做k次,所以是k的n次方次,如果先排序后搜索。
应用推荐