So I am going to go and I am going to look for something that has an energy of 13.6 electron volts holding it in place, and I am going to use a flashlight with 12,400 electron volts.
所以我将去,找一些东西,有13。6电子伏特的东西,将它固定在某个地方,我要利用12。400电子伏特的电子源。
In this case, I probably want to make sure I use absolute value of x before I carry it on. Yes ma'am.
在这个例子中,我可能想确定,在进行测试前我用的是x的绝对值,什么问题?
Once I have it sorted I can search it in log n time, but that's still isn't as good as just doing n. And this led to this idea of amortization, which is I need to not only factor in the cost, but how am I going to use it?
一旦对其完成排序,就可以在log,n的时间内对其完成搜索,但是这样做仍然不如n的复杂度,这样做引出了耗时分摊的想法,这时不仅需要考虑耗时的因素?
应用推荐