一.概述 以 Key-Value 的形式进行数据存取的映射(map)结构 简单理解:用最基本的向量(数组)作为底层物理存储结构,通过适当的散列函数在词条的关键码与向量单元的秩(下标)之间建立映射关系 更详细的定义:开辟物理地址连续的桶数组ht[],借助散列函数hash(),将词条关键码key映射为桶地址(数组下标),从而快速地确定待操作词条的物理位置. 1.1 散列结构优点 可以实现O(1)时间的数据项查找(注:给定关键码,通过散列函数可直接计算出所在地址) 能以节省空间的方式实现上述O(1)查…