The notion here is that you can get a globally optimal solution from locally optimal solutions to sub-problems.
这里的概念是你可以通过,子问题的局部最优方案,得到全局优化解决方案。
Perhaps you could start your resolution by finding the source of the problem.
也许你可以通过寻找问题的起源来找到解决方案。
We call that a base case. It's basically the simplest possible solution to the problem.
我们说这是一个基础案例,这是这个问题最简单的解决方案。
I want to try to understand in that lecture-- help us to understand how this works and how we're getting solutions--possible solutions to these problems.
在那节课我会,帮助大家了解这是如何发挥作用的,以及我们是如何找到,可行性方案来解决目前的问题
But it is a solution to this problem.
但这个是问题的一个解决方案。
Optimal sub structure.
简单一点的子问题的最优方案来解决问题。
So this is version two of the swap function and, in fact, it is almost identical, this is before, this is after, before, after and it looks like the solution to this problem that we've been revisiting a couple of times now is just to do what?
这个swap函数的第二个版本,实际上,这几乎是一样的,这是之前的,这个之后的,之前的,之后的,这看起来像是这个问题的解决方案,我们一直多次访问它,目的是什么呢?
They elected Margaret Thatcher and there was a resolve to do something about it but it wasn't just the U.K.; it was all over the world.
他们选举玛格丽特?撒切尔作为主席,并且出台了解决问题的方案,但是不仅仅是英国;全世界都在这样做。
应用推荐