An entry is made in the memo whenever an item, memo and an available size pair is considered.
每当选择一件物品和考虑,一种可行的方案时,都会访问。
As soon as the available size goes to 0, I know I can't enter any more items into the memo, right?
一旦可装大小为0时我就知道,我不能再在memo中添加物品了?
The 312 particles are held together in a nucleus by a force that involves the continuous exchange of meson-like particles called memo-ons.
12个粒子汇合与一个原子核里,连续不断的,叫做memo-ons的介子的交换给它作用力。
Needless to say, when this memo of the Ford Motor Company's cost-benefit analysis came out in the trial, it appalled the jurors, who awarded a huge settlement.
不用说,当福特汽车公司的这份成本效益分析备忘录,在审理时被公之于众,陪审团大为震怒,判定巨额赔偿。
So the first thing I'm going to do is, I'm going to try and return the value in the memo.
所以我要做的第一件事,就是我将会尝试将,总价值返回到memo中。
And the memo will be a dictionary that maps me from a number to Fib of that number.
这个memo就是我从一个fib数,到另一个fibs数的记录字典。
Python So I'm using the Python try except to check whether or not the thing is in the memo or not.
所以我将让,去调用except去判断该物品,是否已经在memo中。
I take something with the same parameters memo as the original. Add this memo.
我将用相同的参数进行初始化,并加上这个。
It takes the number whose Fibonacci memo I want plus a memo.
它将我想要的斐波那契数,的值加上了参数。
memo Otherwise I'll return the memo.
否则我会返回。
memo And how I'd implemented it.
而我已经加了。
If it's not in the memo, I'll compute its value and put it in the memo.
如果值没有保留在memo中,我要计算它的值,并把这个值存在memo中。
Here I'll initiate the memo to be 0, or to be empty, rather, the dictionary.
在这里我会将memo初始化为,或者为空,作为记录字典。
And then I'll call fast max val passing at this extra argument of the memo.
然后我会调用快速maxval函数,而它是基于这个额外变量memo的。
Because when somebody calls Fibonacci, memo they shouldn't worry about memos.
因为当调用Fibonacci数列时,人们往往不会在意这些。
So I put two things in the memo already.
所以我已经在memo中存储了两个东西。
These memo-ons just go back and forth.
这些,memo-ons来回反复运动。
memo The first thing it does is it initializes the memo.
它做的第一件事就是初始化。
memo I've created my ownlittle memo over there.
我会在这儿创建我自己的。
memo And then I'll return it.
然后我再返回。
I'm going to say, if n is not in memo.
我想说如果n没有被记录。
memo The integer and the memo.
也就是integer和。
应用推荐