So I haven't done magic, I've given you a really fast way to solve a knapsack problem, but it's still exponential deep down in its heart, in something.
所以我并没有施魔法,我已经告诉了你,一种快速解决背包问题的方法了,但是某些方面它的核心仍然是指数增长的。
So maybe you can tell me where you got yours.
所以也许你能告诉我在哪里买的。
So, I need to tell you how you're doing the expansion, because that's going to tell you how much energy you're wasting during that expansion.
所以我需要告诉你,膨胀是如何进行的,因为这会告诉你,在这次膨胀中,浪费了多少能量。
So how would we go about solving this problem if I told you not only was there a maximum weight, but there was a maximum volume. Well, we want to go back and attack it exactly the way we attacked it the first time, which was write some mathematical formulas.
有些时候两个都重要,所以如果我告诉你这里不仅有,最大重量还有最大容量,我们应该怎么解决这个问题呢?,好了,我们想回过来然后,和第一次一样看看这个问题。
应用推荐