Is this value what I'm looking for? Again, for sake of argument, let's assume it's not.
这是我们要找的值么?,再一次,为了方便起见。
Now I look at that element. Is it the thing I'm looking for? If I'm really lucky, it is. If not, I look at the value of that point here and the thing I'm looking for. And for sake of argument let's assume that the thing I'm looking for is smaller than the value here.
现在我们瞧瞧指向的元素,它是我们找的值么?如果足够幸运,他就是,如果不是,我们比较指向的元素,同我们要找的元素,方便起见,假设要找的元素比这里的值要小。
Do I need to change the lower bound?
我需要改下边界值么?
STUDENT: Comparing values?
学生:用来比较值的么?
STUDENT: So, the string A is less than three, is false because they're comparing like ASCII values?
学生:字符串A比数字3小,是false的原因是因为对他们,进行了ASCII值的比较么?
Ah-ha. What does that say to do? It says, 3 gee, make min index point to there min value be 3. Change j. Is 6 bigger than 3?
啊哈,这该怎么处理呢?,让MinIndex指向那里,MinVal是,改下j值,6比3大么?
OK. What does that say? I'm going to change MinIndex min index to also point there n value is 8, j starts off here, and I say, OK, is the thing I'm looking at here smaller than that? Yes.
好的,这意味着什么?,我打算交换,让它也指向那里,MinVal是8,j从这里开始,我要找的值比这个小么?是的。
应用推荐