It's that the pounds of gold plus the pounds 8 of silver plus the pounds of raisins is no greater than eight.
就是金的磅数加上银的磅数,加上葡萄干的磅数不大于,所以我已经找到了。
All right? If I'm gambling, I'm saying, gee, if I'm really lucky, it'll be only on this side, and I've got a little bit of work to do, but if I'm unlucky, I'm scrawed, the past pluperfect of screwed, OK., or a Boston fish.
如果我够幸运的话,目标数就会在这边的,这会大大减少我的工作量,但如果不幸运呢?我就完蛋了,我就得再从剩下的这么大的数组里找了,这很痛苦,因此选中位数是正确答案。
0 >> David: Yeah, so I very deliberately changed this 9 to a 9.0 so that my math would actually be floating point math involving real numbers and not just integers.
>,大卫:是的,我故意地把9改成9,那样我的数学实际上就是浮点数的了,包括实数,不只是整数。
If you multiply her, then you want to have as much depth to fill in behind to close that hole as you can, so that that would make your phalanx more sturdy, because you could take more casualties without breaking, that seems reasonable to me.
如果再多一些,你就需要在后面增加足够的排数,尽可能地填补缺口,这会使你的方阵固若金汤,即使伤亡惨重也不影响阵容的坚固,这在我看来是合理的
So the first argument, that's a straight forward argument, the second argument says, I put myself in other peoples shoes, I realize they're not going to play a dominated strategy, and therefore, having realized they're not going to play a dominated strategy, I shouldn't play a strategy between 45 and 67.
所以第一个过程是直截了当地,而第二个过程,我从别人的角度思考,发现他们并不会选择劣势策略,意识到他们并不会选择劣势策略后,我也不应该选择45至67的数
You know, I was not really disappointed, it found something close enough to 3 that I'm happy.
我真的不失望,因为它找到了一个,和3相当接近的数,我还是挺高兴的。
All right. I tried it on 2, I surely didn't expect a precise and exact answer to that but I got something, and if you square this, you'll find the answer kept pretty darn close to 2.
好,我试试求2的平方根,我当然不希望得到一个完全准确的答案了,但是我得到了一个近似值,试试将这个数平方一下,你会发现结果和2相当接近。
Well, I could look at the value here, and compare it to the value I'm trying to find, and say the following; if the value I'm looking for is bigger than this value, where do I need to look? Just here.
然后把它和目标数做个比较,然后做出如下的判断:,如果目标值大于这个值;,那么我应该去哪找呢?对,应该在这里,对不对?不可能在那儿。
It says, in either case in general, t of b-- and this is where I'm going to abuse notation a little bit but I can basically bound it by t, 12 steps plus t of b over 2.
我可以用一个,比12+t的数代表,这里有点不准确的地方,具体的步数依赖于奇数偶数,但是你们可以看到在两个case中。
应用推荐