Don't you know that I keep thinking about you.
你不知道我一直想着你吗?
Keep thinking about you, you are on a touch less than any place.
不停地想着你,把你放在一个任何人都触碰不到的地方。
Right about now, you might be thinking: it sounds great, but I'm not a good writer; or I'd love to keep a diary, but my handwriting is terrible.
现在,你可能在想:听起来不错,但我并不是一个好的写手;或者我可以写日记,但是我的笔迹很难看。
Notice here that it's different than the binary search case. We're certainly dividing down, but the combination now actually takes some work. I'll have to actually figure out how to put them back together. And that's a general thing you want to keep in mind when you're thinking about designing a divide and conquer kind of algorithm.
一个分治的例子,注这里,与二分查找所不同的地方,我们肯定是分解了,但是合并的过程还是需要一些工作量的,我会详细说明怎样把它们合并在一起的,当你在考虑设计一个分治算法时,这是你要必须记住的最基本的东西。
应用推荐