We'll discuss this in a second, but why don't we actually record what the game is, that we're playing first.
一会再开始分析,我们先记录一下这个游戏的内容
I'm going to set up an index, which is going to tell me where to look, starting at the first part of the list, right?
索引告诉我从哪里开始检索数组,对不对?,然后我会去记录下我做了多少次比较,这样我就能看到这个算法的工作量了?
That means that they've never declined as much in one month before; our data started in 1987.
那意味着它们从来没有在,一个月之内下降过这么多;,我们从1987年就开始记录数据了。
OK, not a quiz for points or anything, don't freak out, but I do want you to tell me who these people are. So, what about this person?
我们的课程将由一个小测试开始,别紧张,这不记录分数的,但我希望你们能告诉我这些人是谁?
In binary search-- ah, there's that wonderful phrase, this is called a version of binary search just like you saw bin-- or bi-section methods, - when we were doing numerical things- in binary search, I need to keep track of the starting point and the ending point of the list I'm looking at.
就是当我们处理数字的时候,所称的二分检索,在二分法搜索中,我需要记录区间的开始点和尾点,初始化的时候就是-,问题输入的开始点和尾点,当我开始做测试的时候,我想要做的就是去取中值点。
应用推荐