Now this can actually take a while to watch but you'll see that the numbers are moving into position.
现在大家可以观察一会儿,你会发现,数字都被移动到了合适的位置。
Gentleman you will have to come and do this as you would like to have it done.
这位先生,你上来调整一下,调到你觉得合适的位置吧
In other words, if you look too closely at a picture or if you stand too far away from it you don't see it clearly it's out of focus but if you achieve just the right distance from it, it comes into focus.
换句话说,如果你站得离一幅图画太近,或太远都无法看清它,它在焦距之外,但是如果你站在合适的位置上,焦距就对准了,画就清晰了。
N But it's definitely not one and in fact it wasn't N in the case of Selection Sort because remember the algorithm we implemented on stage last week had me going back and forth across the stage selecting on iteration, the smallest person I can find, the smallest number and then putting them into place.
但在选择排序中,肯定不会是1,也不是,注意,上周我们在这儿,实现的算法中,反复地,迭代进行选择,选出最小的数,然后将其放在合适的位置。
Lay it down and make sure it's in the right position, right?
确保把它们放在合适的位置,我说的对吧?
So the first one here is something called insertion sort which amounts to going through the list, taking the first thing that you see and inserting that element into its correct place, - then moving on to the next one, dealing with what element-- whatever element you're given and putting it in its right place.
首先是插入排序,在此算法中,需要遍历整个列表,将你遇到的第一个元素放在其正确的位置,然后移动到下一个元素,继续处理-,不管是什么元素,都将其插入到合适的位置。
应用推荐