Right? If that was the case in that code, then my complexity is no longer log, because I need linear access for each time I've got to go to the list, and it's going to Lisp be much worse than that.
这里的复杂度不再是对数的了,因为每次在列表中,查找需要线性访问,可能还要糟糕,其实,有些编程语言,如。
So I'm so happy that it's finally time for us to go to the airport, get on a plane and just take off.
所以当我们终于到了机场,坐上了飞机并起飞后,我真是太高兴了。
You buy something that's down 30% but it's got another 50% to go and I think it just has to do with time horizon.
某资产价格下跌了30%,你买入,而后它反弹又上涨50%,我认为上涨只是时间问题
If he's going to sit there on one chord for that amount of time, it's going to go on for a long period of time.
既然作曲家能放任一个和弦行进这么久,他一定有的是时间。
All right? A linear search, I start at the beginning of the list and walk all the way through it. All right, if I'm lucky and it's at the low end, If it's not, if it's at the far end, I've got to go forever, and you saw that last time where this thing paused for a little while while it actually searched a list this big.
如果很幸运就在开头,那运行起来很快,如果是在末尾,那就一直得走到头,上次看到了,如果搜索空间很大,程序都会暂停一会,好的,那我希望你们。
Let's do it, we've been waiting for a long time to go for a drink.
那就去吧,我们好久没好好喝一杯了。
Now, there's nothing special about annual-- that's the time it take the Earth to go around the sun, but it doesn't have any relevance to finance-- but we are just accustomed to using that.
这里所谓的一年也没什么特别,就是地球绕太阳一圈的时间,和金融没什么关系,我们只是习惯这么用
To get any location in memory, to get to any value of the list, I simply have to say which element do I want to get, I know that these things are stored in a particular size multiply that index by 4, add it to start, and then it's in a constant amount of time I can go to that location and get out the cell.
取得列表中的任何一个值,简单说来,想要取得列表中的任何元素,我知道这些元素存在特定的大小中,把下标乘以4,加到start上,然后定位到内存单元,并取出值就是固定的时间了,好的,如果元素以固定大小存储。
应用推荐