What is the true difference between a dictionary and a hash table?

前端 未结 6 869
日久生厌
日久生厌 2020-12-12 17:20

I\'ve always used dictionaries. I write in Python.

6条回答
  •  一整个雨季
    2020-12-12 17:43

    A hash table always uses some function operating on a value to determine where a value will be stored. A Dictionary (as I believe you intend it) is a more general term, and simply indicates a lookup mechanism, which might be a hash table or might be implemented by a simpler structure which does not consider the value itself in determining its storage location.

提交回复
热议问题