普通数组的元素用整数作为索引,而关联数组的元素用名称作为索引,而不是整数。
The elements of ordinary arrays are indexed by integers, whereas the elements of associative arrays are indexed by names instead of Numbers.
用普通方法实现这种操作所需要的时间是O (N)(如果对100个整数进行求和需要1 ms,那么对200个整数进行求和就需要2 ms,依此类推)。
The time to do this in the regular way scales as o (n) (if it takes 1ms to add 100 integers, it takes roughly 2ms to add 200 integers, and so on).
我们的目标不是完整数据,而是有用的数据--足够运行闹钟,电冰箱,吸尘器和洗衣机这样的普通机器就可以了。
The goal isn't data completeness, it's data usefulness - just enough to enable boring stuff like alarm clocks, refrigerators, vacuum cleaners and washing machines.
应用推荐