And I take that to be the paragraph where he talks about what fiction has done for him specifically.
重申了,这种念头,“,绕了一圈。
If it's at that point, I'm done, if not, if it's greater than the value I'm looking for, I either take one half or the other.
那么我就取左边,否则的话就取右边,好,你们可以明白,我们一次就可以缩小问题规模的一半了吧。
There's even eating meditation, you did it once with me, and I've done this in other places where you take a raisin and you put it into your mouth, and you take a minute to eat this raisin.
甚至还有食禅,我们一起试过一次,我也在别的地方试过,你拿着一粒葡萄干,放入嘴中,花一分钟时间吃掉这粒葡萄干。
Having done that, I could do the same thing, so I suppose I take this branch, I can pick a spot like, say, this one, and look there.
再从其中随即选取一个元素,比如这一个,请注意,如果相等则结束,如果不相等的话就在它的左边或右边找。
On the other hand, if I want to sort it first, OK, if I want to do sort and search, I want to sort it, it's going to take n log n time to sort it, and having done that, then I can search it in log n time.
我先排序,好的,如果我想排序再搜索,我要排序,这需要花n,log,n时间排序,然后做完了,我们能花log,n时间搜索,啊,哪一种更好呢?恩,呵呵。
应用推荐