Hash table vs Hash list vs Hash tree?
问题 What property makes Hash table, Hash list and Hash tree different from each other? Which one is used when? When is table superior than tree. 回答1: Hashtable : it's a data structure in which you can insert pairs of (key, value) in which the key is used to compute an hashcode that is needed to decide where to store the value associated with its key. This kind of structure is useful because calculating a hashcode is O(1), so you can find or place an item in constant time. (Mind that there are