Not in the next problems set but in the problem set after that, we'll be exploiting that facility of dictionaries. All right.
好,下一个问题是,我们如何来利用,字典的便利性,好。
I can do lots of things with these, and you'll see that as we get to future assignments we'll make heavy use of dictionaries.
我们可以利用这一点来做很多操作,而且以后我们做作业的时候,我们会用到很多字典相关的东西。
Dictionaries are implemented using a magic technique called hashing, which we'll look at a little bit later in the term, which allows us to retrieve keys in constant time.
散列法的内容,此方法可以让我们在线性,时间内检索到键,因此字典的大小并不重要了。
So adding dictionaries, as Professor Grimson said with so many other things, doesn't give you any more computational power.
正如Grimson教授所说的那样,数组并没有给你更好的计算能力,但是它让一些工作大大的方便化了。
Now you might wonder, why do we have dictionaries?
现在你们可能会有疑惑了,我们用字典来干什么呢?
应用推荐