How do we take a complex program, again, divide and conquer, I feel like a 1-trick pony, I keep repeating the same thing over and over again.
同样的先分解再逐个击破,我就像只会一个把戏的小马,我不断重复相同的事情。
Divide and conquer to make our programs modular so we can write them a little piece at a time and understand them a little piece at a time.
我们把程序分解为模块逐个击破,以便我们能一次写一小段,一次理解一点儿,现在我觉得。
Another fact is that we are told that when Alexander the Great went out to conquer the Persian Empire, and as far as he was concerned,to conquer everything he could reach, he carried with him a copy of the Iliad which it is alleged he put under his pillow.
另一个事实是,据说当亚历山大大帝,出征去征服波斯帝国时,对他而言,就是去征服他能达到的一切,他随身带着一本《伊利亚特》,据说放在他的枕头底下
I have used divide and conquer, as we seen before, to recursively break it into smaller problems. But the smaller problem of fib of 4 and the smaller problem of fib of 3 overlap with each other.
正如我们之前看到的,我已经进行了划分,并且递归性的把它分解为更小的问题,但是fib的简化问题,和fib的简化问题会相互重叠。
应用推荐