I guess I was a fool to think I could make you happy.
VOA: special.2009.06.27
Because you don't know how much more time you've got-- You can make a guess based on statistics, but as we saw, there's wild unpredictability.
因为你不知道你剩下多少时间-,你可以根据数据进行猜测,但是我们都知道,不可预见性太难把握。
If you don't know,just kind of guess,just make a guess.
不知道可以猜,蒙一个。
You see somebody for about a second, you could make a guess.
你看对方一秒,就能猜到了。
And that idea was, we make a guess in the middle, we test it so this is kind of a guess and check, and if the answer was too big, then we knew that we should be looking over here. If it was too small, we knew we should be looking over here, and then we would repeat.
这些有理数是有序排列的,然后我们的想法是,首先在中间取个数作为猜想数,然后对这个猜想数进行验证,如果由猜想数得到的答案太大,我们知道应该跳过,比猜想数大的那个区间,如果太小的话。
In fact, my program crashes because I end up trying to divide by zero, a really bad thing. Hint: if you implement Newton's method, do not make your first guess zero.
我下一步都没法开始,实际上,我的程序会崩溃,因为我试着去除0了,真糟糕,提示你:如果你想用牛顿的方法,第一个猜想数别设为0。
应用推荐