题目
题目
单项选择题

Which is TRUE?

选项
A.a. The performance of the hash function will not affect the runtime of the main dictionary operations
B.b. In practice, it is quicker to update an element in an unsorted array-list than a dictionary
C.c. In practice, it is quicker to search for an element in a dictionary than an unsorted array-list
D.d. In practice, it is quicker to delete an element from an unsorted array-list than a dictionary
题目图片
查看解析

查看解析

标准答案
Please login to view
思路分析
When evaluating the statements, I’ll compare the typical performance characteristics of dictionaries (hash maps) vs. unsorted array-lists. Option a: 'The performance of the hash function will not affect the runtime of the main dictionary operations.' In practice, the hash function’s quality can affect collision rates, which in turn can impact constant factors and sometimes average-cas......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!