i If I'm going to keep that item, item i, if I'm going to take it, I give it a 1.
如果我想要保留这个物品,如果我打算带走它。
and you can just take it away and walk around the market. And it's only 5 pounds.
你可以把它打包带走,然后逛逛市集。这只要五英镑。
Day and night I begged my mother and father to take the bag away shaking with terror because no one saw them but me.
我无时无刻不乞求我的父母,指着那些袋子,让他们带走,我怕的发抖,由于除了我再也没人能看到。
Takes the most valuable item, which is a watch.
带走最有价值的东西,也就是一只表。
And during the siege there were sixty-five balloon flights carrying two and a half million letters, weighing a grand total of 10,000 kilograms, so roughly about 20,000 pounds.
在巴黎被围期间,共放出了六十五个热气球,带走了多达两百五十万封信,合计重量约有一万公斤,也就是两万磅左右
because they were finishing up and they didn't want to carry everything.
因为他们打烊了,而且他们不想带走所有的东西。
And then what does he do after that?
之后它会做什么呢?带走另一只表?
What do you get if you follow the greedy algorithm? What's the first thing the thief does?
如果年贪婪算法你会带走什么呢?,这个贼做的第一件事是什么?
And this was the reason that, long ago, In this kingdom by the sea, A wind blew out of a cloud by night Annabel Lee chilling my Annabel Lee; So that her highborn kinsman came And bore her away from me, To shut her up in a sepulchre In this kingdom by the sea.
这就是原因,很久以前,在海边的王国,夜里一阵冷风从云中吹落,冻僵了我的;,于是她高贵的亲戚到来了,把她从我身边带走,将她关进一座坟墓,在大海边的王国里。
Instead of taking that one vase, the thief could take two radios. And get more value. So the greedy thief, in some sense, gets the wrong answer. But maybe isn't so dumb.
这个贼可以带走两个收音机,这样总价值更大,因此这个贪婪的贼,在某种意义上没有得到正确的答案,但是可能它也不笨。
What's the best thing you can do?
除了带走1个花瓶?
And that's the one I'll do.
这就是我要带走的东西。
If I'm not going to take it I give it a 0.
我会给x赋值,如果我不打算带走。
应用推荐