And when you have an optimal substructure and the local solutions overlap, that's when you can bring dynamic programming to bear.
当你得到一个最优子结构,但局部解决方案有重跌时,你就可以引入动态编程,来解决这个问题了。
So let's ask, is there an optimal substructure to this problem.
所以让我们问问,这个问题是否有最优子结构。
And the other one was optimal substructure.
另一件就是最优子结构。
应用推荐